Image
 
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 24 guests and 2 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 Discovering Services without Portscanning
Ethical Hacker Community Forums
December 02, 2008, 06:01:14 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: Discovering Services without Portscanning  (Read 1784 times)
0 Members and 1 Guest are viewing this topic.
ryan
Newbie
*
Offline Offline

Posts: 20



View Profile WWW
« on: September 19, 2006, 02:13:13 PM »

Port scanning is obviously the most common approach for determining what service daemons exist on a host, but it isn't the only way. An IDS that detects portscans might be a helpful tool to give an admin a headsup in SOME scenarios, but depending on a hacker to portscan is like picking low-hanging fruit.

As researchers, we should be aware of all possible avenues for an attacker to accomplish a goal.

So how else might an attacker enumerate which service ports are available on a remote server?

If SNMP is available and the community strings are default/guessable, often this can provide an interface for listing listening ports. This is interesting because we can often retrieve the entire TCP connection table (including all established connections/listening ports) using only SNMP. This could allow an attacker to glean even MORE information than a portscan would if there was a firewall in place.

Another way would be through a zone transfer. Often times DNS names clearly indicate a service. If zone transfers aren't disallowed to the attacker, this could be a useful feature:

Code:
S:\>nslookup
Default Server: ns
Address:  10.81.1.12

> set type=ns
> learnsecurityonline.com
Server:  ns
Address:  10.81.1.12

Non-authoritative answer:
learnsecurityonline.com nameserver = ns10.dynamichosting.biz
learnsecurityonline.com nameserver = ns11.dynamichosting.biz

ns10.dynamichosting.biz internet address = 216.83.6.33
ns11.dynamichosting.biz internet address = 216.83.31.25
> server ns10.dynamichosting.biz
Default Server:  ns10.dynamichosting.biz
Address:  216.83.6.33

> set type=any
> ls -d learnsecurityonline.com
[ns10.dynamichosting.biz]
...
 learnsecurityonline.com.       A      216.83.24.173
 ftp                            A      216.83.24.173
 mail                           A      216.83.24.173
 webmail                        A      216.83.24.173
 www                            A      216.83.24.173
...
>

These are only a few. Can anyone else think of uncommon methods for accomplishing common hacker tasks? portscanning or otherwise?
Logged

Negrita
Sr. Member
****
Offline Offline

Posts: 289



View Profile
« Reply #1 on: September 19, 2006, 02:45:05 PM »

I don't think that DNS records could be used in this situation. Just because there is a DNS record and also because the appropriate port is open, doesn't mean that the server is up and running. I know this for a fact from my work experience.

The best way to determine the service is to telnet to it. This will usually also give you a banner with the type of service running, i.e. Apache webserver or Microsoft Exchange etc.

Another way would be to use vulnerability scanners like Nessus.
Logged

CEH, CCSA NG/AI, NNCSS, MCP, MCSA 2003

There are 10 kinds of people, those that understand binary, and those that don't.
ChrisG
EH-Net Columnist
Hero Member
*****
Offline Offline

Posts: 1042


View Profile WWW
« Reply #2 on: September 19, 2006, 03:12:56 PM »

i guess i appreciate you using LSO as an example :- Huh

a real "old school zone transfer" would have shown the mappings to our internal and external facing boxes.  what you put would be necessary for normal functioning of those services...
Logged

...tests i took go here...

http://carnal0wnage.blogspot.com/
skel
Jr. Member
**
Offline Offline

Posts: 60


"Beam me up Scotty - Only hackers here"


View Profile
« Reply #3 on: September 20, 2006, 04:16:07 AM »

Well If you are on a LAN, a sniffer will tell you which Servers are running which applications as long as somebody in that VLAN/switch communicates.
Logged

Skel
ryan
Newbie
*
Offline Offline

Posts: 20



View Profile WWW
« Reply #4 on: September 20, 2006, 10:39:35 AM »

I should have indicated 2 things, first that allowing zone transfers doesn't necesarily indicate bad security (for instance, in the LSO example nothing is being displayed that wouldn't be available normally), and second that these alternative methods sometimes produce false positives, as negrita indicated, however they do still give an indication of certain probabilities.
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.037 seconds with 22 queries.
 
Sponsors

cwnp_moto__120x90.gif

Polls
During the most recent election, I:
 
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!

Sadikhov.com
Top IT Cert Sites

binarica.com
Binarica Logo

Add to Technorati Favorites
technorati fave

 
         
Advertisement

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