Naabu in Termux: Installation & Usage
Naabu is a remarkably fast and reliable port scanner written in Go by the team at ProjectDiscovery. It is designed to perform reconnaissance on large networks quickly and efficiently, making it an essential tool for penetration testers and security researchers working in Termux.
Prerequisites
To build Naabu from source, you need to have the Go programming language installed in your Termux environment.
pkg update && pkg upgrade -y pkg install git golang -y
Installation Commands
Follow these steps to clone the repository and build the Naabu binary.
1. Clone the Repository
git clone https://github.com/projectdiscovery/naabu.git
2. Build from Source
cd naabu/cmd/naabu go build
3. Install Globally
Move the compiled binary to your bin folder to make it accessible from anywhere.
mv naabu $PREFIX/bin
Basic Scanning Commands
Naabu is highly flexible. Here are some of the most common ways to use it:
Scan a Single Host
naabu -host example.com
Scan Specific Ports
naabu -host example.com -p 80,443,8080
Scan Top 1000 Ports
naabu -host example.com -top-ports 1000
Silent Mode
Use silent mode for clean output, ideal for piping into other tools.
naabu -host example.com -silent