Commit 0bf6b310 by 0BuRner Committed by GitHub

Update dwg855_authbypass.py

parent f8b4aa2b
......@@ -48,7 +48,7 @@ class Exploit(exploits.Exploit):
if response is None:
print_error("Target didn't answer request.")
elif vulnresp in response.text.encode('utf-8'):
elif self.vulnresp in response.text.encode('utf-8'):
print_success("Credentials changed!")
elif response.status_code == 401:
print_error("Target answered, denied access.")
......@@ -72,7 +72,7 @@ class Exploit(exploits.Exploit):
if response is None:
return False # target is not vulnerable
elif vulnresp in response.text.encode('utf-8'):
elif self.vulnresp in response.text.encode('utf-8'):
return True # device is vulnerable
elif response.status_code == 401:
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