Giter Club home page Giter Club logo

port-scanner-scapy's Introduction

Port Scanner

Overview

This tool is a command-line port scanner using Scapy.

It proceed to a TCP-SYN scan for each specified port for the target ip.

This program is an example of port scanning implementation using Scapy. For professional uses, please consider using existing tools such as nmap.

Installation and Dependencies

This tool is written with Python 2 and so require a Python 2 interpreter.

It also relies on the Scapy program, please visit the official Scapy's website for installation instructions.

Documentation

Usage

To show the usage and the help in the command line interface, use the --help (-h) option. The ip target has to be specified. The scanned port list is specified with the --dport (-p) option. Each port is separated by a space. Note : for now, their is no port range (such as -p 22-80) or port names/groups (such as -p POP3 IMAP).

Option can also be specified to control the request timeout (--timeout, the default is 2s) and the verbosity (--verbose).

Results

A port can be in several states :

  • OPEN.
  • CLOSED.
  • FILTRERED.
  • Any combination of those states. For instance, a OPEN|FILTERED states means that the scanner was not able to define if the port is open or filtered.

Examples

The following list contains some usage examples :

  • sudo python main.py 192.168.0.16 -p 22 : scan the port 22 (SSH) for the specified target (192.168.0.16).
  • sudo python main.py 192.168.0.16 -p 80 443 : scan the target for the standard web ports (HTTP & HTTPS).
  • sudo python main.py 192.168.0.16 -p 80 -t 10 : scan the port 80 (HTTP) with an user-defined timeout (10s).

Contributors

Licence

CC0

This tool has no license and is free to use.

Disclaimer

Port scanning should be restricted to you own machines. Please consult the legislation of your country.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

port-scanner-scapy's People

Contributors

eboespflug avatar

Watchers

 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.