mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-30 15:31:10 +00:00
8bb59d3a0c
screenshot |
||
---|---|---|
.. | ||
readme.md | ||
scanner.py |
Simple Port Scanner
This is a simple port scanner written in Python. You can run a scan on any one particular host or over a given range of IP addresses.
Download the script on your local machine and use as follows.
Usage
-
Single host - scans a single IP address
./scanner.py <IP address> <start port> <end port>
Example:
./scanner.py 192.168.0.17 1 65535
-
Network scan - scans a range of IP addresses
./scanner.py <network> <start port> <end port> -n
Example:
./scanner.py 192.168.0 1 65535 -n