From ada571bfdf8430efd9ca86e9098a1c47bea72988 Mon Sep 17 00:00:00 2001 From: nixawk Date: Thu, 20 Oct 2016 22:52:24 -0500 Subject: [PATCH] Fix login - check condition --- modules/auxiliary/gather/zoomeye_search.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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