Go Back   Android Forums > Android Phones > Samsung i7500 > i7500 - All Things Root
i7500 - All Things Root Rooting, ROMS, Overclocking, etc.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old March 13th, 2010, 05:20 AM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Nov 2009
Posts: 47
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Nmap for android

Yesterday i was trying to make nmap work in my galaxy. I forgot my laptop at home so i to make some research from my phone. I found a how to here but i have an issue after trying to use it. It says

unable to find nmap-services! Resorting to /etc/services

unable to open /etc/services for reading service information

Any experience on that thing?

Here is the link

Nmap android cross compile arm

pasxal is offline  
Reply With Quote
sponsored links
Old March 13th, 2010, 01:45 PM   #2 (permalink)
Senior Member
 
Andronix's Avatar
 
Join Date: Aug 2009
Posts: 676
 
Device(s): Samsung i7500 @ GAOSP Froyo nightly
Carrier: Not Provided

Thanks: 7
Thanked 17 Times in 13 Posts
Default

Tried copying 'services' file from any linux distro?
Andronix is offline  
Reply With Quote
Old March 13th, 2010, 01:59 PM   #3 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Nov 2009
Posts: 47
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
pasxal is offline  
Reply With Quote
Old March 13th, 2010, 05:35 PM   #4 (permalink)
Senior Member
 
Andronix's Avatar
 
Join Date: Aug 2009
Posts: 676
 
Device(s): Samsung i7500 @ GAOSP Froyo nightly
Carrier: Not Provided

Thanks: 7
Thanked 17 Times in 13 Posts
Default

how about using this?
Network Discovery v0.2.7.1 Aplikace pro Android | Komunikace

or even install debian and use nmap from there?

Place Ghantoos Running Debian on a Samsung Galaxy under Android
Andronix is offline  
Reply With Quote
Old July 19th, 2010, 07:21 PM   #5 (permalink)
New Member
 
Join Date: Apr 2010
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

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?
pozer69 is offline  
Reply With Quote
Old July 28th, 2010, 07:16 AM   #6 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 13
 
Device(s): Samsung Galaxy
Carrier: Not Provided

Thanks: 4
Thanked 1 Time in 1 Post
Default

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.
velnaykkar is offline  
Reply With Quote
Old August 6th, 2010, 08:05 AM   #7 (permalink)
New Member
 
Join Date: Aug 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Talking nmap for all.

Thanks velnaykkar!

Quote:
Originally Posted by velnaykkar View Post
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.
Fatman_UK is offline  
Reply With Quote
Old December 8th, 2010, 12:28 PM   #8 (permalink)
New Member
 
Join Date: Sep 2009
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

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) http://wjholden.com/nmap/src/
operat0r is offline  
Last edited by operat0r; December 8th, 2010 at 12:33 PM.
Reply With Quote
Old March 2nd, 2011, 12:22 PM   #9 (permalink)
New Member
 
Join Date: Sep 2009
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Index of /nmap/src I was first I know of to get nmap working on android but hes all bout it now ... my next step is MSF3 / autopwn on android
operat0r is offline  
Reply With Quote
Old August 25th, 2011, 12:00 PM   #10 (permalink)
New Member
 
Join Date: Aug 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by operat0r View Post
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
Jamie Jackson is offline  
Reply With Quote
sponsored links
Reply


Go Back   Android Forums > Android Phones > Samsung i7500 > i7500 - All Things Root
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:48 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.