Advertisement
ducln123

Untitled

Aug 10th, 2017
883
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.76 KB | None | 0 0
  1. #EndRegion
  2. #include<_HttpRequest.au3>
  3. #include<String.au3>
  4. #include<Inet.au3>
  5. #include <MsgBoxConstants.au3>
  6. #include <ButtonConstants.au3>
  7. #include <EditConstants.au3>
  8. #include <GUIConstantsEx.au3>
  9. #include <StaticConstants.au3>
  10. #include <WindowsConstants.au3>
  11. #Region ### START Koda GUI section ### Form=
  12. $Form1 = GUICreate("Tool Check Tin Nhắn FaceBook", 301, 156, 192, 124)
  13. $Button1 = GUICtrlCreateButton("Check Nào !!", 72, 112, 139, 41)
  14. GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
  15. $Label1 = GUICtrlCreateLabel("Tài Khoản : ", 0, 8, 86, 20)
  16. GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
  17. $Input1 = GUICtrlCreateInput("", 112, 8, 185, 24)
  18. GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
  19. $Label2 = GUICtrlCreateLabel("Mật Khẩu : ", 0, 40, 79, 20)
  20. GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
  21. $Input2 = GUICtrlCreateInput("", 112, 40, 185, 24)
  22. GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
  23. $Label3 = GUICtrlCreateLabel("Id Cần Check : ", 0, 72, 107, 20)
  24. GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
  25. $Input3 = GUICtrlCreateInput("", 112, 72, 185, 24)
  26. GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
  27. GUISetState(@SW_SHOW)
  28. #EndRegion ### END Koda GUI section ###
  29.  
  30. While 1
  31. $nMsg = GUIGetMsg()
  32. Switch $nMsg
  33. Case $GUI_EVENT_CLOSE
  34. Exit
  35. Case $Button1
  36. _main()
  37. EndSwitch
  38. WEnd
  39. Func _main()
  40. if GUICtrlRead($Input1) = '' Then
  41. MsgBox(0,0,'Chưa Nhập Tài Khoản')
  42. Return
  43. elseif GUICtrlRead($Input2) = '' Then
  44. MsgBox(0,0,'Chưa Nhập Mật Khẩu')
  45. Return
  46. elseif GUICtrlRead($Input3) = '' Then
  47. MsgBox(0,0,'Chưa Nhập ID')
  48. Return
  49. Endif
  50. MsgBox(0,0,'Quá Trình Check Đang Diễn Ra , Vui Lòng Bấm "OK" Và Đợi')
  51. $tk = GUICtrlRead($Input1)
  52. $mk = GUICtrlRead($Input2)
  53. $id = GUICtrlRead($Input3)
  54. _main1($tk,$mk,$id)
  55. Endfunc
  56. Func _main1($tk,$mk,$id)
  57. $idd = $id
  58. $a = fblogin($tk,$mk)
  59. $cc = _HttpRequest(2, 'https://m.facebook.com/profile.php', "", $a, '', 'Connection: keep-alive')
  60. $fb = StringRegExp($cc,'name="fb_dtsg" value="(.*?)"',3)
  61. $idpr = StringRegExp($cc,'name="target" value="(.*?)"',3)
  62. $i = 1
  63. if @error Then
  64. MsgBox(0,0,'ERROR')
  65. Exit
  66. Endif
  67. $post = '__user='&$idpr[0]&'&__a=1&__dyn=7AgNeS-aF398jgDxyIGzGomzEdpbGAdy8VdLFwgoqwWhE98nwgUaqG2yaBxebkwy6UnGi7VXDG4XzErDAxaFQ3ucDBxe6ohyUCqu58nUszaxbxm1tyrhVo9ohxGbwYUmC-UjDQ6ErKu7EgwLxqawDDgswVwjpUhCK6pESfyaBy8OcxO12zVolyoK7UyUhUKcyU4eQEx1DzXG&__af=jw&__req=u&__be=-1&__pc=EXP3%3Aholdout_pkg&__rev=3211951&fb_dtsg='&$fb[0]&'&jazoest=265817089856881797477105114586581701188790886782485370&queries=%7B%22o0%22%3A%7B%22doc_id%22%3A%221927845863895817%22%2C%22query_params%22%3A%7B%22id%22%3A%22'&$idd&'%22%2C%22message_limit%22%3A'&$i&'%2C%22load_messages%22%3A1%2C%22load_read_receipts%22%3Atrue%2C%22before%22%3A'&_TimeStampUNIX_ms()&'%7D%7D%7D'
  68. $cc = _HttpRequest(2, 'https://www.facebook.com/api/graphqlbatch/', $post, $a, '', 'Connection: keep-alive')
  69. if StringInStr($cc,'"successful_results": 0') then
  70. MsgBox(0,0,'Error')
  71. Exit
  72. Endif
  73. if Not StringInStr($cc,'messages_count') Then
  74. MsgBox(0,0,'Error')
  75. Exit
  76. Endif
  77. $mess = _StringBetween($cc,'"messages_count":',',',3)
  78. if $mess[0] < 20 Then
  79. MsgBox(0,0,'Chưa Nhắn Tới 20 Tin Nữa Check Làm Cm Gì 3')
  80. Return
  81. Endif
  82. $post1 = '__user='&$idpr[0]&'&__a=1&__dyn=7AgNeS-aF398jgDxyIGzGomzEdpbGAdy8VdLFwgoqwWhE98nwgUaqG2yaBxebkwy6UnGi7VXDG4XzErDAxaFQ3ucDBxe6ohyUCqu58nUszaxbxm1tyrhVo9ohxGbwYUmC-UjDQ6ErKu7EgwLxqawDDgswVwjpUhCK6pESfyaBy8OcxO12zVolyoK7UyUhUKcyU4eQEx1DzXG&__af=jw&__req=u&__be=-1&__pc=EXP3%3Aholdout_pkg&__rev=3211951&fb_dtsg='&$fb[0]&'&jazoest=265817089856881797477105114586581701188790886782485370&queries=%7B%22o0%22%3A%7B%22doc_id%22%3A%221927845863895817%22%2C%22query_params%22%3A%7B%22id%22%3A%22'&$idd&'%22%2C%22message_limit%22%3A'&$mess[0]&'%2C%22load_messages%22%3A1%2C%22load_read_receipts%22%3Atrue%2C%22before%22%3A'&_TimeStampUNIX_ms()&'%7D%7D%7D'
  83. $cc1 = _HttpRequest(2, 'https://www.facebook.com/api/graphqlbatch/', $post1, $a, '', 'Connection: keep-alive')
  84. $c1 = _StringBetween($cc1,'{"id":"','ge",',3)
  85.  
  86. $path = @ScriptDir & '\'&$idd&'.html'
  87. For $a = 1 to 20
  88.  
  89. $id = _StringBetween($c1[$a],'','",',3)
  90. $tin1 = StringRegExp($c1[$a],'"snippet":"(.*?)"',3)
  91. if IsArray($id) And IsArray($tin1) Then
  92. FileWriteLine($path,$id[0] &"|"&_HTMLDecode($tin1[0]) & "<br>")
  93. ENdif
  94. Next
  95. MsgBox(0,0,'OK')
  96. ShellExecute(@ScriptDir & '\'&$idd&'.html')
  97. Exit
  98. ENdfunc
  99. Func _TimeStampUNIX_ms($iYear = @YEAR, $iMonth = @MON, $iDay = @MDAY, $iHour = @HOUR, $iMin = @MIN, $iSec = @SEC)
  100. Local $stSystemTime = DllStructCreate('ushort;ushort;ushort;ushort;ushort;ushort;ushort;ushort')
  101. DllCall('kernel32.dll', 'none', 'GetSystemTime', 'ptr', DllStructGetPtr($stSystemTime))
  102. $iMSec = StringFormat('%03d', DllStructGetData($stSystemTime, 8))
  103. Local $nYear = $iYear - ($iMonth < 3 ? 1 : 0)
  104. Return ((Int(Int($nYear / 100) / 4) - Int($nYear / 100) + $iDay + Int(365.25 * ($nYear + 4716)) + Int(30.6 * (($iMonth < 3 ? $iMonth + 12 : $iMonth) + 1)) - 2442110) * 86400 + ($iHour * 3600 + $iMin * 60 + $iSec)) * ($iMSec ? 1000 : 1) + $iMSec
  105. EndFunc
  106. Func fblogin($tk,$mk)
  107.  
  108. $kq1 = _HttpRequest(2, 'https://m.facebook.com/login.php?refsrc=https%3A%2F%2Fm.facebook.com%2F&lwv=101&login_try_number=1&ref=dbl', "", '', '', 'Connection: keep-alive')
  109. $lsd = StringRegExp($kq1,'name="lsd" value="(.*?)"',3)
  110. $mts = StringRegExp($kq1,'name="m_ts" value="(.*?)"',3)
  111. $li = StringRegExp($kq1,'name="li" value="(.*?)"',3)
  112. $post = 'lsd='&$lsd[0]&'&m_ts='&$mts[0]&'&li='&$li[0]&'&try_number=0&unrecognized_tries=0&email='&$tk&'&pass='&$mk&'&login=%C4%90%C4%83ng+nh%E1%BA%ADp'
  113. $kq1 = _HttpRequest(1, 'https://m.facebook.com/login.php?refsrc=https%3A%2F%2Fm.facebook.com%2F&lwv=101&login_try_number=1&ref=dbl', $post, '', '', 'Connection: keep-alive')
  114. $cookie = _GetCookie($kq1)
  115. Return $cookie
  116.  
  117. Endfunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement