This is a simple network port scanner written in Golang. It allows you to scan a range of ports on a given host or IP address and determine if they are open or closed.
This is my first project using Golang.
-
Make sure you have Go installed. You can download it from the official website: https://go.dev/dl/
-
Clone the repository or download the source code:
git clone https://github.com/Niteletsplay/GoPortScanner.git
-
Navigate to the directory where you cloned the repository or extracted the source code:
cd GoPortScanner
-
Build the project:
go build
To use the port scanner, run the following command:
./GoPortScanner <hostname> <start_port-end_port>
<hostname>
:The target host or IP address you want to scan.<start_port-end_port>
: The range of ports you want to scan.
For example:
./GoPortScanner google.com 1-1000
This will scan ports 1 to 1000 on the example.com host and display the results.