Simple TCP port scanner in golang.
You have to have GO version 1.19
go build
docker build --force-rm --rm --target release .
help:
./port-scanner-go --help
./port-scanner-go help
version:
./port-scanner-go --version
ports 1-32000:
./port-scanner-go --host 192.168.1.1
single port:
./port-scanner-go --host 192.168.1.1 --port 80
ports range:
./port-scanner-go --host 192.168.1.1 --port 1-1024
specific ports:
./port-scanner-go --host 192.168.1.1 --port 80,443,22
debug mode:
./port-scanner-go --host 192.168.1.1 --port 80 --debug
NAME:
port-scanner-go - A new cli application
USAGE:
port-scanner-go [global options] command [command options] [arguments...]
VERSION:
docker
AUTHORS:
M Amin Nasiri <[email protected]>
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--concurrency value How many concurrency job run (default: CPU count)
--debug Enable Debug Logs (default: false)
--help, -h show help (default: false)
--host value Target Host
--port value Ports Range e.g 80 or 1-1024 or 80,22,23 (default: 1-32000)
--timeout value TCP Timeout in Millisecond (default: "500")
--version, -v print the version (default: false)