diff options
author | Stevan <nestorovicstevan@tutanota.de> | 2019-09-17 19:59:06 -0400 |
---|---|---|
committer | Stevan <nestorovicstevan@tutanota.de> | 2019-09-17 19:59:06 -0400 |
commit | abe51a0fad46f3b14b17d055339ebb94bd0fbacf (patch) | |
tree | b38763695e3af6808c3d8692c4ae7c1c1038dc3f | |
parent | c82bfaeeb17ff27131ff47c95197acfe73969c8a (diff) |
Added exception handling if pysocks is not installed.
-rwxr-xr-x | tmap | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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): |