Hack Forums
Install Nmap on Android Mobile using Termux - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+----- Forum: Hacking Tutorials (https://hackforums.net/forumdisplay.php?fid=47)
+----- Thread: Install Nmap on Android Mobile using Termux (/showthread.php?tid=6315942)



Install Nmap on Android Mobile using Termux - R5N3T - Dec 16, 2025

By using Termux, you can install Nmap directly on your Android phone. If you don’t have Termux yet, just install it first so Nmap can run on your android phone

Update the package repository in Termux by typing the command :
Code
$ pkg update
screenshot (Click to View)

Install Nmap on your Termux by typing the command :
Code
$ pkg install nmap
screenshot (Click to View)

To run Nmap, simply type the command :
Code
$ nmap [Scan Type(s)] [Options] {target specification}
screenshot (Click to View)

To see the list of options available in Nmap, just type
Code
$ nmap -help
screenshot (Click to View)

Sometimes we forget the options and parameters in Nmap, so don’t hesitate to ‘cheat’ by checking the Nmap help menu. Just type $ nmap -help and all the syntax will appear.

Now, tools that used to run only on Linux can be installed on your Android phone. With Termux, you can access the Linux shell on your Android and install various Linux applications, including Nmap. You can also install many other tools


RE: Install Nmap on Android Mobile using Termux - DramaKing - Dec 16, 2025

Just want to point out two things:

Running pkg update is unnecessary in Termux.
'nmap -help' is invalid.


RE: Install Nmap on Android Mobile using Termux - R5N3T - Dec 16, 2025

(Dec 16, 2025 07:46 AM)DramaKing Wrote:  Just want to point out two things:

Running pkg update is unnecessary in Termux.
'nmap -help' is invalid.

Just to make sure I have the latest pkg, and for nmap -help, it works on my Android phone, check my SC :
sc (Click to View)


RE: Install Nmap on Android Mobile using Termux - DramaKing - Dec 16, 2025

(Dec 16, 2025 07:52 AM)tuyulperang Wrote:  Just to make sure I have the latest pkg, and for nmap -help, it works on my Android phone, check my SC :
sc (Click to View)

That ain't proof.

[Image: Screenshot-20251216-092954-Termux.png]

And anytime you install a Termux package, it automatically updates the sources, that's why I said that it was unnecessary.


RE: Install Nmap on Android Mobile using Termux - R5N3T - Dec 16, 2025

Thanks for the explanation. Got it now, so there’s no need to update manually since the sources are automatically updated when installing a package.