How do you check the listening ports on a windows box?
Command line.

Answer Posted / systems & network administator

I hope that headline doesn't scare you. A lot of people shun
the Windows command line in favor of more complicated
graphical user interfaces. But when it comes to
investigating malware infections, various command-line tools
can be incredibly helpful, since GUI-based tools can't
always do the job.

First off, invoke a command prompt. Go to Start --> Run and
type in 'cmd.exe.' Putting '.exe' at the end of the entry is
important; it is a far safer way of bringing up a command
prompt. To trick users, a malicious program might purposely
be called 'cmd.com,' and in such a case, the malware would
run if just 'cmd' were typed. Thus, go ahead and type
'cmd.exe' instead.

'netstat'
Next, with a command prompt going, run the netstat command
and take a gander at the listening ports on your systems. A
lot of people know that 'netstat –na' can provide a list of
TCP and UDP ports on the machine. Adding an 'o' to the
command arguments can reveal the process ID of each process
using a port. And, starting with XP SP2, an added 'b' flag
will show the EXE name using each port, along with the
dynamic link libraries (DLLs) that it has loaded to
communicate with the network. Beware of the 'b,' however.
The function can chew up some serious CPU time, tying up
between 60% and 100% of your processor for up to a minute.

But, wait, there is more. Suppose you want to look at port
usage and see how it changes over time. Adding a space and
then an integer to that netstat command, as in "netstat –nao
1", will run the command with a frequency equivalent to the
integer, in this case, for every one second. The display
will be dumped on the screen continuously, as shown below.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What platforms do you currently work on at your desk?

1519


Explain how to perform system maintenance?

571


how to know how many samba users in solaris?

1594


how to set tunneling in putty when any portno blocked from firewall to use resources with that portno like ssh 22

1889


Can you please explain the difference between csma/cd and csma/ca?

631






Do you know about the job of the network layer under the osi reference model?

548


Define the role of ieee in computer networking?

592


Give some private network addresses examples?

528


What are your key strengths as a System/network Administrator?

8266


hi all of you i m looking part time online job (data entry)without investment , please help me

1479


why we r going to freezing service group and system, what are the freezing steps & how to freezing service group?

1370


What is network architecture?

542


if one server is down, whenever restart the machine we get ok prompt what is the problem?

1373


salient feature of network administrator

1501


Tell me when troubleshooting computer network problems, what common hardware-related problems can occur?

595