Port Dragon
This project is a port scanner written in Go, it is intended to scan TCP ports with the intention of learning more about Goroutines and the Go language itself.
Available Options
- host: The host that you want to connect to and perform a port scan on (default is "localhost")
- start: The first port to start the scan at (inclusive, default is 1)
- stop: The last port to scan (inclusive, default is 10000)
- threads: The number of goroutines to spawn at any given time (default is 120)
In other words, the ports that will be scanned can be defined as follows:
Let port be any given port to be scanned; start <= port <= stop.
Usage
This will start the scan at port 10:
./port-scanner -start=10
This will stop the scan at port 30000:
./port-scanner -stop=30000
This will scan the ports of the host "192.168.0.1"
./port-scanner -host="192.168.0.1"
NOTE: You can also mix the different CLI flags in any order.
./port-scanner -host="www.google.com" -start=10 -stop=30000 -threads=200
Thanks for using my port scanner written in Go!