Advertisement
Kissss

Untitled

Oct 26th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.35 KB | None | 0 0
  1. #include <ButtonConstants.au3>
  2. #include <EditConstants.au3>
  3. #include <GUIConstantsEx.au3>
  4. #include <ListViewConstants.au3>
  5. #include <StaticConstants.au3>
  6. #include <WindowsConstants.au3>
  7. #include <_HttpRequest.au3>
  8. #include <GuiListView.au3>
  9. #include <md5.au3>
  10. #EndRegion
  11. Main()
  12. Func Main()
  13. $x = 0
  14. #Region ### START Koda GUI section ### Form=
  15. #include <ButtonConstants.au3>
  16. #include <EditConstants.au3>
  17. #include <GUIConstantsEx.au3>
  18. #include <ListViewConstants.au3>
  19. #include <StaticConstants.au3>
  20. #include <WindowsConstants.au3>
  21. #Region ### START Koda GUI section ### Form=C:\Users\gamin\Desktop\Form1.kxf
  22. $Form1 = GUICreate("FB Tool by CoderDuc", 524, 297, 204, 133)
  23. $ListView1 = GUICtrlCreateListView("STT |ID Người nhận |Email người nhận | Trạng Thái", 8, 64, 506, 182)
  24. $input1 = GUICtrlCreateInput("", 96, 8, 169, 21)
  25. $input2 = GUICtrlCreateInput("", 96, 32, 169, 21,$ES_PASSWORD)
  26. $Label1 = GUICtrlCreateLabel("Username: ", 8, 8, 84, 22)
  27. GUICtrlSetFont(-1, 11, 800, 0, "Arial")
  28. GUICtrlSetColor(-1, 0xFF0000)
  29. $Label2 = GUICtrlCreateLabel("Password: ", 8, 32, 81, 22)
  30. GUICtrlSetFont(-1, 11, 800, 0, "Arial")
  31. GUICtrlSetColor(-1, 0xFF0000)
  32. $Button1 = GUICtrlCreateButton("AUTO", 280, 8, 83, 49)
  33. GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
  34. $Button3 = GUICtrlCreateButton("DELETE", 24, 264, 75, 25)
  35. $Button4 = GUICtrlCreateButton("EDIT", 120, 264, 75, 25)
  36. $IPUT = GUICtrlCreateInput("", 440, 256, 57, 21)
  37. $Label3 = GUICtrlCreateLabel("TIMES: ", 376, 256, 58, 20)
  38. GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
  39. $Label4 = GUICtrlCreateLabel("FB Tool", 424, 32, 65, 20)
  40. GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
  41. $Label5 = GUICtrlCreateLabel("Welcome: ", 384, 8, 77, 20)
  42. GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
  43. GUISetState(@SW_SHOW)
  44. #EndRegion ### END Koda GUI section ###
  45.  
  46. While 1
  47. $nMsg = GUIGetMsg()
  48. Switch $nMsg
  49. Case $GUI_EVENT_CLOSE
  50. Exit
  51. Case $Button4
  52. $usertoken = GetTokenFull($input1,$input2)
  53. $input = InputBox("EDIT","Enter ID here: ")
  54. if not $input Then
  55. MsgBox(16,"IBFB Tool","Không dữ liệu nào được nhập vào!")
  56. Else
  57. $requestid = _HttpRequest(2,"https://graph.facebook.com/"&$input&"?fields=id,name&access_token=" & $usertoken)
  58. $requestemail = _HttpRequest(2,"https://graph.facebook.com/"&$input&"?fields=email&access_token=" & $usertoken)
  59. If not StringInStr($requestemail,"email") Then
  60. MsgBox(64,"IBFB Tool","ID người nhận không có email")
  61. $getid = StringRegExp($requestid, '\"id\"\:\s\"(.*?)\"', 3)
  62. $x = $x + 1
  63. GUICtrlCreateListViewItem($x&"|"&$getid[0]&"|"&"NULL"&"|",$ListView1)
  64. Else
  65. $getid = StringRegExp($requestid, '\"id\"\:\s\"(.*?)\"', 3)
  66. $getemail = StringRegExp($requestemail, '\s\s\s\"email\"\:\s"(.*?)",',3)
  67. $email = _HTMLDecode($getemail[0])
  68. $x = $x + 1
  69. GUICtrlCreateListViewItem($x&"|"&$getid[0]&"|"&$email&"|",$ListView1)
  70. Endif
  71. EndIf
  72. Case $Button3
  73. $DeleteItems = _GUICtrlListView_DeleteItemsSelected($ListView1)
  74. $x = $x - 1
  75. Case $Button1
  76. if GUICtrlRead($input1) = '' And GUICtrlRead($input2) = '' Then
  77. MsgBox(16,"IBFB Tool","Vui lòng nhập tài khoản và mật khẩu!")
  78. Else
  79. $count = _GUICtrlListView_GetItemCount($ListView1)
  80. For $value = 0 to $count - 1
  81. _GUICtrlListView_AddSubItem($ListView1,$value,"Đang tiến hành",3)
  82. Next
  83. $username = GUICtrlRead($input1)
  84. $password = GUICtrlRead($input2)
  85. $request = _HttpRequest(1,"https://www.facebook.com/")
  86. $cookie = _GetCookie($request)
  87. $dataLogin = "lsd=AVqYPu_3&email="&$username&"&pass="&$password&"&login=1"
  88. $header = _HttpRequest(2,'https://www.facebook.com/login/',$dataLogin,$cookie)
  89. $GetToken =_HttpRequest(2,'https://www.facebook.com/profile.php')
  90. $token = GetTokenFull($username,$password)
  91. _HttpRequest(2,"","",$cookie)
  92. $SL = GUICtrlRead($IPUT)
  93. if GUICtrlRead($IPUT) = False Then
  94. MsgBox(16,"IBFB Tool","Bạn chưa nhập số lần cần spam!")
  95. Else
  96. $txt = InputBox("IBFB Tool","Nhập tin nhắn cần spam: ")
  97. if not $txt Then
  98. MsgBox(16,"IBFB Tool","Bạn chưa nhập tin nhắn cần spam!")
  99. EndIf
  100.  
  101. EndIf
  102. For $x = 0 To $count - 1
  103. $ID = _GUICtrlListView_GetItemText($ListView1,$x,1)
  104. For $ops = 0 To $SL - 1
  105. Sleep(250)
  106. $Auto = _HttpRequest(2,"","")
  107. Next
  108. Next
  109. EndIf
  110. EndSwitch
  111. WEnd
  112. EndFunc
  113. Func GetTokenFull($user,$pass)
  114.  
  115. $api_key="882a8490361da98702bf97a021ddc14d"
  116. $email=$user
  117. $format="JSON"
  118. $locale="vi_vn"
  119. $method="auth.login"
  120. $password=$pass
  121. $return_ssl_resources=0
  122. $v="1.0"
  123.  
  124. $sig="api_key=882a8490361da98702bf97a021ddc14demail="&$user&"format=JSONlocale=vi_vnmethod=auth.loginpassword="&$pass&"return_ssl_resources=0v=1.062f8ce9f74b12f84c123cc23437a4a32"
  125.  
  126. $sig=_Md5Encode($sig)
  127. ;MsgBox(0,0,$sig)
  128.  
  129. $data2Post='api_key='&$api_key&'&email='&$email&'&format='&$format&'&locale='&$locale&'&method='&$method&'&password='&$password&'&return_ssl_resources='&$return_ssl_resources&'&v='&$v&'&sig='&$sig
  130. ;MsgBox(0,0,$data2Post)
  131.  
  132. $data=_HttpRequest(2,'https://api.facebook.com/restserver.php',$data2Post)
  133. ;MsgBox(0,0,$data)
  134. ;FileWrite(@ScriptDir&'\data.txt',$data)
  135.  
  136.  
  137.  
  138. ;$data=FileRead(@ScriptDir&'\data.txt')
  139. $x=StringRegExp($data,'"access_token":"(.*?)"',1)
  140. if IsArray($x) Then
  141. ;ClipPut($x[0])
  142. ;MsgBox(0,0,$x[0])
  143. Return $x[0]
  144. Else
  145. ;MsgBox(0,0,'Loi')
  146. Return "error"
  147. EndIf
  148.  
  149. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement