Commit b2034131 by Marcin Bury

Fix connection reset exception.

parent aa015def
...@@ -84,7 +84,10 @@ class Exploit(exploits.Exploit): ...@@ -84,7 +84,10 @@ class Exploit(exploits.Exploit):
return None return None
r, w, e = select.select([s], [], [], 5) r, w, e = select.select([s], [], [], 5)
if s in r: if s in r:
try:
data = s.recv(remain) data = s.recv(remain)
except socket.error:
return None
if not data: if not data:
return None return None
......
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