From 13b92b97e9178fbb7a7eae65309f3d4ae9b67f36 Mon Sep 17 00:00:00 2001 From: ohdae Date: Fri, 16 Mar 2012 01:40:12 -0300 Subject: [PATCH] Fixed incorrect variable within get_sql_history --- modules/post/linux/gather/enum_users_history.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")