Commit 5d5d5c3d by Marcin Bury

Catch them all

parent f76b621e
...@@ -77,7 +77,7 @@ class Exploit(exploits.Exploit): ...@@ -77,7 +77,7 @@ class Exploit(exploits.Exploit):
try: try:
print_status("Waiting for response") print_status("Waiting for response")
response = sock.recv(1024) response = sock.recv(1024)
except socket.timeout: except:
print_error("Exploit failed - device seems to be not vulnerable") print_error("Exploit failed - device seems to be not vulnerable")
return return
...@@ -93,7 +93,7 @@ class Exploit(exploits.Exploit): ...@@ -93,7 +93,7 @@ class Exploit(exploits.Exploit):
try: try:
response = sock.recv(1024) response = sock.recv(1024)
except socket.timeout: except:
return False # target is not vulnerable return False # target is not vulnerable
if len(response): if len(response):
......
...@@ -51,7 +51,7 @@ class Exploit(exploits.Exploit): ...@@ -51,7 +51,7 @@ class Exploit(exploits.Exploit):
sock.sendto(payload, (self.target, 53413)) sock.sendto(payload, (self.target, 53413))
response = sock.recv(1024) response = sock.recv(1024)
return response[8:] return response[8:]
except socket.timeout: except:
pass pass
return "" return ""
...@@ -67,7 +67,7 @@ class Exploit(exploits.Exploit): ...@@ -67,7 +67,7 @@ class Exploit(exploits.Exploit):
try: try:
sock.sendto(payload, (self.target, 53413)) sock.sendto(payload, (self.target, 53413))
response = sock.recv(1024) response = sock.recv(1024)
except socket.timeout: except:
pass pass
if response.endswith("\xD0\xA5Login:"): if response.endswith("\xD0\xA5Login:"):
......
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