zipir2020 Posted May 24, 2020 Share Posted May 24, 2020 web socekt e autoit'le nasıl bağlana bilirim örnek: wss:\/\/socket-proxy.poker.zynga.com?ip=10.196.214.75&port=9339 buraya mesela yardımlarınız için şimdiden teşşekürler Quote Link to comment Share on other sites More sharing options...
Mehmet Posted May 26, 2020 Share Posted May 26, 2020 Please register to see this content. ile bağlanabilirsin. Daha önce telnet için kullanmıştım. Port ve ip adresini kendine göre düzenlersin. Global $err = @error TCPStartup() $Connect = TCPConnect("192.168.1.1", 23) If $Connect = -1 Then MsgBox(48,"Hata","Bağlantı Başarısız " & $Connect,10) Exit EndIf $recv = TCPRecv($Connect, 500) ConsoleWrite('Received: ' & $recv & @CRLF) TCPSend($Connect, "root" & @CRLF) $recv2 = TCPRecv($Connect, 500) ConsoleWrite('Received2: ' & $recv2 & @CRLF) TCPSend($Connect, "123456" & @CRLF) $recv3 = TCPRecv($Connect, 500) ConsoleWrite('Received3: ' & $recv3 & @CRLF) if StringInStr($recv3,"BusyBox") Then TrayTip("OK.BusyBox", "Bağlantı başarılı Lütfen Bekleyin", 15) Sleep(5000) TCPSend($Connect, "reboot" & @CRLF) Sleep(200) $recv4 = TCPRecv($Connect, 500) ConsoleWrite('Received4: ' & $recv4 & @CRLF) TCPCloseSocket($Connect) $recv5 = TCPRecv($Connect, 500) ConsoleWrite('Received5: ' & $recv5 & @CRLF) TCPShutdown() TrayTip("Modem Yeniden Başlatılıyor Lütfen Bekleyiniz", "Modem Yeniden Başlatılıyor Lütfen Bekleyiniz...", 15) Sleep(9000) Quote Link to comment Share on other sites More sharing options...
zipir2020 Posted May 27, 2020 Author Share Posted May 27, 2020 çok teşşekür ederim ancak baglanamadı diye uyarı veriyor wss:\/\/socket-proxy.poker.zynga.com?ip=10.196.208.161&port=9339 bana buraya girecek şekilde tam bir örnek verebilrsen inan çok sevinecem. şimdiden teşşekür ederim. Quote Link to comment Share on other sites More sharing options...
Mehmet Posted May 28, 2020 Share Posted May 28, 2020 (edited) Biraz detay verin, O adrese bağlandıktan sonra tam olarak ne yapılacak? TCPConnect olmuyorsa Winhttp ile bağlantı kurabiliriz. Edited May 28, 2020 by Mehmet Quote Link to comment Share on other sites More sharing options...
zipir2020 Posted May 28, 2020 Author Share Posted May 28, 2020 wss:\/\/socket-proxy.poker.zynga.com?ip=10.196.214.227&port=9339 Please register to see this content. buradan bağlana biliyoruz aynı işlemi autoit'te yapmasını istiyorum. test ederseniz göreceksiniz. ama autoitle bağlanmak istiyorum mehmet abi. bende eski kod şöyle idi ama 1 aydır bağlanamıyorum. eski kode: $iptemp = $sipheaderx & $ao local $sotemp = TCPConnect($iptemp, 9339) FileWrite(@ScriptDir & "\tcp460.txt", $sdatarecv) If @error Then TCPCloseSocket($soaccept) TCPCloseSocket($sotemp) MSGBOX(0,$iptemp &":"& 9339, "EN = Zynga server ofline,pleas try again" & @CRLF & "---" & @CRLF & "TR= Zynga Servercalismiyor,lutfen daha sonra deneyin") Else _arrayadd($aport, $ao) _arrayadd($asocket, $soaccept) _arrayadd($asocketrespone, $sotemp) _arrayadd($asocketresponetimer, TimerInit()) _arrayadd($asockettimer, TimerInit()) _arrayadd($asocketdata, "") winhttp olarak bir örnek yoalyabilerseniz memnun olurum . şimdiden ilginiz için teşeşkür ederim. Quote Link to comment Share on other sites More sharing options...
Mehmet Posted May 28, 2020 Share Posted May 28, 2020 Amacın sadece bağlantı başarılı mesajı ise... Please register to see this content. #include <WinHttp.au3> $hSession = _WinHttpOpen() ;$hConnect = _WinHttpConnect($hSession, "socket-proxy.poker.zynga.com",9339) ;veya $hConnect = _WinHttpConnect($hSession, "10.196.214.227",9339) If @error Then MsgBox(48, "Hata", "Bağlanırken hata oluştu." & @CRLF & "Hata numarasi: " & @error) Else ConsoleWrite("$hConnect = " & $hConnect & @CRLF) MsgBox(64, "Bağlandı", "Bağlantı başarılı $hConnect = " & $hConnect) EndIf _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hSession) Quote Link to comment Share on other sites More sharing options...
zipir2020 Posted May 28, 2020 Author Share Posted May 28, 2020 gerçek bağlandının başarılı olması için şu mesajın gelmesi gerekiyor <msg t='sys'><body action='verChk' r='0'><ver v='165' /></body></msg> <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <site-control permitted-cross-domain-policies="master-only"/> <allow-access-from domain="statics.poker.static.zynga.com" /> <allow-access-from domain="*.zgncdn.com" /> <allow-access-from domain="zynga1-a.akamaihd.net" /> </cross-domain-policy> Please register to see this content. burdan wss:\/\/socket-proxy.poker.zynga.com?ip=10.196.215.1&port=9339 "buraya girerseniz nedemek istediğimi anlarsınız." yinede çok teşşekürler. cevabınız için bekliyecem sayın mehmet bey. Quote Link to comment Share on other sites More sharing options...
zipir2020 Posted May 28, 2020 Author Share Posted May 28, 2020 size önemli ve özel mesaj attım. Quote Link to comment Share on other sites More sharing options...
Mehmet Posted May 29, 2020 Share Posted May 29, 2020 websocket protocolü karmaşık bir yapıya sahip basit bir şekilde autoit ile veri alabileceğimizi sanmıyorum. Zaten autoit forumunda websocket protokolü için hiç bir örnek yok. Burada daha önce böyle bir şey için uğraşan varsa umarım sana yardımcı olurlar. Veya istersen autoit forumunda konu açarak sor,sana tavsiyem o forumda kumar,bahis,oyun gibi işlere destek vermiyorlar ve cevaplamıyorlar. autoitscript.com forumunda sorunu sormadan önce poker yazan yeri ve o ip adresini değiştirerek sor varsa benzer bir örneği bildiğiniz,gönderdiğiniz bağlantıyı onunla değiştirin. Konu açmanız için gereken yer şurası : Please register to see this content. Quote Link to comment Share on other sites More sharing options...
zipir2020 Posted May 29, 2020 Author Share Posted May 29, 2020 tamam abi çok teşşekkkür ederim. özel mesajımı okudunmu? bunu haledersek iyi olurdu Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.