diff --git a/modules/auxiliary/gather/netgear_password_disclosure.rb b/modules/auxiliary/gather/netgear_password_disclosure.rb index b48c1c97fe..4861e93e4f 100644 --- a/modules/auxiliary/gather/netgear_password_disclosure.rb +++ b/modules/auxiliary/gather/netgear_password_disclosure.rb @@ -97,7 +97,7 @@ class MetasploitModule < Msf::Auxiliary username = username.strip! password = password.strip! end - if username == "" || password == "" + if username.empty? || password.empty? print_error("No Creds found") else print_good("Creds found: #{username}/#{password}")