Commit ff0f1a00 by Marcin Bury

Fixing D-Link DSL 2750B false positive.

parent a2ed3edc
......@@ -58,7 +58,7 @@ class Exploit(exploits.Exploit):
headers = ("Option", "Value")
print_table(headers, *creds)
else:
print_error("Credentials could not be found")
print_error("Exploit failed - credentials could not be found")
@mute
def check(self):
......@@ -68,7 +68,7 @@ class Exploit(exploits.Exploit):
if response is None:
return False # target is not vulnerable
if any(map(lambda x: x in response.text, ["SSID", "PassPhrase"])):
if all(map(lambda x: x in response.text, ["SSID", "PassPhrase"])):
return True # target is vulnerable
return False # target is not vulnerable
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment