Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 54 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow Enumerating the 'hidden' IP addresses using port 0?
EH-Net
May 20, 2013, 06:49:33 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Enumerating the 'hidden' IP addresses using port 0?  (Read 3755 times)
0 Members and 1 Guest are viewing this topic.
bobby_here
Newbie
*
Offline Offline

Posts: 14


View Profile
« on: June 13, 2012, 02:37:03 PM »

I recently ran a Nessus scan against my outward-facing IP. 

Its information gathering tools discovered a lot of pertinent data.

It correctly identified:

my eth0 MAC.
my wlan0 MAC.
my firewall rules (using iptables -L -n -v -t filter).
my operating system (using uname -a).
the name of my computer (but not the user name).
my programs listed as ESTABLISHED or LISTENING (using netstat)

For example:

"By connecting to the remote host via SSH with the supplied credentials, this plugin enumerates network interfaces configured with IPv4 addresses."

- 127.0.0.1 (on interface lo)

- 93.xxx.xxx.xxx (on interface ppp0)
-
- 128.xxx.xxx.xxx (on interface wlan0)

Nessus gathers this information by sending the queries mentioned earlier (like uname -a) to port 0.

I first assumed that this would be an excellent tool to identify a person as it reveals their real IP (if they are 'hiding' behind a VPN) assuming that wlan0 is not a 192.168.x.x address).

However, I then thought that the 'real' IP address can only be gathered as I was scanning myself.

I need to test this but am I correct to think that if one outward-facing IP uses Nessus to scan a different outward-facing IP then they would not get the 'real' IP addresses like I did when I scanned myself. 

I don't see, for example, how commands like uname and iptables can be run on remote machines across the Internet because, if so, the whole idea of VPNs is rendered pointless.

Thanks!
Logged
unicityd
Full Member
***
Offline Offline

Posts: 156

Bored IT Manager, Crypto Nerd


View Profile WWW
« Reply #1 on: June 13, 2012, 02:45:42 PM »

Nessus reports local information as port 0.  Are you scanning this machine remotely or are you running Nessus from the target machine? 

Port 0 is reserved and not used by any (legit) TCP/UDP services.  On Unix, a program can request a dynamic port by specifying port 0; this will tell the API call to select a port.

Logged

BS in IT, CISSP, MS in IS Management (in progress)
bobby_here
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #2 on: June 13, 2012, 04:17:14 PM »

Quote
Nessus reports local information as port 0.  Are you scanning this machine remotely or are you running Nessus from the target machine? 

I think this answers my question.

I am running Nessus from the target machine.

Hence, if I understand correctly, your point is that the information collected is "local".

And therefore if I was scanning the same machine remotely I would not be able to obtain such "local" information.

Correct?
Logged
unicityd
Full Member
***
Offline Offline

Posts: 156

Bored IT Manager, Crypto Nerd


View Profile WWW
« Reply #3 on: June 13, 2012, 05:23:14 PM »

Correct.
Logged

BS in IT, CISSP, MS in IS Management (in progress)
MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #4 on: June 14, 2012, 08:54:42 AM »

But you can obtain some information about the remote system by sending packets over ICMP which doesn't use ports. Ping (ICMP ECHO) is one of the common ones, but there's also "timestamp" (if that's the right name), netmask, and more.
Logged

I'm an InterN0T'er
ajohnson
Recruiters
Hero Member
*
Offline Offline

Posts: 1057


aka dynamik


View Profile WWW
« Reply #5 on: June 17, 2012, 07:14:20 PM »

You can also run credentialed scans and pull in this type of information via SSH (if the circumstances permit).
Logged

WIP: GCFA | www.infosiege.net | @infosiege

The day you stop learning is the day you start becoming obsolete.
bobby_here
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #6 on: June 23, 2012, 01:48:56 PM »


The Nessus reports says:

"By connecting to the remote host via SSH with the supplied credentials, this plugin enumerates MAC addresses."

Two questions:

First, as this scan is done on the "port" 0 presumably it can only be done when the scanned machine and the scanning machine are on the same LAN?

Second, I don't understand what the "supplied credentials" mean?  I did not supply any such credentials but the SSH tool obtained my internal IP address and MAC addresses.  How?

Thanks as always.
Logged
3xban
Hero Member
*****
Offline Offline

Posts: 605


View Profile WWW
« Reply #7 on: June 25, 2012, 08:13:29 PM »

The Nessus plugins have a number of custom configurations you can change to suit your environment.  The initial safe scan done by Nessus checks only what is available.  It will not brute force or log into any of the services found.  It will scan ports and try to enumerate the services on those ports.  It will then try to determine versions.  From there it will pull the possible vulnerabilities associated with those services and their versions.   If a system is properly locked down, there may be very little for Nessus to find, at which point you will need to gain access to the system.  If you are running Nessus in an enterprise for vulnerability management, you can supply credentials for the various services.  This allows you to get a better idea of the vulnerable services.

Logged

Certs: GCWN
(@)Dewser
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.075 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Free Business and Tech Magazines and eBooks

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