Hack 23 List Running Services and Open PortsCheck for remotely accessible services the Windows way. Unix makes it quick and easy to see which ports on a system are open, but how can you do that on Windows? Well, with FPort from Foundstone (http://www.foundstone.com/resources/index_resources) it's as quick and easy as running good old netstat. FPort has very few command-line options, and those deal mostly with specifying how you'd like the output sorted. For instance, if you want the output sorted by application name, you can use /a; if you want it sorted by process ID, you can use /i. While it may not be as full of features as netstat, it definitely gets the job done. To get a listing of all ports that are open on your system, simply type fport. If you want the list to be sorted by port number, use the /p switch: C:\> fport /p Notice that there are some processes listedsuch as navapw32, putty, and IEXPLOREthat don't appear to be services. These show up in the output because FPort lists all open ports, not just opened ports that are listening. While FPort is not as powerful as some of the commands available under other operating systems, it is still a valuable, quick, and easy-to-use tool that is a great addition to Windows. |