All     Ethical Hacking     Networking     Programming     OSINT

Naabu in Termux – Installation, Usage & Basic Commands

Naabu is a fast port scanning tool used for reconnaissance. It helps identify open TCP ports on domains and IP addresses and is commonly used before deeper web or network testing.

Installation

Update Termux and install required packages:

pkg update && pkg upgrade && pkg install git golang -y

Clone the official Naabu GitHub repository:

git clone https://github.com/projectdiscovery/naabu.git

Move into the Naabu directory:

cd naabu/cmd/naabu

Build Naabu from source:

go build

Run Naabu:

./naabu --help

(Optional) Make Naabu globally accessible:

mv naabu $PREFIX/bin

Now you can run it from anywhere:

naabu --help

Usage Commands

Scan common ports of a domain:

naabu -host example.com

Scan an IP address:

naabu -host 192.168.1.1

Scan multiple targets from a file:

naabu -list targets.txt

Scan specific ports:

naabu -host example.com -p 80,443,8080

Scan top 1000 ports:

naabu -host example.com -top-ports 1000

Save output to a file:

naabu -host example.com -o open-ports.txt

Silent mode (clean output):

naabu -host example.com -silent