Unverified Commit 59b6159a by Eshwar Sai Jalagam Committed by GitHub

Fix better detection of vulnerable router for linksys/eseries_themoon_rce exploit (#734)

* Better detection of vulnerable router

* Update eseries_themoon_rce.py

---------

Co-authored-by: Eshwar Sai Jalagam <bobby@Bobby-PC>
parent 227e83f4
...@@ -99,7 +99,7 @@ class Exploit(HTTPClient): ...@@ -99,7 +99,7 @@ class Exploit(HTTPClient):
path="/tmUnblock.cgi", path="/tmUnblock.cgi",
) )
if response and response.status_code in [200, 301, 302]: if response and response.status_code in [200, 301, 302] and not any(i in response.text.lower() for i in ["page not found", "error", "404", "not found"]):
return True # target is vulnerable return True # target is vulnerable
return False # target is not 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