Land #3933 - Fix cmd_exec with Python Meterpreter on OS X
commit
0820a4fe6a
|
@ -111,7 +111,13 @@ module Msf::Post::Common
|
|||
o << d
|
||||
end
|
||||
o.chomp! if o
|
||||
process.channel.close
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue