https://github.com/ni5arga/portify
A lightweight port scanner written in Golang.
https://github.com/ni5arga/portify
go golang netsec nmap portscanner tcp udp web-exploitation
Last synced: 10 months ago
JSON representation
A lightweight port scanner written in Golang.
- Host: GitHub
- URL: https://github.com/ni5arga/portify
- Owner: ni5arga
- License: mit
- Created: 2023-11-08T11:43:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-08T12:42:45.000Z (over 2 years ago)
- Last Synced: 2025-06-03T04:26:04.032Z (about 1 year ago)
- Topics: go, golang, netsec, nmap, portscanner, tcp, udp, web-exploitation
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Portify
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.
## Installation
To use Portify, follow these steps:
1. Clone this repository to your local machine:
```bash
git clone https://github.com/ni5arga/portify.git
```
2. Navigate to the project direcory
```bash
cd portify
```
3. Build the project with Go
```bash
go build portify.go
```
You can now use the `portify` binary to scan ports.
## Command Line Usage
```bash
Usage: ./portify [options]
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
```
- `` : The target host you want to scan.
- ``: The first port in the range you want to scan.
- `` : The last port in the range you want to scan.
## Example Commands
1. Scan a range of ports on a target host and show open ports:
```bash
./portify -show-open example.com 80 100
```
2. Scan a range of ports on a target host and show banners from open ports:
```bash
./portify -show-banners example.com 20 30
```
3. Scan a range of ports with a custom timeout:
```bash
./portify -timeout 5s example.com 50 60
```
4. Scan with a specific number of parallel scans:
```bash
./portify -parallel 50 example.com 2000 2100
```
5. Show both open and closed ports in the output:
```bash
./portify -show-open -show-closed example.com 7000 7100
```
6. Show closed ports only:
```bash
./portify -show-closed example.com 4000 4010
```