python3 network/port scanner built and tested within ubuntu 18.04.4 using python3.6.9
pip3 install scapy
pip3 install progress
pip3 install yaspin
sudo apt install figlet
Uses the ARP Ping method to discover active hosts on a network. Provide an ip address range including CIDR notation of network. -to (timeout) flag is optional; defaults to 5. Example: -t 192.168.0.0/24 -to 10
sudo python3 net_scout.py -t <ip_address_range> -to <timeout>
Uses TCP connect scan to find open ports. --port flag is required. Enter a single ip_address for the target using the -t flag. The -m flag is optional. -m indicates max port number you would like to scan up to. Example --> -m 500 will scan ports 1 - 500.
sudo python3 net_scout.py --port -t <ip_address> -m <max_port_number>
Flag | Name | Scan Type | Optional | Description |
---|---|---|---|---|
-m | MAX | port_scan | yes | Sets Max port to scan to. port_scan() starts port 1 and scans up to the specified MAX. Defaults to 1024. |
-t | TARGET | both | no | net_scan() targets a range of ips and requires the target to have CIDR notation. port_scan() targets a single ip. |
-to | TIMEOUT | net_scan | yes | Sets the Timeout of the scapy sr1() scan. Proper timeout value depends on the amount of hosts being scanned. Defaults to 5 seconds. |
--port | TYPE | port_scan | yes | Tells script to run a port_scan() instead of the default net-scan() |