Advertisement
Guest User

Untitled

a guest
Jun 16th, 2016
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. #include <ColorConstants.au3>; Including required files
  2. #include <GUIConstantsEx.au3>
  3. #include <file.au3>
  4. #include <Array.au3>
  5. #include <string.au3>
  6.  
  7. Example()
  8. Func Example()
  9. ; Create a GUI with various controls.
  10. Local $hGUI = GUICreate("Kiwi Account Creator", 110, 110) ; Creates gui with title <
  11. Local $idOK = GUICtrlCreateButton("Launch", 30, 30)
  12. ; LABEL
  13. $Label_1 = GUICtrlCreateLabel("Waiting for Launch", 10, 10)
  14.  
  15. ; Input
  16. ; GUI MESSAGE LOOP
  17. GUISetState()
  18.  
  19. ; Display the GUI.
  20. GUISetState(@SW_SHOW, $hGUI)
  21. ; Loop until the user exits.
  22. While 1
  23.  
  24. Switch GUIGetMsg()
  25. Case $GUI_EVENT_CLOSE, $idOK
  26. $PDenc = "hash=asdasd4321&crypt=Encrypt"
  27. $oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
  28. $oHTTP.Open("POST", "http://md5decrypt.net/en/Sha1/", False) ; Post url
  29. $oHTTP.SetRequestHeader("Host", "md5decrypt.net")
  30. $oHTTP.SetRequestHeader("Connection", "keep-aliveContent-Length: 29")
  31. $oHTTP.SetRequestHeader("Cache-Control", "max-age=0")
  32. $oHTTP.SetRequestHeader("Origin", "http://md5decrypt.net")
  33. $oHTTP.SetRequestHeader("Upgrade-Insecure-Requests", "1")
  34. $oHTTP.SetRequestHeader("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36")
  35. $oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
  36. $oHTTP.SetRequestHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8")
  37. $oHTTP.SetRequestHeader("Referer", "http://md5decrypt.net/en/Sha1/")
  38. $oHTTP.SetRequestHeader("Accept-Language", "en-US,en;q=0.8")
  39. $oHTTP.Send($PDenc)
  40. $oReceived = $oHTTP.ResponseText
  41. $oStatusCode = $oHTTP.Status
  42. $read = FileRead("Received.html") ;read file
  43. $Datastring = ('Sha1(asdasd4321) = <b>')
  44. $newreadamount = _StringBetween($read,$Datastring, "</b></fieldset><br/>") ;read title from file
  45. $newreadamount[0] = StringReplace($newreadamount[0], 'Sha1(asdasd4321) = ', "") ; taking out the $ makes it easier to compare values
  46.  
  47. MsgBox(4096, "Encrypted", $newreadamount[0])
  48.  
  49.  
  50.  
  51. Local $emails = "email.txt" ;sets file path
  52. Local $pwd = "pwd.txt" ;sets file path
  53. Local $ArrayEmail[2], $ArrayPwd[2] ;declares array for email & pwd .txt
  54.  
  55. _FileReadToArray($emails, $ArrayEmail) ;converts .txt file to array
  56. _FileReadToArray($pwd, $ArrayPwd);converts .txt file to array
  57. $username = $ArrayEmail[1]
  58. ; username variable
  59. $password = $ArrayPwd[1]
  60. ; password variable
  61.  
  62. ; The POST LOGIN data to be sent
  63. ; Post data/User information
  64. ; Creating the object
  65. $oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
  66. $oHTTP.Open("GET", "https://api.9gag.com/v2/user-token/loginMethod/email/email/" & $username & "/fullName/hxyxckvoh/password/" & $password & "/hash/" & $newreadamount[0] & "/language/en_US/pushToken/APA91bG25TgLKZriowhZd86pwtNuY069YCJI-ug4lsYgM-AwxpeXgw5YbiaapW6K1_6-ew8YJmEGmgX_-Bey2N9AsUWgf_UoQb5wARUFCBdNFW3Sw1JgwWCZ6-DRElgE4k91yQHFAjF_", False) ; Post url
  67. $oHTTP.SetRequestHeader("9GAG-9GAG_TOKEN", "Y29tLm5pbmVnYWcuYW5kcm9pZC5hcHAqOGkwZGN4YXZ1")
  68. $oHTTP.SetRequestHeader("9GAG-TIMESTAMP", "1466072543070")
  69. $oHTTP.SetRequestHeader("9GAG-APP_ID", "com.ninegag.android.app")
  70. $oHTTP.SetRequestHeader("9GAG-DEVICE_UUID", "160311d0-e5cf-48e5-8530-35fe570784f5")
  71. $oHTTP.SetRequestHeader("9GAG-REQUEST-SIGNATURE", "5125514e845dfdc0faf9ed3a32e57359299ae593")
  72. $oHTTP.SetRequestHeader("9GAG-DEVICE_TYPE", "android")
  73. $oHTTP.SetRequestHeader("9GAG-BUCKET_NAME", "__DEFAULT__")
  74. $oHTTP.SetRequestHeader("User-Agent", "9GAG/2017 (samsung SM-G900F;Android 5.0)")
  75. $oHTTP.SetRequestHeader("Host", "api.9gag.com")
  76. $oHTTP.SetRequestHeader("Connection", "Keep-Alive")
  77.  
  78. ; < Header end
  79. ; Performing the Request
  80. $oHTTP.Send()
  81. $HeaderResponses = $oHTTP.GetAllResponseHeaders()
  82. ;Download the body response if any, and get the server status response code.
  83. $oReceived = $oHTTP.ResponseText
  84. $oStatusCode = $oHTTP.Status
  85. ;Sends the post data with the given details
  86. $file = FileOpen("1.txt", 2) ; The value of 2 overwrites the file if it already exists
  87. FileWrite($file, $oReceived)
  88. FileClose($file)
  89. ExitLoop
  90. EndSwitch
  91. WEnd
  92.  
  93. ; Delete the previous GUI and all controls.
  94. GUIDelete($hGUI)
  95. EndFunc ;==>Example
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement