This is a simple, multi-process port scanner written in Python. It can scan a range of ports on a host and output the results to a file.
- Scans the 1000 main TCP ports
- Allows specifying a range of ports to scan
- Allows specifying individual ports to scan
- Outputs the results to a file
python portscanner.py [OPTIONS] IP
-m, --mainports
: Perform a scan on the 1000 main TCP ports-p, --ports
: Specify ports for scan (separated by comma or hyphen)-r, --range
: Specify a range of ports to scan (e.g. 1-1024)-o, --output
: Specify a file to output the results to
python portscanner.py -m 192.168.1.1
This will scan the 1000 main TCP ports on the host at 192.168.1.1.
- Python 3
- argparse
- socket
- threading
This project is licensed under the MIT License - see the MIT LICENSE file for details.