From 8c56b4c50dca4fa044c864188684fe7af6f7b04c Mon Sep 17 00:00:00 2001 From: Carlos Perez Date: Sat, 8 May 2010 04:23:07 +0000 Subject: [PATCH] Comited wrong version of the script git-svn-id: file:///home/svn/framework3/trunk@9250 4d416f70-5f16-0410-b530-b9f4589650da --- scripts/meterpreter/get_env.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/meterpreter/get_env.rb b/scripts/meterpreter/get_env.rb index caf62cb491..7fed49624d 100644 --- a/scripts/meterpreter/get_env.rb +++ b/scripts/meterpreter/get_env.rb @@ -9,7 +9,7 @@ var_names << registry_enumvals("HKEY_CURRENT_USER\\Volatile Environment") var_names << registry_enumvals("HKEY_CURRENT_USER\\Environment") var_names << registry_enumvals("HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment") -def list_env_vars(vars) +def list_env_vars(var_names) print_status("Getting all System and User Variables") tbl = Rex::Ui::Text::Table.new( 'Header' => "Enviroment Variable list", @@ -34,4 +34,5 @@ opts.parse(args) { |opt, idx, val| raise Rex::Script::Completed end -} \ No newline at end of file +} +list_env_vars(var_names) \ No newline at end of file