This is a simple Port scanner I made for GCI. It have very easy useage as you will see :)
- Install git
sudo apt-get install git
- Install python3
sudo apt-get install python3
- Clone Repository
git clone https://github.com/pascaaaal/PortScanner.git
- Go to folder
cd PortScanner
The basic usage is
python3 scanner.py --ip <your.ip> --port
If you want to get the ports from a file, you can just use --portF /path/to/file
instead of --port
.
If you want the raw output you can use the --format <true|false
. When you use true
you will see the cli version.
when you use false
you just get the output port,open|closed
, witch you can use for other programs.
Some examples of use:
python3 scanner.py --ip www.google.com --port 80
Output:
Starting Port Scanner
Checking ports for www.google.com
Port 80 is open
Check finished: 1 open Ports, 0 closed Ports
asciinema
python3 scanner.py --ip www.google.com --port 80,443,8080
Output:
Starting Port Scanner
Checking ports for www.google.com
Port 80 is open
Port 443 is open
Port 8080 is closed
Check finished: 2 open Ports, 1 closed Ports
asciinema
python3 scanner.py --ip www.google.com --portF ports/web.txt
Output:
Starting Port Scanner
Checking ports for www.google.com
Port 80 is open
Port 443 is open
Port 8080 is closed
Check finished: 2 open Ports, 1 closed Ports
asciinema
python3 scanner.py --ip www.google.com --portF ports/web.txt --format false
Output:
80,open
443,open
8080,closed