Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

January 15, 2002 12:00 AM

Basic Port Scanning in Action

Windows IT Pro
InstantDoc ID #23688
Rating: (0)

I use port scanning across my internal workstations to identify unknown services or machines that match a specific profile, such as those that run IIS. You’ll find the scanner output cryptic at times. A recently deployed application might use a port that you haven’t seen before. However, you can likely find references on the Internet that list which application or service corresponds to that particular port. The basic sample that Figure A shows indicates one way to correlate Nmap output to a specific service. First, the output shows a scan of a server named Sunriver running a new installation of XP, with Nmap configured for a TCP SYN scan.

In this output, you might not recognize TCP port 5000 or the name fics. Nmap uses the nmap-services file to match port numbers to names. For some ports, the file includes a short description of the port. In this case, fics is an acronym that stands for "Free Internet Chess Server," as Figure B shows.

Because I hadn’t seen a chess server on any previous Win2K Professional installs and was fairly certain that Microsoft wasn’t including a chess server in its default build of XP, I looked further. I entered TCP port 5000 well known ports in an Internet search engine and found a security page that described this port as one that a French Trojan horse program (i.e., Socket de Troie) uses.

Still unsatisfied, I then searched the Usenet for TCP port 5000 service and discovered that XP and Windows Me use the port 5000 service for Universal Plug and Play (UPnP) features. A linked Microsoft technical support article associated these UPnP features with the Simple Service Discovery Protocol (SSDP) Service. On this server, I stopped the SSDP Service, then rescanned to confirm that the port was now closed, as Figure C shows.

I also updated the nmap-services file so that future scans would reflect this service. Specifically, I associated TCP port 5000 with the Microsoft SSDP Service by adding the line

ssdp-msft   5000/tcp   # Microsoft SSDP Discovery Service

in the nnmap-services file. The change took place immediately, and other machines with TCP port 5000 open now reflect the updated name.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.