August 6th, 2010, 08:05 AM
Join Date: Aug 2010
Carrier: Not Provided
Thanked 0 Times in 0 Posts
nmap for all.
Originally Posted by 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:
# 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:
# cp /data/local/bin/nmap-services /etc/services
And happily use nmap from any dir.
# 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.