All     Ethical Hacking     Networking     Programming     OSINT

Nmap in Termux – Installation & Basic Commands

Nmap is one of the most powerful network scanning tools used for discovering devices, open ports, and services on a network. Termux makes it easy to install Nmap on your Android phone so you can perform network tests just like on a Linux system. Below are the installation steps and basic commands.

Installation

Update your Termux packages first:

pkg update && pkg upgrade -y

Install Nmap:

pkg install nmap -y

Check Nmap version:

nmap --version

Quick scan of a target:

nmap scanme.nmap.org

Basic Commands

Scan an IP or website:

nmap target-ip-or-domain

Scan a specific port:

nmap -p 80 target

Scan multiple ports:

nmap -p 80,443,8080 target

Scan all ports (1–65535):

nmap -p- target

Service/version detection:

nmap -sV target

OS detection scan:

nmap -O target

Aggressive scan (detailed info):

nmap -A target

Save scan results to file:

nmap target -oN output.txt

Uninstall Nmap:

pkg uninstall nmap