Skip to content

pascaaaal/PortScanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PortScanner

This is a simple Port scanner I made for GCI. It have very easy useage as you will see :)

Setup

  1. Install git sudo apt-get install git
  2. Install python3 sudo apt-get install python3
  3. Clone Repository git clone https://github.com/pascaaaal/PortScanner.git
  4. Go to folder cd PortScanner

Start

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.

Example

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

asciinema

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages