/port-scanner

A threaded port scanner which can scan multiple servers at the same time.

Primary LanguagePythonMIT LicenseMIT

RedTeamToolbox logo
Github Build Status Github Build Status

Overview

A multi-server mult-threaded port scanner.

Disclaimer

This tool hs been designed and built to assist offensive security specialists to identify and remediate issues within the bounds of the law, e.g. consent from the owner the the BASE MINIMUM.

If you download it and do something stupid (illegal) with it then you are on your own!

Usage

usage: portscan [-h] [-q] [-v] [-D DELAY_TIME] [-p PORTS] -t TARGETS [-T THREADS] [-a] [-c] [-d] [-f FILENAME] [-j] [-r]

Check for open ports on target host

flags:
  -h, --help            show this help message and exit
  -q, --quiet           Do not show the results on the screen (default: False)
  -v, --verbose         Verbose output (default: False)

required arguments:
  -D DELAY_TIME, --delay-time DELAY_TIME
                        Random delay to use if --delay is given (default: 3)
  -p PORTS, --ports PORTS
                        The search regex (default: 1-1024)
  -t TARGETS, --targets TARGETS
                        A comma separated list of targets to scan (default: None)
  -T THREADS, --threads THREADS
                        The number of threads to use (default: 1024)

optional arguments:
  -a, --all-results     Show all results (default is to list open ports only) (default: False)
  -c, --csv             Save the results as a csv formatted file (default: False)
  -d, --delay           Add a random delay to each thread (default: False)
  -f FILENAME, --filename FILENAME
                        The filename to save the results to (default: portscan-results)
  -j, --json            Save the results as a json formatted file (default: False)
  -r, --random          Randomise the scanning order (default: False)

Port options: port range e.g. 1-1024 or 1:1024, port number e.g. 22, service name e.g. ssh