Image
 
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 17 guests and 3 members online
EH-Net Donations

Enter Amount:
$

Google Ads
EH-Net News Feeds
Latest Additions
Book Recommendations





 
Advertisement

You are here: Home arrow Forum arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow How to discovery all ip on a network
Ethical Hacker Community Forums
January 07, 2009, 11:30:23 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: ChicagoCon 2-Day Ethical Hacking Conference with MS Blue Hats Oct 31 - Nov 1. Tickets Only $100! www.chicagocon.com/content/view/103/51/
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: How to discovery all ip on a network  (Read 6034 times)
0 Members and 1 Guest are viewing this topic.
KH3
Newbie
*
Offline Offline

Posts: 7


View Profile
« on: September 17, 2007, 04:32:28 PM »

As a new pentester - i wonder how to discover all ipīs on a network if you have a connection to the network and donīt know whatīs on the net. Incl. machines on routed network.

Any good hintīs or tools?

KH3
Logged
ChrisG
EH-Net Columnist
Hero Member
*****
Offline Offline

Posts: 1049


View Profile WWW
« Reply #1 on: September 17, 2007, 05:45:36 PM »

nmap -sP 192.168.0.0/24
Logged

...tests i took go here...

http://carnal0wnage.blogspot.com/
EmanoN
Newbie
*
Offline Offline

Posts: 41


View Profile
« Reply #2 on: September 17, 2007, 06:09:14 PM »

Host discovery is the very first skill for  a security pro or a hacker. The first thing a hacker does when he goes to a coffee shop is connect to the network and ifconfig and see what dhcp gave him. If his IP is something like 192.168.9.105, then he has an idea of the network range and then will attempt a host discovery. He will first try the default -sS nmap option just to look for low hanging fruit. If anything shows up with -sS or -sT then he knows those might be easier targets. If nothing appears then he steps up his scans. Nmap is the premier open source scanner. There was a tut about it posted on this site  and thats how I found this place  from slashdot, but now its gone. No worries because there are many free nmap tuts out there. Make sure its free, I saw this one dude trying to sell the "secret" of nmap and thats total bs. The only secret is to download and start working with it and not just read about it!
« Last Edit: September 17, 2007, 06:16:35 PM by EmanoN » Logged
KH3
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #3 on: September 18, 2007, 01:14:39 AM »

Host discovery is the very first skill for  a security pro or a hacker. The first thing a hacker does when he goes to a coffee shop is connect to the network and ifconfig and see what dhcp gave him. If his IP is something like 192.168.9.105, then he has an idea of the network range and then will attempt a host discovery. He will first try the default -sS nmap option just to look for low hanging fruit. If anything shows up with -sS or -sT then he knows those might be easier targets. If nothing appears then he steps up his scans. Nmap is the premier open source scanner. There was a tut about it posted on this site  and thats how I found this place  from slashdot, but now its gone. No worries because there are many free nmap tuts out there. Make sure its free, I saw this one dude trying to sell the "secret" of nmap and thats total bs. The only secret is to download and start working with it and not just read about it!

Thanks - I know of and use NMAP, the question here is not to discover host on the LAN where you have and ip, but on the coonected WAN. This is on a closed network with branches. So is there a sure and quick way to discover host connected on other segment (via Cisco routers)? I can not asume that that the other ip segment are same class network.
Logged
KH3
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #4 on: September 18, 2007, 01:15:14 AM »

nmap -sP 192.168.0.0/24

Thanks - I know of and use NMAP, the question here is not to discover host on the LAN where you have and ip, but on the coonected WAN. This is on a closed network with branches. So is there a sure and quick way to discover host connected on other segment (via Cisco routers)? I can not asume that that the other ip segment are same class network.
Logged
ChrisG
EH-Net Columnist
Hero Member
*****
Offline Offline

Posts: 1049


View Profile WWW
« Reply #5 on: September 18, 2007, 06:25:59 AM »

look at the routing table on the exploited host then.

it should tell you other networks that is/has been using regularly
Logged

...tests i took go here...

http://carnal0wnage.blogspot.com/
EmanoN
Newbie
*
Offline Offline

Posts: 41


View Profile
« Reply #6 on: September 18, 2007, 10:39:41 AM »

Depending on how the router is configured, you can sometimes use a tool like Proxycap to tunnel through and then run your scans.
Logged
termight
Newbie
*
Offline Offline

Posts: 9


View Profile
« Reply #7 on: October 04, 2007, 06:34:22 PM »

i think cain and abel can help u if the router broadcasts protocal updates

also you can do a traceroute to a public IP after you default gateway the next        1 or 2  hops is the wan link interface IP or the network behind ur Default GW

hope this works
Logged
Diablo22
Newbie
*
Offline Offline

Posts: 8


View Profile
« Reply #8 on: October 05, 2007, 07:39:50 AM »

Not all routers will allow you to scan their Lan!
Logged
termight
Newbie
*
Offline Offline

Posts: 9


View Profile
« Reply #9 on: October 05, 2007, 08:04:47 AM »

Not all routers will allow you to scan their Lan!

yes this is because routers separate broadcast domains, but what ever be the case there will by all means be a next hop. if that next hop ip not the interface to the ISP then you have something to start with.
Logged
JeffCT
Newbie
*
Offline Offline

Posts: 10


View Profile
« Reply #10 on: October 15, 2007, 08:21:05 PM »

Checking your own IP assigned via DHCP is a good start, and traceroutes. Or, you could just scan all non-routable IPs. They are:

172.16-31.0.0 (or 172.16.0.0/12)
192.168.0.0/16
10.0.0.0/8

Logged

CISSP, CEH
KH3
Newbie
*
Offline Offline

Posts: 7


View Profile
« Reply #11 on: August 28, 2008, 06:15:31 AM »

God points and answers :O)

Itīs a while ago - but ended up scanning all non routeable subnets anyway (was not the easy solution that I hoped for ) But a clue to others SNMP will give you a pretty god hint of the subnets connected to routers.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.113 seconds with 23 queries.
 
Sponsors

cwnp_moto__120x90.gif

Polls
How many security events including conferences and training do you attend a year:
 
Support EH-Net


Support EH-Net by
Buying all of your
Amazon items using
the search bar above.

cbtnuggets_logo_125.jpg
Try CBT Nuggets Free!
Recent Forum Topics
Vote For EH-Net

progenic.com
Click here to Vote!

binarica.com
Binarica Logo

Add to Technorati Favorites
technorati fave

 
         
Advertisement

© 2009 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.