Invert logic for consistency

git-svn-id: file:///home/svn/framework3/trunk@10403 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-09-21 00:06:18 +00:00
parent 74e5c38fe8
commit 76b14e5db7
1 changed files with 2 additions and 2 deletions

View File

@ -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