Portify is a simple Go-based port scanner that enables you to scan a range of ports on a target host. This tool provides information about open and closed ports and, if desired, can retrieve banners from open ports.
To use Portify, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/ni5arga/portify.git
-
Navigate to the project direcory
cd portify
-
Build the project with Go
go build portify.go
You can now use the portify
binary to scan ports.
Usage: ./portify [options] <host> <start-port> <end-port>
Options:
-timeout string
Connection timeout duration (default "3s")
-parallel int
Number of parallel scans (default 100)
-show-closed
Show closed ports in the output
-show-banners
Show banners from open ports
-show-open
Show open ports in the output
<host>
: The target host you want to scan.<start-port>
: The first port in the range you want to scan.<end-port>
: The last port in the range you want to scan.
- Scan a range of ports on a target host and show open ports:
./portify -show-open example.com 80 100
- Scan a range of ports on a target host and show banners from open ports:
./portify -show-banners example.com 20 30
- Scan a range of ports with a custom timeout:
./portify -timeout 5s example.com 50 60
- Scan with a specific number of parallel scans:
./portify -parallel 50 example.com 2000 2100
- Show both open and closed ports in the output:
./portify -show-open -show-closed example.com 7000 7100
- Show closed ports only:
./portify -show-closed example.com 4000 4010