Commit 9e96d7fa by Marcin Bury

Exception, exceptions, everywhere

parent b523b783
......@@ -44,7 +44,7 @@ class Exploit(exploits.Exploit):
try:
response = sock.recv(2048)
except socket.timeout:
except:
print_error("Exploit failed - device seems to be not vulnerable")
return
......@@ -65,7 +65,7 @@ class Exploit(exploits.Exploit):
try:
response = sock.recv(2048)
except socket.timeout:
except:
return False # target is not vulnerable
if len(response) and "UseUserCredential" in response:
......
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