An open API service indexing awesome lists of open source software.

https://github.com/shockz-offsec/goports

A fast and concurrent TCP port scanner.
https://github.com/shockz-offsec/goports

concurrency go golang nmap port portscanner quick scanner tcp threading

Last synced: 12 months ago
JSON representation

A fast and concurrent TCP port scanner.

Awesome Lists containing this project

README

          

# GoPorts

A fast and concurrent TCP port scanner.

## Installation

Install Golang in Linux

sudo apt-get install golang

Install Golang in Windows => [Download Golang](https://golang.org/dl/)

#

Clone the repository into your machine

git clone https://github.com/shockz-offsec/GoPorts

Move to the GoPorts directory

cd GoPorts

Check usage and flags, then run your custom command !!

go run goports -h

## Flags

| Flag | Description |
|-----|---|
| `-host` | Host or IP address to scan (default "127.0.0.1") |
| `-ports` | Port range to be tested (Ex: 80,443,1-65535,1000-2000) (default "1-65535") |
| `-threads` | Number of threads to be used (default 900) |
| `-timeout` | Connection timeout in seconds (default 1s) |
| `-top20` | Scanner top 20 most scanned TCP ports |
| `-top200` | Scanner top 200 most scanned TCP ports |

## Usage

Scan the 65535 ports over localhost (127.0.0.1)

go run goports

Scan specific ports (21,22,23,80,443) over a specific host (10.10.10.10)

go run goports -host 10.10.10.10 -ports 21-23,80,443

Scan specific ports over a specific host, setting a timeout of 5 seconds and using 1000 threads

go run goports -host www.google.com -ports 80,443 -timeout 5 -threads 1000

Scan the top 20 tcp ports over a specific host using 1000 threads

go run goports -host www.google.com -top20 -threads 1000

This command will scan the top 200 tcp ports on the designated host using 1000 threads

go run goports -host www.google.com -top200 -threads 1000

#

### License

*Apache-2.0 License*