Merge pull request #4 from wvu-r7/pr/6934

Add setsid to persist the shell
bug/bundler_fix
h00die 2016-06-16 14:28:43 -04:00 committed by GitHub
commit 856baf5f32
1 changed files with 5 additions and 0 deletions

View File

@ -124,4 +124,9 @@ class MetasploitModule < Msf::Exploit::Remote
fail_with(Failure::Unreachable, "#{peer} - Could not connect to the web service") fail_with(Failure::Unreachable, "#{peer} - Could not connect to the web service")
end end
end end
def on_new_session(session)
super
session.shell_command_token('setsid $SHELL')
end
end end