Jump to content
Sign in to follow this  
Jammer

Status checker.

Recommended Posts

How could I make a script witch checks is there a 4354 port open of some IP?

What stuff sould I use?

Share this post


Link to post
Share on other sites

get Larry's au3xtra.dll then use this code:

Dim $IP, $Port

DLLCall(@ScriptDir & "\au3xtra.dll","int","TCPStartUp")
$ConTest = DLLCall(@ScriptDir & "\au3xtra.dll","int","TCPConnect", "str", $IP, "int", $Port)
If $ConTest[0] > 0 Then
   MsgBox(0, "", "The port is open")
   DLLCall(@ScriptDir & "\au3xtra.dll", "int", "TCPCloseSocket", "int", $ConTest[0])
Else
   MsgBox(0, "", "Port isn't open")
EndIf

DLLCall(@ScriptDir & "\au3xtra.dll", "int", "TCPShutDown")

Share this post


Link to post
Share on other sites

hmm sometimes it lags very much or just freezes.... u have to end the task...

anyway to bypass that? make a timeout or something...

Share this post


Link to post
Share on other sites

hmm sometimes it lags very much or just freezes.... u have to end the task...

anyway to bypass that? make a timeout or something...

<{POST_SNAPBACK}>

If you're using it in a loop, you should test using a DLLOpen in the beginning

of your script.. Good luck !

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...