Invert logic for consistency
git-svn-id: file:///home/svn/framework3/trunk@10403 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
74e5c38fe8
commit
76b14e5db7
|
@ -60,10 +60,10 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
end
|
end
|
||||||
|
|
||||||
def run
|
def run
|
||||||
unless (datastore['CHALLENGE'] =~ /^([a-fA-F0-9]{16})$/).nil?
|
if datastore['CHALLENGE'].to_s =~ /^([a-fA-F0-9]{16})$/
|
||||||
@challenge = datastore['CHALLENGE'].to_a.pack("H*")
|
@challenge = datastore['CHALLENGE'].to_a.pack("H*")
|
||||||
else
|
else
|
||||||
print_error("CHALLENGE syntax must be like 0011223344556677")
|
print_error("CHALLENGE syntax must match 0011223344556677")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue