summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstevan <stevannestorovic@hotmail.com>2018-10-01 00:19:58 +0200
committerstevan <stevannestorovic@hotmail.com>2018-10-01 00:19:58 +0200
commit948ea80075e644bc96684edac9f27b622c218d1e (patch)
treee7b8034141083cebfabc1e903a0ddc523235e1e8
parent3021dcab3fa3789c17325ce0817d29327e6c65b6 (diff)
parent056bee477f2bab039a321d7916b68409fb12a7ad (diff)
Merge branch 'master' of https://github.com/alexej996/tmap
Some updates
-rwxr-xr-xtmap3
1 files changed, 2 insertions, 1 deletions
diff --git a/tmap b/tmap
index 46e2aa3..2cee096 100755
--- a/tmap
+++ b/tmap
@@ -9,6 +9,7 @@ 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)
@@ -39,7 +40,7 @@ def main():
parser.add_argument("HOSTS", help="IP or domain to scan", default="empty_host", nargs="?")
parser.add_argument("-H", "--hosts", metavar="HOSTS", dest="tgtHost", help="IP or domain to scan", default="empty_host_option")
parser.add_argument("-p", "--ports", metavar="PORTS", dest="tgtPort", help="ports to scan", default="21,22,23,25,53,80,443,8080,8333,9050,9150")
- parser.add_argument("-t", "--timeout", metavar="TIMEOUT", dest="sockTimeout", type=int, help="seconds to wait before connection timeout for each port", default=3)
+ parser.add_argument("-t", "--timeout", metavar="TIMEOUT", dest="sockTimeout", type=int, help="seconds to wait before connection timeout for each port", default=1)
parser.add_argument("--clearnet", dest="clearnet", help="don't use Tor for scanning", action="store_true")
parser.add_argument("--torport", metavar="TORPORT", dest="torPort", type=int, help="port for Tor proxy", default="9050")