Jump to content

Herhangi Bir Ip Adresiyle Bağlantı Sorgusu


Hemelli
 Share

Recommended Posts

Kolay gelsin arkadaşlar,

 

Ben AutoIt ile herhangi bir IP adresiyle bir alışverişimin olup olmadığını denetlemek istiyorum. Örneğin "173.194.40.51" (google'ın IP adresi) bu IP adresi ile bir alışverişim var mı, yokmu diye kontrol etmek istiyorum. Şu aşağıdaki yöntem çok uzun ve ağır...

 

Bana direkt sorgu yapabileceğim bir fonksiyon lazım. Net'te böyle bir fonksiyon var mı, ya  da sizin bildiğiniz herhangi bir fonksiyon. Teşekkür ederim.

 

 

Func IsDnsConnect($DnsIP)
 
Local $DOS = Run(@ComSpec & " /c netstat -n", "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
ProcessWaitClose($DOS)
Local $Message = StdoutRead($DOS)
TCPStartup()
If StringInStr($Message, TCPNameToIP($DnsIP)) Then
TCPShutdown()
Return True
EndIf
Return False
 
EndFunc   ;==>IsDnsConnect
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...