项目作者: w1ld3r

项目描述 :
Port Scanner
高级语言: Python
项目地址: git://github.com/w1ld3r/Port_Scanner.git
创建时间: 2019-12-08T16:56:16Z
项目社区:https://github.com/w1ld3r/Port_Scanner

开源协议:GNU General Public License v3.0

下载


Port Scanner

Port scanner using nmap, outputting its results as an HTML page.

With port_scanner, multiple nmap are executed in parallel using python multiprocessing.

Compatible with IPv4 and IPv6 addresses.

Getting Started

Prerequisites

Install python3 and pip:

  1. sudo apt install python3 python3-pip

Install Nmap:

  1. sudo apt install nmap

Install the necessary Python packages:

  1. sudo pip3 install -r requirements.txt

To perform screenshot of website:

  1. sudo apt install wkhtmltopdf
  2. sudo wget -O /usr/share/nmap/scripts/http-screenshot.nse \ https://raw.githubusercontent.com/leostat/Necurity.co.uk/master/scripts/http-screenshot.nse
  3. sudo nmap --script-updatedb

Installing

The installation has been tested in Debian bullseye/sid x86_64 (december 2019)

Clone the project

  1. git clone https://github.com/x1n5h3n/port_scanner.git

Move in the project folder

  1. cd port_scanner

Install using pip

  1. sudo pip3 install .

Usage

Should be run with root privileges.

To scan an ip address on a particular port:

  1. sudo run-scanner -t 192.168.1.1 -p 22

To scan an ip address on a multiple ports:

  1. sudo run-scanner -t 192.168.1.1 -p 22,80,443

To scan an ip address on a port range:

  1. sudo run-scanner -t 192.168.1.1 -p 1-65535

To scan an hostname:

  1. sudo run-scanner -t nmap.org

To scan a cidr:

  1. sudo run-scanner -t 192.168.1.0/24 nmap.org/24

Use a targets file:

  1. sudo run-scanner -f targets.txt

Specify the output path of the html scan report:

  1. sudo run-scanner -t 192.168.1.1 -o /home/user

Print help:

  1. sudo run-scanner -h

License

This project is licensed under the GPLv3 License - see the LICENSE file for details.