summaryrefslogtreecommitdiff
path: root/tmap
diff options
context:
space:
mode:
Diffstat (limited to 'tmap')
-rwxr-xr-xtmap7
1 files changed, 6 insertions, 1 deletions
diff --git a/tmap b/tmap
index f6261d8..972ff01 100755
--- a/tmap
+++ b/tmap
@@ -1,12 +1,17 @@
#!/usr/bin/env python3
import sys
from socket import *
-import socks
import argparse
import time
from ipaddress import *
import threading
+try:
+ import socks
+except ImportError as ie:
+ print("Socks module not found.\nMake sure to install all requirements with\npip3 install -r requirments.txt")
+ exit()
+
VERSION='1.3.1'
def getPortInfo(port, portfile):