From c20d2a1dd9f9c9d58d3f18bd37f3a18dd714d2fe Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Mon, 22 Jun 2015 16:20:46 -0500 Subject: [PATCH] Update post/multi/gather/env * Use cmd_exec --- modules/post/multi/gather/env.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/post/multi/gather/env.rb b/modules/post/multi/gather/env.rb index c4042f6ea8..34938cb19b 100644 --- a/modules/post/multi/gather/env.rb +++ b/modules/post/multi/gather/env.rb @@ -42,7 +42,7 @@ class Metasploit3 < Msf::Post @ltype = "unix.environment" cmd = "env" end - @output = session.shell_command_token(cmd) + @output = cmd_exec(cmd) end def get_env_meterpreter