PDA

View Full Version : How to detect port 23 status



vels
14th November 2011, 05:13
Hi,

I have a windows machine, using Firewall settings I block port 23 to overcome Vulnerability, is there a QT class to detect If telnet port is open/closed?


Thanks,
vels

ChrisW67
14th November 2011, 05:53
Blocked inbound or outbound? Try to connect to the machine (or a remote machine if you are supposedly blocking outbound) if it succeeds then the firewall is a failure, if it fails the the firewall may still be a failure because there are many, many ways for a connection to fail.

If you want a Windows API call to find out what the Windows firewall settings are then it is best you ask Microsoft (http://letmebingthatforyou.com/?q=windows%20api%20firewall%20settings)

vels
17th November 2011, 12:42
Thanks Chris,

My concern is to validate port(23) and not the Firewall.The user should be intimated with message "Telnet port blocked !!!" if blocked inbound/outband by firewall.


Thanks,
vels