Skip to content

Latest commit

 

History

History
19 lines (19 loc) · 723 Bytes

README.md

File metadata and controls

19 lines (19 loc) · 723 Bytes

Port Scanner

A Simple Port Scanner in Golang

Usage

Run command

go run main.go -host=hostname -r=a-b -p=protocol

where hostname can be a domain name or ip address. The range a-b is the range that you long to scan.
In default (case you didn't pass any argument), hostname=127.0.0.1, r=1-65000, p=tcp.
The option range can be a-b -> [a, b], a -> [a, 65000], -b -> [1, b].

Demo

No argument passed demo no argument passed hostname passed demo hostname passed hostname, r passed demo hostname, r passed hostname, r, p passed demo hostname, r, p passed