Coder Social home page Coder Social logo

nmap_scanner's Introduction

INTRODUCTION
------------

The scanner.py script is a simple nmap scanner which takes a list
or file of host/ipv4/ipv6/cidr as input. The nmap report is then
exported to a html file with informations about the discovered
hosts, open services, etc.



REQUIREMENTS
------------

The script uses python3.
The following packages need to be installed:

 * sudo pip3 install python-libnmap
 * sudo pip3 install pytest



USAGE
-----

The script needs to be run as root to allow discovery of MAC
addresses for hosts on local network. Run with one of the
following flags:

 * sudo python3 scanner.py -i [list of host/ipv4/ipv6/cidr]
 * sudo python3 scanner.py -iF [file of host/ipv4/ipv6/cidr]

In case of a list of targets, they should be separated by spaces.
Output file is named report.html.

Examples:

 * sudo python3 scanner.py -i www.synacktiv.com
 * sudo python3 scanner.py -i 91.209.35.0/24
 * sudo python3 scanner.py -i www.synacktiv.com 8.8.8.8
 * sudo python3 scanner.py -iF target.txt

 

FEATURES
--------

The Nmap scan is done through the python-libnmap package. The
following flags are applied
 * -sV: enables version detection
 * -sC: anables script scanning (NSE)
 * -p-: all ports
 * -T4: timing agressive
 
The nmap settings applied have been chosen to get a maximum of
information in a short time.

The html report contains:
 * A summary of the scan with the number of hosts up/down
 * A list of the scanned hosts ordered by their state (up first)
 * A list of all the online hosts with information on their open ports (state, service, banner, result of NSE scripts, URL to CVEs from CPE)
 * A list of all the opened services with some basic information



TEST
----

Tests use the Pytest framework. They are located in /test.
Run in current directory:

 * pytest

nmap_scanner's People

Contributors

florianmainguy avatar

Watchers

 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.