http capture : add challenge as an option

git-svn-id: file:///home/svn/framework3/trunk@12231 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
amaloteaux 2011-04-03 23:31:14 +00:00
parent 8e61c108d3
commit 7e522d9979
1 changed files with 8 additions and 3 deletions

View File

@ -48,7 +48,8 @@ class Metasploit3 < Msf::Auxiliary
register_options([ register_options([
OptString.new('LOGFILE', [ false, "The local filename to store the captured hashes", nil ]), 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) ], self.class)
@ -60,8 +61,6 @@ class Metasploit3 < Msf::Auxiliary
OptBool.new('FORCEDEFAULT', [ false, "Force the default settings", false]) OptBool.new('FORCEDEFAULT', [ false, "Force the default settings", false])
], self.class) ], self.class)
@challenge = "\x11\x22\x33\x44\x55\x66\x77\x88"
end end
def on_request_uri(cli, request) def on_request_uri(cli, request)
@ -87,6 +86,12 @@ class Metasploit3 < Msf::Auxiliary
end end
def run 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() exploit()
end end