Fix login - check condition
parent
344b688ae5
commit
ada571bfdf
|
@ -156,7 +156,7 @@ class MetasploitModule < Msf::Auxiliary
|
||||||
end
|
end
|
||||||
|
|
||||||
@zoomeye_token = login(datastore['USERNAME'], datastore['PASSWORD'])
|
@zoomeye_token = login(datastore['USERNAME'], datastore['PASSWORD'])
|
||||||
unless @zoomeye_token
|
if @zoomeye_token.blank?
|
||||||
print_error("Unable to login api.zoomeye.org")
|
print_error("Unable to login api.zoomeye.org")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue