This project is a simple port scanner written in Go. It uses Go's concurrency features to efficiently scan for open ports on a given IP address and displays the results in a table format.
- Scans ports within a specified range
- Uses Go's concurrency to speed up the scanning process
- Displays open ports in a nicely formatted table
- Go 1.16 or later
-
Clone the repository:
git clone https://github.com/RoshanShrestha123/port-peek cd port-peek
-
Install the required dependencies:
go install
-
Build the project:
go build -o port-peek
Run the port scanner with the target IP address and port range:
./port-peek -ip <IP_ADDRESS> -startPort <START_PORT> -endPort <END_PORT>
Example:
./port-peek -ip 192.168.1.1 -startPort 1 -endPort 5000
---Searching for OPEN port---
+------+---------+--------+
| PORT | NETWORK | STATUS |
+------+---------+--------+
| 22 | tcp | open |
| 80 | tcp | open |
| 443 | tcp | open |
+------+---------+--------+
Done
- Fork the repository
- Create your feature branch (
git checkout -b feature/your-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin feature/your-feature
) - Create a new Pull Request