2 minute guide to detecting Spyware nasties on your PC with Netstat

netstatpic.JPG


This is very easy to do and with the help of Netstat which is already installed on Windows XP will detect to see if you have Spyware, Malware or anything else that shouldn’t be running on your computer
1. Close all your applications down but stay connected to the internet so you only have your desktop screen showing.
2. Press the windows key, keep it depressed and at then press R, this should bring up the run command. Or you could press Start>all programs>accessories>command prompt.
3. Type cmd and click OK, this will bring up a black screen as shown below

netstat.JPG

4. Then type cd \ this will take you to the root directory, to clear the screen you can type cls, this is optional, you should now see this screen

netstat1.JPG

5. Now type netstat and press the spacebar, then type –b (it will look like this “netstat –b”) hit enter and you will see a list of any active connections (that is any applications connecting to the internet), these are shown on the left hand side of the screen within the [ ] brackets, if you are only connected to the internet with nothing running then you will have very little showing on Netstat. However if you have an antivirus program running you might see something like [ashwebSV.exe] or [nortonSV.exe] but that depends on the antivirus software you have and if its trying to connect to the internet at the time.
6. If you have anything else running and you don’t recognise it or it just doesn’t look right then do a Google search to find out what it is, if it is Spyware, Malware or something else then get rid of it using your Spyware application (and I hope you have one installed).
7. Another good tip is to run Netstat every now and again without closing your applications to keep a check on what applications are connecting to the internet.
8. If you want to, you can copy the Netstat list to a text file by typing netstat then space –b another space then type > space then type netstat.txt (which would look like this “netstat –b > netstat.txt”) on the command line and this will copy the netstat list to your root c: drive. All you then have to do is open My computer and click on the C: drive and you will see a file called netstat.txt click on it and you will see the Netstat list.


Popularity: 71% [?]

Stumble Digg Technorati Subscribe Delicious
Subscribe to Informationaddicts via RSS

Related Posts:

15 Responses to “2 minute guide to detecting Spyware nasties on your PC with Netstat”

  1. rich Says:

    jsanderz,
    Thanks for this little tip, netstat is an excellent tool for the job.
    Excellent site by the way.

  2. jsanderz Says:

    rich,
    I am glad you like it, I have more excellent tips to come.
    Regards.

  3. Aaron Says:

    Good tip, I personally always use netstat - a, but never thought of sending it to a txt, thats a useful little command that not many people know, it’s always the first thing I refer to when I suspect anything suspicious is happening on a system.

  4. jsanderz Says:

    Aaron,
    I am glad I could help.
    Regards.
    Jsanderz

  5. piaskal Says:

    You might also want to add “-n” to stop it from doing reverse dns lookup and speed netstat up a little bit.

  6. Cookie Monster Says:

    I knew about the netstat command (dos > windows), but not the -b command, so I’d only see IPs and addresses and such (the -a flag thingy). Good tip.

  7. What is Windows? Says:

    Or, you could install Ubuntu and not ever worry about spyware again.
    http://ubuntu.com

  8. Philippine Web Blog Says:

    nice tip…

  9. Grey Says:

    open notepad and type into it:

    @echo off
    netstat -b
    pause

    save notepad as netstat.bat, double click it when ever you want to run it… ;)
    also if your not familiar with a command /? is very useful to see all available options.

  10. jsanderz Says:

    Grey,
    Thanks for sharing this great tip.
    Regards.

  11. Grey Says:

    oops… sorry, you can’t rename the .bat file as netstat, it will kill it. i renamed it netstats.bat when testing and it works but netstat.bat fails… :) probably cause the file name is used elsewhere in windows… whogonnaknow…

  12. Satya Says:

    For those who use Google Desktop, there is a nice gadget that does this live.
    http://desktop.google.com/plugins/i/netstat.html?hl=en
    You can configure it’s update speed or pause it until you need it again.

  13. jsanderz Says:

    Satya,
    Thanks for the tip, I will give it a try.
    Regards.

  14. Tech Messages | 2007-12-05 | Slaptijack Says:

    […] Information Addicts » Blog Archive » 2 minute guide to detecting Spyware nasties on your…This is basic, but what the heck. […]

  15. Alkatr0z Says:

    The reason you can’t use netstat.bat isn’t because its already in use its because in the batch file you are calling “netstat”. It enters a loop where it keeps running it constantly without actually returning any results since its not calling the correct netstat. You can fix this easily enough by using the following instead:
    @echo off
    netstat.exe -b
    pause

    That will prevent it calling netstat.bat. Or you can use the absolute path of C:\windows\system32\netstat.exe -b. Its a good idea to have the .exe on the end so if any malware starts dropping a netstat.com you don’t need to worry about it executing the dummy version. Using the absolute path will prevent a netstat.exe being placed in a directory that is searched before the system32 folder. To check the precedence you can just open up a command prompt and type in PATH.

Leave a Reply