Advertisement
Guest User

Untitled

a guest
Jun 14th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. #include<_HttpRequest.au3>
  2. #include <ButtonConstants.au3>
  3. #include <EditConstants.au3>
  4. #include <GUIConstantsEx.au3>
  5. #include <StaticConstants.au3>
  6. #include <WindowsConstants.au3>
  7. #Region ### START Koda GUI section ### Form=
  8. $Form1 = GUICreate("Reg Bsai Coin", 354, 203)
  9. $Input1 = GUICtrlCreateInput("57109", 46, 24, 265, 40)
  10. GUICtrlSetFont(-1, 20, 400, 0, "MS Sans Serif")
  11. $Button1 = GUICtrlCreateButton("Alice", 48, 80, 265, 41)
  12. $Label1 = GUICtrlCreateLabel("Success:", 24, 140, 70, 17)
  13. $Label2 = GUICtrlCreateLabel("Fail:", 189, 140, 70, 17)
  14. $Label3 = GUICtrlCreateLabel("", 24, 170, 200, 17)
  15. GUISetState(@SW_SHOW)
  16. #EndRegion ### END Koda GUI section ###
  17.  
  18. While 1
  19. $nMsg = GUIGetMsg()
  20. Switch $nMsg
  21. Case $GUI_EVENT_CLOSE
  22. Exit
  23. Case $Button1
  24. Alice()
  25. EndSwitch
  26. WEnd
  27.  
  28. Func Alice()
  29. $Sucess = 0
  30. $Fail = 0
  31. While 1
  32. If RegBsaiCoin('57109') = True Then
  33. $Sucess = $Sucess+1
  34. GUICtrlSetData($Label1,"Success: "&$Sucess)
  35. Else
  36. $Fail = $Fail+1
  37. GUICtrlSetData($Label2,"Fail: "&$Fail)
  38. EndIf
  39. WEnd
  40. EndFunc
  41.  
  42. Func RegBsaiCoin($RefCode)
  43. $Mail = GetMail()
  44. If $Mail = False then $check = False
  45. _HttpRequest(2,'https://bsai.io/?t='&$RefCode)
  46. _HttpRequest(2,'https://bsai.io/wp-content/themes/Bsai_2.6/module/get_code.php','reg_mail_code='&$Mail)
  47. $VeriCode = GetCode()
  48. If $VeriCode <> False Then
  49. $check = True
  50. ConsoleWrite("Sucess: "&$Mail&@LF)
  51. FileWriteLine(@ScriptDir&"\Account.txt",$Mail)
  52. Else
  53. $check = False
  54. EndIf
  55. $Username = StringSplit($Mail,"@")[1]
  56. $dataPost='reg_mail_username='&$Username&'&reg_mail_email='&$Mail&'&reg_mail_password=271198&reg_mail_code='&$VeriCode
  57. _HttpRequest(2,'https://bsai.io/wp-content/themes/Bsai_2.6/module/reg.php',$dataPost)
  58. _HttpRequest(2,'https://bsai.io/?t='&$RefCode)
  59. Return $check
  60. EndFunc
  61.  
  62.  
  63. Func GetMail()
  64. $GetNewMail = _HttpRequest(2, 'https://10minutemail.net/address.api.php?new=1')
  65. $GetNewMail = StringRegExp($GetNewMail,'mail_get_mail":"(.*?)","mail_get_host',3)
  66. If Not IsArray($GetNewMail) Then
  67. ConsoleWrite("Get Mail Fail!!!: "&@LF)
  68. Return False
  69. EndIf
  70. $NewMail = $GetNewMail[0]
  71. Return $NewMail
  72. EndFunc
  73.  
  74.  
  75. Func GetCode()
  76. $A = 0
  77. While 1
  78. Time_delay('10')
  79. $A = $A+1
  80. If $A > 10 Then ExitLoop
  81. $GetMail = _HttpRequest(2, 'https://10minutemail.net/address.api.php')
  82. $GetMail_ = StringRegExp($GetMail,'mail_id":"(.*?)","from"',3)
  83. If Not IsArray($GetMail_) Then ContinueLoop
  84. $Mail_Code = $GetMail_[0]
  85. $ReadMail = _HttpRequest(2, 'https://10minutemail.net/readmail.html?mid='&$Mail_Code)
  86. $ReadMail = StringRegExp($ReadMail,'Code is: (.*?) ',3)
  87. If Not IsArray($ReadMail) Then ContinueLoop
  88. $Code = $ReadMail[0]
  89. ConsoleWrite("Code: "&$Code&@LF)
  90. Return $Code
  91. WEnd
  92. ConsoleWrite("Get Code Fail!!!: "&@LF)
  93. Return False
  94. EndFunc
  95.  
  96. Func Time_delay($time)
  97. For $i = 0 to $time *10
  98. $a= $time *10 - $i
  99. GUICtrlSetData($Label3,'Time delay: Đợi nhận mã '&$a/10&' giây.')
  100. sleep(100)
  101. Next
  102. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement