Sign in to follow this  
Followers 0
Maz

Port Check

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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


Active: IRC UDF, WindowEx UDF
Discontinued: GithubBubbleSort UDF

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0