Coder Social home page Coder Social logo

portscanner's Introduction

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

portscanner's People

Contributors

pascaaaal avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.