From 2cbb107bbac945227ecaa2f4ce04ad671ba06124 Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Mon, 29 Jun 2015 09:55:18 -0500 Subject: [PATCH] Update enum_configs --- modules/post/linux/gather/enum_configs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/post/linux/gather/enum_configs.rb b/modules/post/linux/gather/enum_configs.rb index 9d1c29a66b..8e6ca7cf9d 100644 --- a/modules/post/linux/gather/enum_configs.rb +++ b/modules/post/linux/gather/enum_configs.rb @@ -52,7 +52,7 @@ class Metasploit3 < Msf::Post when /meterpreter/ host = sysinfo["Computer"] when /shell/ - host = session.shell_command_token("hostname").chomp + host = cmd_exec("hostname").chomp end return host