Land #3933 - Fix cmd_exec with Python Meterpreter on OS X

bug/bundler_fix
sinn3r 2014-10-02 13:48:19 -05:00
commit 0820a4fe6a
No known key found for this signature in database
GPG Key ID: 2384DB4EF06F730B
1 changed files with 7 additions and 1 deletions

View File

@ -111,7 +111,13 @@ module Msf::Post::Common
o << d
end
o.chomp! if o
begin
process.channel.close
rescue IOError => e
# Channel was already closed, but we got the cmd output, so let's soldier on.
end
process.close
when /shell/
o = session.shell_command_token("#{cmd} #{args}", time_out)