Maz Posted September 12, 2011 Share Posted September 12, 2011 Hi I am trying to create a scipt that will look into a ,csv file file for certain Ips then connect to each remote host and look to see if a specific port is running and give some type of feedback any ideas ? Thanks Link to comment Share on other sites More sharing options...
rcmaehl Posted September 12, 2011 Share Posted September 12, 2011 Hi I am trying to create a scipt that will look into a ,csv file file for certain Ips then connect to each remote host and look to see if a specific port is running and give some type of feedback any ideas ? Thanks Use TCP functions and if the port succeeds then it is open. My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.My Projects WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF Link to comment Share on other sites More sharing options...
Maz Posted September 12, 2011 Author Share Posted September 12, 2011 Hi Thanks for the response here is what i have so far in the Ip can i specify a remotelist .csv $g_IP = "" ; Start The TCP Services ;============================================== TCPStartUp() ; Create a Listening "SOCKET" ;============================================== $MainSocket = TCPListen($g_IP, 58264 100 ) If $MainSocket = -1 Then Exit ; look for client connection ;-------------------- While 1 $ConnectedSocket = TCPAccept( $MainSocket) If $ConnectedSocket >= 0 Then msgbox(0,"","my server - Client Connected") exit EndIf Wend Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now