diff --git a/modules/post/linux/gather/enum_users_history.rb b/modules/post/linux/gather/enum_users_history.rb index 94f520fc82..b7198a99fc 100644 --- a/modules/post/linux/gather/enum_users_history.rb +++ b/modules/post/linux/gather/enum_users_history.rb @@ -126,7 +126,7 @@ class Metasploit3 < Msf::Post sql_hist = cat_file("/home/#{u}/.mysql_history") end - save("History for #{u}", hist) unless sql_hist =~ /No such file or directory/ + save("History for #{u}", sql_hist) unless sql_hist =~ /No such file or directory/ end else vprint_status("Extracting SQL history for #{user}")