| View previous topic :: View next topic |
| Author |
Message |
Jacques Guest
|
Posted: Wed Mar 16, 2005 11:48 pm Post subject: Port scanner |
|
|
Does anyone know how to scan ports with indy components?
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Mar 17, 2005 12:12 am Post subject: Re: Port scanner |
|
|
"Jacques" <jacques.noah (AT) btinternet (DOT) com> wrote
| Quote: | Does anyone know how to scan ports with indy components?
|
Indy is not designed for that. The only way to port scan with Indy is to
actually open a socket to the target IP/port, disconnect immediately after
connecting, and catch any connection errors in between.
Gambit
|
|
| Back to top |
|
 |
Jacques Guest
|
Posted: Thu Mar 17, 2005 12:41 am Post subject: Re: Port scanner |
|
|
thanks Remy
Is there perhaps another way this can be done? I just need to know if a port
is open and if so, what program is using it. I've googled but could not
find any info on this.
thanks
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote
| Quote: |
"Jacques" <jacques.noah (AT) btinternet (DOT) com> wrote in message
news:4238c5c7 (AT) newsgroups (DOT) borland.com...
Does anyone know how to scan ports with indy components?
Indy is not designed for that. The only way to port scan with Indy is to
actually open a socket to the target IP/port, disconnect immediately after
connecting, and catch any connection errors in between.
Gambit
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Mar 17, 2005 1:35 am Post subject: Re: Port scanner |
|
|
"Jacques" <jacques.noah (AT) btinternet (DOT) com> wrote
| Quote: | I just need to know if a port is open
|
If the port is on the local machine, then simply binding a socket to the
port (not connecting or listening on the port) will tell you if it is
available or not.
| Quote: | and if so, what program is using it.
|
For that, you have to perform a low-level query directly to the OS or socket
stack. The socket API does not provide for that functionality. Have a look
at the TCPView utility from http://www.sysinternals.com.
Gambit
|
|
| Back to top |
|
 |
Jacques Guest
|
Posted: Thu Mar 17, 2005 2:04 am Post subject: Re: Port scanner |
|
|
Thanks Remy,
I found what iwas looking for.
Cheers
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote
| Quote: |
"Jacques" <jacques.noah (AT) btinternet (DOT) com> wrote in message
news:4238d229 (AT) newsgroups (DOT) borland.com...
I just need to know if a port is open
If the port is on the local machine, then simply binding a socket to the
port (not connecting or listening on the port) will tell you if it is
available or not.
and if so, what program is using it.
For that, you have to perform a low-level query directly to the OS or
socket
stack. The socket API does not provide for that functionality. Have a
look
at the TCPView utility from http://www.sysinternals.com.
Gambit
|
|
|
| Back to top |
|
 |
|