Saturday, December 15, 2012

How to port Nmap to your Android Phone

Porting Nmap to Android

I was trying to port Nmap to Android and I was running into plenty of compiling and linking errors until I realized, thanks to Vlatko Kosturjak, this has already been done.

First, download the package:
wget http://ftp.linux.hr/android/nmap/nmap-5.50-android-bin.tar.bz2

Open it:
tar -xvjf nmap-5.50-android-bin.tar.bz2

Go into the directory and push to your phone:
cd nmap-5.50/bin
adb push . /data/local/tmp

Obviously, if you have root, you can push these binaries anywhere you would like.
http://seclists.org/nmap-dev/2011/q1/440