Simple CLI implementation of various TCP port scans using Python and Scapy.
- Scapy
The program can check if a host is alive by the specified IP address. The syntax for performing a ICMP scan is as follows:
sudo ptyhon3 netscan.py -i [host] -c [number of packets]
The program can perform various TCP port scanning techniques to see whether the port is open or not, or if there is a firewall in place. The syntax for performing a ICMP scan is as follows:
sudo ptyhon3 netscan.py -p [port] -[scaning mode] [host]
These are the following arguments the program can use.
Argument | Description |
---|---|
H | Target Host IP or URL |
-p | Target Port |
Argument | Description |
---|---|
-t | Perform TCP Connect Scan |
-s | Perform TCP SYN Scan |
-x | Perform TCP XMAS Scan |
-f | Perform TCP FIN Scan |
-n | Perform TCP NULL Scan |
-a | Perform TCP ACK Scan |
-ALL | Perform ALL TCP Port Scans |
Argument | Description |
---|---|
-i | Perform ICMP Scan |
-c | Number of ICMP ECHO Requests |
Argument | Description |
---|---|
-T | Show time spent to compelete the scan |
-v | Show program description |