Commit 5d5d5c3d by Marcin Bury

Catch them all

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