Skip to content

rangerTech24/net_scout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 

Repository files navigation

Net_Scout

python3 network/port scanner built and tested within ubuntu 18.04.4 using python3.6.9

Dependencies

scapy

pip3 install scapy

progress

pip3 install progress

yaspin

pip3 install yaspin

figlet

 sudo apt install figlet

Functions

---> net_scan(ip, tout)

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>

---> port_scan(ip, end_port)

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()

---> print_net_scan(active_hosts)

Formats the results of a net_scan.

---> print_port_scan(active_ports)

Formats the results of port_scan.

---> get_arguments()

uses argparse module to parse the command line arguments entered when script is executed.

About

python3 network / port scanner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages