This is a simple port scanner that scans a range of ports on a given host; Trying to be as fast as possible.
go run portscanner.go -a <address> -f <first_port> -l <last_port>go run portscanner.go -h 127.0.0.1 -first 1 -last 1000 -workers 550The higher the count of workers(300 by default), the faster your program should execute.
But if you add too many workers, your results could become unreliable
- Host: localhost
- First Port: 1
- Last Port: 1024
- Workers Count: 300