diff --git a/modules/auxiliary/gather/zoomeye_search.rb b/modules/auxiliary/gather/zoomeye_search.rb index 03bfb23047..6410ef74f6 100644 --- a/modules/auxiliary/gather/zoomeye_search.rb +++ b/modules/auxiliary/gather/zoomeye_search.rb @@ -156,7 +156,7 @@ class MetasploitModule < Msf::Auxiliary end @zoomeye_token = login(datastore['USERNAME'], datastore['PASSWORD']) - unless @zoomeye_token + if @zoomeye_token.blank? print_error("Unable to login api.zoomeye.org") return end