diff --git a/modules/exploits/linux/http/op5_config_exec.rb b/modules/exploits/linux/http/op5_config_exec.rb index 4db1754e47..0bd756b76c 100644 --- a/modules/exploits/linux/http/op5_config_exec.rb +++ b/modules/exploits/linux/http/op5_config_exec.rb @@ -124,4 +124,9 @@ class MetasploitModule < Msf::Exploit::Remote fail_with(Failure::Unreachable, "#{peer} - Could not connect to the web service") end end + + def on_new_session(session) + super + session.shell_command_token('setsid $SHELL') + end end