Skip to content

Commit e7b421e

Browse files
authored
Update netgear_password_disclosure.rb
1 parent fd935c8 commit e7b421e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

modules/auxiliary/gather/netgear_password_disclosure.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,12 @@ def run
9292
username = scrape(raw_html, "Router Admin Username", "Router Admin Password")
9393
password = scrape(raw_html, "Router Admin Password", "You can")
9494
if username.nil? || password.nil?
95-
return Exploit::CheckCode::Safe
96-
else
97-
username = username.strip!
98-
password = password.strip!
95+
print_error("#{rhost} returned empty credentials")
96+
return
9997
end
98+
username.strip!
99+
password.strip!
100+
100101
if username.empty? || password.empty?
101102
print_error("No Creds found")
102103
else

0 commit comments

Comments
 (0)