Need to create a program to test for open TCP ports
Posted on 2012-03-16
I have a need for a port testing tool that I can program to to read and send from one node to another in a network. I know there may be tools that could do this for me, but I want flexibility of changing the functionality as the need arises. My preferred language is Java because I would like to run on both windows and Linux.
Here is what I would like the tool to do:
listen on a specified range of ports for a known message and when we receive that message, close that port.
Similarly, I want the program to write a message to a specified set of ports.
After all ports are verified or after a specified timeout, the program should spit out a report (I can handle this part).
As a follow up question once I have the program working, I want to set it up to use secure protocol as an option.