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.
- Host: GitHub
- URL: https://github.com/shockz-offsec/goports
- Owner: shockz-offsec
- License: gpl-3.0
- Created: 2021-06-29T23:19:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-14T11:54:18.000Z (almost 3 years ago)
- Last Synced: 2025-01-05T13:40:09.926Z (about 1 year ago)
- Topics: concurrency, go, golang, nmap, port, portscanner, quick, scanner, tcp, threading
- Language: Go
- Homepage:
- Size: 74.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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*