summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexej996 <aleksej@spidermail.tk>2018-10-01 01:28:08 +0200
committeralexej996 <aleksej@spidermail.tk>2018-10-01 01:28:08 +0200
commit2e724a7caaa90cb85c9c9eb891d84373d78ea0fa (patch)
tree5f0f35acbea87c40b170f3376ea51f03d732751a
parentc49e3b37aaa875c40dfbc132fd634835cb628e74 (diff)
socket timout - duplicate line
-rwxr-xr-xtmap4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmap b/tmap
index d670994..36eeb72 100755
--- a/tmap
+++ b/tmap
@@ -9,10 +9,10 @@ def connScan(host, port, wait, notor):
## If notor is set to True, it doesn't use the socks proxy
if notor:
sckt = socket(AF_INET, SOCK_STREAM)
- sckt.settimeout(wait)
else:
sckt = socks.socksocket()
- sckt.settimeout(wait)
+
+ sckt.settimeout(wait)
## Try to connect, print to stdout on success
try:
sckt.connect((host, port))