# Naabu

> naabu

- Skill: `sameh1200/naabu-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add sameh1200/naabu-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/sameh1200/naabu-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Sameh1200 (https://skillmd.com/u/sameh1200)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/sameh1200/naabu-2

---

# naabu

## Repo
https://github.com/projectdiscovery/naabu

## Installation
```bash
go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
sudo apt install libpcap-dev
```

## Using
```bash
# Top ports
naabu -list hosts.txt -top-ports 1000 -o ports.txt

# Full range
naabu -list hosts.txt -p - -o allports.txt

# Hand off to nmap
naabu -list hosts.txt -nmap-cli 'nmap -sV -sC'

# Silent
naabu -host target.com -silent -top-ports 100
```

## Real-time usage (typical)
| Scope | Duration | Notes |
|-------|----------|-------|
| Single host top 100 | < 10 s | |
| 100 hosts top 1000 | 1 – 5 min | |
| Full port range single IP | 1 – 10 min | rate dependent |
| Large host list | scale linearly | use -rate |

Faster than nmap for discovery; hand off interesting hosts to nmap for version detection.

## Current Step
Fast port scanning on resolved hosts.

## Next Step
Feed open ports to nmap for service detection or httpx for web ports.

## Errors Fixes
- Permission denied → run with sudo for raw scans or use connect mode
- libpcap missing → install libpcap-dev
- Rate limit → -rate 1000
- No results → confirm hosts are up

