Results 1 to 13 of 13

Thread: port scanner/viewer/shutdown-er

  1. #1

    Thread Starter
    New Member Mista_Random's Avatar
    Join Date
    May 2007
    Posts
    3

    port scanner/viewer/shutdown-er

    i ma a little new to VB but i have some experience, anyway i am trying to make a program that will scan all programs using whatever ports they use and record them in a text file. That way i know what programs are using what ports. and not just ports on the local machine, that way i can possibly see if anyone is using a program to remotely view/control my desktop.

    any and all help is appreciated.

  2. #2
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: port scanner/viewer/shutdown-er

    Well this could possibly be used for inappropriate uses and actions taken against other remote computer. So i will not help until another administrator or moderator says something.

  3. #3

    Thread Starter
    New Member Mista_Random's Avatar
    Join Date
    May 2007
    Posts
    3

    Re: port scanner/viewer/shutdown-er

    I see your point, but basicly all i am aiming for is a port scanner that will tell me what programs are using what ports

  4. #4
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: port scanner/viewer/shutdown-er

    Loads at PSC.com.

    I've done this before use Winsock to listen on each port (loop) if fails to listen, the current port is open, if success its closed.

    Very simple program
    Chris

  5. #5
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: port scanner/viewer/shutdown-er

    Quote Originally Posted by the182guy
    Loads at PSC.com.

    I've done this before use Winsock to listen on each port (loop) if fails to listen, the current port is open, if success its closed.

    Very simple program
    Yea that's the best way to do it locally (and how I've done it in the past). To do it remotely you'd use the .Connect method and wait for either the Winsock_Connect() event (success/port open) or Winsock_Error() event (check err message for "connection forcefully rejected").

    To find out what process/program is using that port would be difficult I'd imagine. I'm not sure how you'd do that.

    When in doubt, try Google.

  6. #6
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: port scanner/viewer/shutdown-er

    Quote Originally Posted by DigiRev
    Yea that's the best way to do it locally (and how I've done it in the past). To do it remotely you'd use the .Connect method and wait for either the Winsock_Connect() event (success/port open) or Winsock_Error() event (check err message for "connection forcefully rejected").

    To find out what process/program is using that port would be difficult I'd imagine. I'm not sure how you'd do that.

    When in doubt, try Google.
    Yup. I'm sure there is a netstat command to get the list of connections w/ app. So what you could do is shell cmd with netstat and the command so it saves to txt, read the txt and you can access the list from your app.

    BTW if you're planning on trying to remotely scan someones computer without permission you'll probably get caught...

    65,000 connection requests from one IP in a short space of time on consecutive ports, in the firewall log is not exactly inconspicuous is it.
    Chris

  7. #7
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: port scanner/viewer/shutdown-er

    Quote Originally Posted by the182guy
    Yup. I'm sure there is a netstat command to get the list of connections w/ app. So what you could do is shell cmd with netstat and the command so it saves to txt, read the txt and you can access the list from your app.
    That's true, never thought of trying netstat or other command line functions.

    BTW if you're planning on trying to remotely scan someones computer without permission you'll probably get caught...

    65,000 connection requests from one IP in a short space of time on consecutive ports, in the firewall log is not exactly inconspicuous is it.
    Yup. And software firewalls will pick it up in a second.

  8. #8
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    354

    Re: port scanner/viewer/shutdown-er

    netstat -a | find "LISTENING"

  9. #9
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: port scanner/viewer/shutdown-er

    Quote Originally Posted by superbovine
    netstat -a | find "LISTENING"
    Doesn't show what process/application is using the port.

  10. #10
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: port scanner/viewer/shutdown-er

    -b will

  11. #11
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: port scanner/viewer/shutdown-er

    Quote Originally Posted by sevenhalo
    -b will
    Yup, it sure does.

  12. #12
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: port scanner/viewer/shutdown-er

    Quote Originally Posted by sevenhalo
    -b will
    Nice. this is very useful for detecting spyware or bad apps, cheers mate rep+
    Chris

  13. #13

    Thread Starter
    New Member Mista_Random's Avatar
    Join Date
    May 2007
    Posts
    3

    Re: port scanner/viewer/shutdown-er

    Sweet, thanks for the help. i am going to try this tomorrow. Just had to format and reinstall windows on my computer.

    not a good days fishin

    by the way, not going to use this on other computers, but my own to see if anyone is watching me, and if so i can shut off the port they are using to do so so they can't watch me any longer.
    Last edited by Mista_Random; Jun 14th, 2007 at 01:29 AM. Reason: forgot to add something

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width