Commit 52679c7c by Alex Hilgert Committed by Marcin Bury

ZXHN H108N V2.5, module 'ZTE ZXV10 RCE': Fixed false positive issue #305 (#346)

* Router detected as vulnerable while its not #305

* Fixed typo error

* Check status code instead of string
parent f8f7d65e
...@@ -137,7 +137,9 @@ class Exploit(exploits.Exploit): ...@@ -137,7 +137,9 @@ class Exploit(exploits.Exploit):
"Password": self.password} "Password": self.password}
response = http_request("POST", url, self.session, data=data) response = http_request("POST", url, self.session, data=data)
if "Username" not in response.text and "Password" not in response.text: if "Username" not in response.text \
and "Password" not in response.text \
and response.status_code != 404:
print_success("Successful authentication") print_success("Successful authentication")
return True return True
except Exception: except Exception:
......
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