Advertisement
lyogadi

Gunny Client

Aug 29th, 2019
1,122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.79 KB | None | 0 0
  1. #include <_HttpRequest.au3>
  2. $user = 'gunny001u'
  3. $password = 'gunny001u'
  4.  
  5. If $user = '' Or $password = '' Then Exit
  6. $sever = 'Gà Hoàng Gia'
  7.  
  8. _HttpRequest(0, 'http://idgunny.360game.vn/login-game?&sid=none&err=1')
  9. $data = _HttpRequest(1, 'https://sso3.zing.vn/xlogin', _Data2SendEncode('u=' & $user & '&p=' & $password & '&u1=http://idgunny.360game.vn/login-game?&sid=none&err=1&fp=http://idgunny.360game.vn/login-game?&sid=none&err=1&pid=243&apikey=848dfc7c1dfe4da3b8dd3c58f8d34be8'))
  10. $id = _GetLocationRedirect()
  11.  
  12. $data = _HTMLDecode(_HttpRequest(2, 'http://idgunny.360game.vn/server-game?&sid=none&err=1&mess=succ&sid=' & $id))
  13. $data = StringTrimLeft(StringLower($data), StringInStr($data, 'title="' & StringLower($server)))
  14. $data = StringRegExp($data, 'href="(.*?)">', 3)
  15. If @error Then Exit MsgBox(4096, 'Lỗi', 'Đăng nhập thất bại')
  16. ConsoleWrite($data[0])
  17.  
  18. $data = _HttpRequest(2, $data[0])
  19.  
  20. $Key = StringRegExp($data, 'key=(.*?)"', 3)
  21. If @error Then Exit MsgBox(4096, 'Lỗi', 'Đăng nhập thất bại')
  22.  
  23. $SeverID = StringRegExp($data, 'src="http:\/\/s(.*?)\.', 3)
  24. If @error Then Exit MsgBox(4096, 'Lỗi', 'Đăng nhập thất bại')
  25.  
  26. Local $oSWF = ObjCreate("ShockwaveFlash.ShockwaveFlash")
  27. If @error Or Not IsObj($oSWF) Then Exit MsgBox(4096, 'Lỗi', 'Vui lòng cài Flash ActiveX')
  28. GUICreate("Gunny Client", 1000, 600)
  29. GUICtrlCreateObj($oSWF, 0, 0, 1000, 600)
  30. GUISetState()
  31.  
  32. With $oSWF
  33.     .Movie = StringFormat('http://res%s.gn.zing.vn/flash/Loading.swf?user=%s&key=%s&isGuest=False&ua=&fbapp=false&v=&rand=&config=http://s%s.gn.zing.vn/config.xml&sessionId=%s', $SeverID[0], $user, $Key[0], $SeverID[0], $id)
  34.     .allowScriptAccess = "always"
  35.     .quality2 = 1
  36.     .menu = "false"
  37.     .bgcolor = "#000000"
  38.     .wmode = "direct"
  39. EndWith
  40.  
  41. While GUIGetMsg() <> -3
  42.     Sleep(10)
  43. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement