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 -yInstall Nmap:
pkg install nmap -yCheck Nmap version:
nmap --versionQuick scan of a target:
nmap scanme.nmap.orgBasic Commands
Scan an IP or website:
nmap target-ip-or-domainScan a specific port:
nmap -p 80 targetScan multiple ports:
nmap -p 80,443,8080 targetScan all ports (1–65535):
nmap -p- targetService/version detection:
nmap -sV targetOS detection scan:
nmap -O targetAggressive scan (detailed info):
nmap -A targetSave scan results to file:
nmap target -oN output.txtUninstall Nmap:
pkg uninstall nmap