Jump to content

Port monitoring with VB.NET

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
sakishrist

sakishrist

    Programmer

  • Members
  • PipPipPipPip
  • 109 posts
Hello everyone!!!
I need to make a program that will list all the local ports that are open and the processes that use them. Is there any way to create such a program? I would also like to know if i can monitor the traffic(data thats transmitted) of a port even if another process already uses that port.

Am I asking too much??? :D

#2
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
Checking ports is simple. Use Visual Basic to open ALL ports. If you receive an error when trying to open a port then that port is in use. You'll have to map the common ports such as "21" = "ftp". This only works for a local machine. To test ports on a remote machine make a connection to that port. If it isn't rejected then the port is open.

For monitoring traffic I have no ideas. You could make a proxy software where all traffic flows through it. Other than that I do not know.

#3
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts

Lop said:

Checking ports is simple.
Use Visual Basic to open ALL ports.
Wow that would:
1. Take too much time
2. Make Your computer say to others "Come on, Hack Me!"

Quote

If you receive an error when trying to open a port then that port is in use.

Maybe you are right... but risky! You can simple scan your computer for open ports normally by applying this:

Quote

To test ports on a remote machine make a connection to that port. If it isn't rejected then the port is open.

Instead of an IP insert localhost

Quote

You'll have to map the common ports such as "21" = "ftp". This only works for a local machine.

That would only state the protocol, not the process using it.

Quote

I would also like to know if i can monitor the traffic(data thats transmitted) of a port even if another process already uses that port.

I don't know if that is possible to do that for every open port.. maybe yes.. maybe no.