• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Nmap for android

Yes i tried and didn't worked. Then I thought it was a permission problem and tried to change permissions but didn't work either.
 
I hate to bring up an old post but I am trying to do this on my Incredible and I am receiving the same errors.

Did you ever get this to work?
 
nmap from the above mentioned link works fine for me (Galaxy running GAOSP-Froyo nightly build).
Here is what i did:
Download nmap: http://rmccurdy.com/stuff/G1/BINS/NMAP/NMAP.zip
connect phone to pc
adb remount
adb push nmap.zip /sdcard/nmap.zip
adb shell (following on shell)
su
cd /data/local
mkdir bin
cd bin
cp /sdcard/nmap.zip .
unzip nmap.zip
chmod 755 *

after that run nmap. (nmap -v -iR 5 -PN -p 80 -n)

nmap-services is available in the zip file. I guess we have to be in the directory that has nmap binary and nmap-services file.
 
Thanks velnaykkar!

nmap-services is available in the zip file. I guess we have to be in the directory that has nmap binary and nmap-services file.

Or you could remount the filesystem as read-write:

Code:
# mount -o remount,rw /dev/block/mtdblock3
# mount | grep mtdblock3
/dev/block/mtdblock3 on /system type yaffs2 (rw,relatime)

Copy the file to /etc/services:

Code:
# cp /data/local/bin/nmap-services /etc/services

And happily use nmap from any dir. :)

Code:
# pwd
/
# nmap 127.0.0.1

Starting Nmap 4.01 ( http://www.insecure.org/nmap/ ) at 2010-08-06 12:49 UTC
Unable to find nmap-services!  Resorting to /etc/services
All 1672 scanned ports on localhost (127.0.0.1) are: closed

Nmap finished: 1 IP address (1 host up) scanned in 4.569 seconds

Don't forget to remount as read-only. Just in case a nasty comes along.
 
run this from SD slot
http://www.rmccurdy.com/nmap.sh

usage:
wget http://www.rmccurdy.com/nmap.sh
bash -x /sdcard/nmap.sh 127.0.0.1

you MUST use -oA or you will get no output I think ... I was the first to compile nmap but Nmap for Android took it to next level ... this is his current binaries in the (raw folder) Index of /nmap/src

Hi operat0r,

I'm confused about the above. If I run the wget/bash sequence above, will I get your outmoded version, or WJ Holden's "Nmap for Android."

If the sequence gives provides your deprecated version, would you mind explaining how to install the good one via what's available in Index of /nmap/src?

Thanks,
Jamie
 
Back
Top Bottom