http capture : add challenge as an option
git-svn-id: file:///home/svn/framework3/trunk@12231 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
8e61c108d3
commit
7e522d9979
|
@ -48,7 +48,8 @@ class Metasploit3 < Msf::Auxiliary
|
|||
|
||||
register_options([
|
||||
OptString.new('LOGFILE', [ false, "The local filename to store the captured hashes", nil ]),
|
||||
OptString.new('PWFILE', [ false, "The local filename to store the hashes in Cain&Abel format", nil ])
|
||||
OptString.new('PWFILE', [ false, "The local filename to store the hashes in Cain&Abel format", nil ]),
|
||||
OptString.new('CHALLENGE', [ true, "The 8 byte challenge ", "1122334455667788" ])
|
||||
|
||||
], self.class)
|
||||
|
||||
|
@ -60,8 +61,6 @@ class Metasploit3 < Msf::Auxiliary
|
|||
OptBool.new('FORCEDEFAULT', [ false, "Force the default settings", false])
|
||||
], self.class)
|
||||
|
||||
@challenge = "\x11\x22\x33\x44\x55\x66\x77\x88"
|
||||
|
||||
end
|
||||
|
||||
def on_request_uri(cli, request)
|
||||
|
@ -87,6 +86,12 @@ class Metasploit3 < Msf::Auxiliary
|
|||
end
|
||||
|
||||
def run
|
||||
if datastore['CHALLENGE'].to_s =~ /^([a-fA-F0-9]{16})$/
|
||||
@challenge = [ datastore['CHALLENGE'] ].pack("H*")
|
||||
else
|
||||
print_error("CHALLENGE syntax must match 1122334455667788")
|
||||
return
|
||||
end
|
||||
exploit()
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue