Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 747 Bytes

File metadata and controls

27 lines (24 loc) · 747 Bytes

To run simple port scanner:

python simple_port_scanner.py

To run fast port scanner:

python fast_port_scanner --help

Output:

usage: fast_port_scanner.py [-h] [--ports PORT_RANGE] host

Simple port scanner

positional arguments:
host                  Host to scan.

optional arguments:
-h, --help            show this help message and exit
--ports PORT_RANGE, -p PORT_RANGE
                        Port range to scan, default is 1-65535 (all ports)

For example, if you want to scan the ports from 1 to 1024 of your router (192.168.1.1):

python3 fast_port_scanner.py 192.168.1.1 --ports 1-1024