Advertisement
TrunghieuTH10

_drivereasy_giveaway_TrunghieuTH10

Jul 20th, 2017
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 5.33 KB | None | 0 0
  1. #cs ------------------------------------------------------------------------------------------------------
  2.  
  3. ======> Tự động Lấy Key bản quyền Driver Easy 1 Năm Miễn Phí - AutotIt3
  4.  
  5.  Author:    TrunghieuTH10 - https://facebook.com/SilentSoft.VN
  6.  
  7.     Khoảng 35 giây sẽ lấy được 1 key - có thể build rồi chạy nhiều file để get nhiều key 1 lúc
  8.  
  9.     Nếu báo "Key Not Found" là email chưa nhận được.
  10.     - Có thể lấy những key đó bằng cách check mail thủ công: http://temp-mail.org
  11.     - Khắc phục tránh bị "Key Not Found" là đặt thời gian chờ lấy email cao lên - sẽ phải đợi lâu 1 chút
  12.  
  13.     Sửa code 1 chút so với Video để mọi người dễ dàng lấy UDF ra làm tools khác
  14.     Đã dổi server email để nhận Key liên tục mà không bị dán đoạn hay hạn chế
  15.  
  16. #ce ------------------------------------------------------------------------------------------------------
  17.  
  18. AutoItSetOption("TrayAutoPause", 0)
  19. AutoItSetOption('TrayMenuMode', 1)
  20. AutoItSetOption('MustDeclareVars', 1)
  21. AutoItSetOption("TrayOnEventMode", 1)
  22.  
  23. Global $_GET_Temp_Email, $_Email_Link_Check, $_Mail_Check, $iKey, $intTime
  24. Global $oHTTP, $_iServer = "https://tempail.com/"
  25. Global $Keyfile = @ScriptDir & "\KEY_drivereasy_1YEAR.txt" ;~ Đường dẫn tệp lưu KEY
  26. Global $_So_Key_Muon_Lay = 10 ;~ Nhập số key muốn lấy
  27.  
  28. SplashTextOn("", "Đang lấy key bản quyền 1 năm cho phần mềm Driver Easy - TrunghieuTH10", 520, 18, -1, 12, 33, "Tahoma", 10, 700)
  29.  
  30. For $i = 1 To $_So_Key_Muon_Lay
  31.     $intTime = TimerInit()
  32.     $oHTTP = ObjCreate('WinHttp.WinHttpRequest.5.1')
  33.     $_GET_Temp_Email = _Winhttp_Request_obj($oHTTP, $_iServer, 'data-clipboard-text="(.*?)"')
  34.     If Not @error Then _drivereasy_giveaway_register($_GET_Temp_Email)
  35.     If Not @error Then
  36.         Sleep(30000) ;~ Thời gian chờ kiểm tra email để lấy key (đơn vị ms) mình để 3 giây
  37.         $_Email_Link_Check = _Winhttp_Request_obj($oHTTP, $_iServer, '(https://tempail.com/en/mail_.*?)"')
  38.         If Not @error Then $_Mail_Check = _Winhttp_Request_obj($oHTTP, $_Email_Link_Check, '(https://tempail.com/en/api/icerik/.*?)"')
  39.         If Not @error Then $iKey = _Winhttp_Request_obj($oHTTP, $_Mail_Check)
  40.         If Not @error Then $iKey = _drivereasy_giveaway_read_key($iKey)
  41.         If Not @error Then ConsoleWrite((FileWriteLine($Keyfile, $iKey) - 1 + $i) & ". " & $iKey & @CRLF)
  42.     EndIf
  43. Next
  44.  
  45. Func _drivereasy_giveaway_register($sEmail)
  46.     $sEmail = "prefixName=VCF&productId=26872-3&productType=DE&flag=true&email=" & $sEmail & "&confirmemail=" & $sEmail
  47.     Local $oReceived = _Winhttp_Request_obj(1, "https://www.drivereasy.com/giveaway/wonderfox/ValidCode.php", "0", "POST", $sEmail)
  48.     If StringInStr($oReceived, "Once your email address is verified") Then Return SetError(-1, 0, False)
  49.     Return True
  50. EndFunc
  51.  
  52. Func _drivereasy_giveaway_read_key($inetReceived)
  53.     Local $KEY = StringRegExp($inetReceived, "([A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5})", 3)
  54.     If @error Then Return SetError(-1, 0, "Key Not Found")
  55.     Return $KEY[0]
  56. EndFunc
  57.  
  58. Func _Winhttp_Request_obj($oHTTP, $_iServer, $regEx = "0", $oAction = "GET", $oData = "")
  59.     Local $User_Agent='Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36'
  60.     If BitOR($oHTTP = 1, $oHTTP = Default, $oHTTP = "HTTP") Then $oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
  61.     $oHTTP.Open($oAction, $_iServer, False)
  62.     $oHTTP.SetRequestHeader('User-Agent', $User_Agent)
  63.     If Not @error Then $oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded");~ Content-Type: "application/x-www-form-urlencoded,"application/json", "multipart/form-data", "website"
  64.     $oHTTP.SetRequestHeader('Referer', $_iServer)
  65.     If Not @error Then $oHTTP.Send($oData)
  66.     If Not @error Then $oHTTP.WaitForResponse
  67.     Local $oReceived = $oHTTP.ResponseText
  68.     Local $oStatusCode = $oHTTP.Status
  69.     If $oStatusCode <> 200 Then ConsoleWrite("Response code: " & $oStatusCode & @CRLF)
  70.     If $regEx <> "0" Then
  71.         $oReceived = StringRegExp($oReceived, $regEx, 3)
  72.         If @error Then Return SetError(-1, 0, 0)
  73.         ConsoleWrite($oReceived[0] & @CRLF)
  74.         Return $oReceived[0]
  75.     EndIf
  76.     Return $oReceived
  77. EndFunc
  78.  
  79.  
  80. ;~================================================================
  81. ;
  82. ;   User Defined Functions For https://temp-mail.org
  83. ;
  84. ;       By TrunghieuTH10 - trunghieuth10@gmail.com
  85. ;
  86. ;~================================================================
  87.  
  88. Func _GET_Temp_mail_org()
  89.     Local $sEmail = _Winhttp_Request_obj(1, "https://temp-mail.org/en/", 'class="mail opentip" value="(.*?)"')
  90.     If @error Then SetError(-1, 0, 0)
  91.     Return $sEmail
  92. EndFunc
  93.  
  94. Func _ChangeMail_Temp_mail_org($iEmail, $iDomain)
  95.     Local $sUrL = "https://temp-mail.org/en/option/change/"
  96.     Local $oHTTP = ObjCreate('WinHttp.WinHttpRequest.5.1')
  97.     Local $csrf = _Winhttp_Request_obj($oHTTP, $sUrL, '"csrf" value="(.*?)"')
  98.     If Not @error Then _Winhttp_Request_obj($oHTTP, $sUrL, "0", "POST", "csrf=" & $csrf & "&mail=" & $iEmail & "&domain=@" & $iDomain)
  99.     Local $_Refresh_link = _Winhttp_Request_obj($oHTTP, "https://temp-mail.org/en/option/refresh/", 'https://temp-mail.org/en/view(.*?)"')
  100.     Local $oReceived = _Winhttp_Request_obj($oHTTP, "https://temp-mail.org/en/view" & $_Refresh_link)
  101.     ConsoleWrite(StringRegExp($oReceived, 'class="mail opentip" value="(.*?)"', 3)[0] & @CRLF)
  102.     Return $oReceived
  103. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement