Unverified Commit 3e715cc6 by Marcin Bury Committed by GitHub

Fix HG532 RCE exploit module (#817)

parent 3158d9d7
...@@ -51,7 +51,7 @@ class Exploit(HTTPClient): ...@@ -51,7 +51,7 @@ class Exploit(HTTPClient):
path="/" path="/"
) )
if response is not None and "Linux uPnP/1.0 Huawei-ATP-IGD" in response.headers['Server']: if response is not None and 'server' in response.headers.keys() and "Linux uPnP/1.0 Huawei-ATP-IGD" in response.headers['server']:
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