A minimalistic port-scanner in python to check remote ports
You can use port-scanner-py either as a library or CLI tool
import portscanner
portscanner.scan_port(192.168.178.22, 22) ## Scan single port only
portscanner.scan_port_range(192.168.178.22, 20, 80) ## Scan all ports from 20 to 80
Scan single port:
python3 portscanner.py --ip 192.48.80.31 --port 22
Scan ports based on range:
python3 portscanner.py --ip 192.48.80.31 --rangeFrom 22 --rangeTo 80