Created
July 3, 2019 12:20
-
-
Save nghiahsgs/d1b270c351a45b18ef7bd2dda65a10a6 to your computer and use it in GitHub Desktop.
TOOL AUTO TẠO ACC ZINGME.VN V1.0 (NOT PASS CAPCHA)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Region ;**** Directives created by AutoIt3Wrapper_GUI **** | |
#AutoIt3Wrapper_Icon=..\winhttpcon\Icon\Icon\Diamond\Diamond Icon 11.ico | |
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** | |
#include <Misc.au3> | |
#include <MsgBoxConstants.au3> | |
#include <_HttpRequest.au3> | |
#include <GDIPlus.au3> | |
#include <ButtonConstants.au3> | |
#include <EditConstants.au3> | |
#include <GUIConstantsEx.au3> | |
#include <WindowsConstants.au3> | |
#Region ### START Koda GUI section ### Form=c:\users\conan\desktop\form1.kxf | |
Global $hGUI, $hImage, $hGraphic | |
$hGUI = GUICreate("Tool reg acc zing me by nghiahsgs", 507, 220, 351, 232) | |
$accountip = GUICtrlCreateInput("nghiahsgs", 80, 16, 200, 21) | |
$demip = GUICtrlCreateInput("100",290, 16, 50, 21) | |
$changeDefaultAcc = GUICtrlCreateButton("account", 8, 8, 57, 33) | |
;$fullnameIp = GUICtrlCreateInput("nguyenBaNghia", 80, 176, 241, 21) | |
;$Button2 = GUICtrlCreateButton("ho va ten", 8, 168, 57, 33) | |
$passIp = GUICtrlCreateInput("261997", 80, 176, 241, 21) | |
$Button3 = GUICtrlCreateButton("passWord",8, 168, 57, 33) | |
;$birthip = GUICtrlCreateInput("20/10/1997", 80, 256, 241, 21) | |
;$Button4 = GUICtrlCreateButton("dd/mm/yy", 8, 248, 57, 33) | |
;$Radio1 = GUICtrlCreateRadio("Nam", 80, 304, 113, 17) | |
;$Radio2 = GUICtrlCreateRadio("Nu", 208, 304, 113, 17) | |
$capChaIp = GUICtrlCreateInput("", 80, 136, 241, 21) | |
$Button5 = GUICtrlCreateButton("Capcha", 8, 128, 57, 33) | |
;$Button6 = GUICtrlCreateButton("Gioi Tinh", 8, 288, 57, 33) | |
$regbtn = GUICtrlCreateButton("REG ACC", 352, 16, 129, 180) | |
;$randombtn = GUICtrlCreateButton("RANDOM", 352, 184, 129, 145) | |
GUISetState(@SW_SHOW) | |
#EndRegion ### END Koda GUI section ### | |
;get capcha luc start chuong trinh | |
$apiKey = '92140c0e46c54994812403f564787c14' | |
$token = _HttpRequest(2, 'https://captcha2.zing.vn/captcha2/gettoken?publicKey=' & $apiKey & '&callback=zmCore.js805518') | |
;FileWrite(@ScriptDir&'\token.txt',$token) | |
$x = StringRegExp($token, 'token\"\:\"(.*?)\"\}\)', 1)[0] | |
;MsgBox(0,0,$x) | |
$token = $x | |
Global $token_start = $token | |
;$token='c0ca5624f7ab5787f0583e2ac83159c593b2111922d75d52c4e1afc550ee706b2a93205116696a4164cd460fe58e33b5d5c0d725e2e57e51d26bb28d0095b65eaf5e3a4b05366d81ba2f1c98bb32d89a' | |
;MsgBox(0,0,$token) | |
$urlCapCha = 'https://captcha2.zing.vn/captcha2/getcaptcha?publicKey=' & $apiKey & '&token=' & $token | |
$data = _HttpRequest(-2, $urlCapCha) | |
$hOpen = FileOpen(@ScriptDir & '\test.jpg', 2 + 16) | |
FileWrite($hOpen, $data) | |
FileClose($hOpen) | |
_GDIPlus_Startup() | |
$hImage = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\test.jpg") | |
; Draw PNG image | |
$hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI) | |
_GDIPlus_GraphicsDrawImage($hGraphic, $hImage, 70, 50) | |
; Clean up resources | |
_GDIPlus_GraphicsDispose($hGraphic) | |
_GDIPlus_ImageDispose($hImage) | |
_GDIPlus_Shutdown() | |
;het phan get capcha luc bat dau | |
Global $account_start=GUICtrlRead($accountip) | |
HotKeySet('{enter}',_test) | |
Func _test() | |
GUICtrlSetData($accountip,$account_start&GUICtrlRead($demip)) | |
;MsgBox(0,0,GUICtrlRead($Radio1)) | |
;MsgBox(0,0,GUICtrlRead($Radio2)) | |
;hamRegAcc($fullname,$account,$token,$veryfied_code,$pass,$day,$month,$year) | |
$token = $token_start | |
;$mangngaythangnam = StringSplit(GUICtrlRead($birthip), '/') | |
$day = Random(1,28,1) | |
$month = Random(1,12,1) | |
$year = Random(1990,1999,1) | |
$gender=Random(0,1,1) | |
hamRegAcc(GUICtrlRead($accountip), GUICtrlRead($accountip), $token, GUICtrlRead($capChaIp), GUICtrlRead($passIp), $day, $month, $year,$gender) | |
;SET LAI CAPCHA | |
$apiKey = '92140c0e46c54994812403f564787c14' | |
$token = _HttpRequest(2, 'https://captcha2.zing.vn/captcha2/gettoken?publicKey=' & $apiKey & '&callback=zmCore.js805518') | |
;FileWrite(@ScriptDir&'\token.txt',$token) | |
$x = StringRegExp($token, 'token\"\:\"(.*?)\"\}\)', 1)[0] | |
;MsgBox(0,0,$x) | |
$token = $x | |
$token_start = $token | |
;$token='c0ca5624f7ab5787f0583e2ac83159c593b2111922d75d52c4e1afc550ee706b2a93205116696a4164cd460fe58e33b5d5c0d725e2e57e51d26bb28d0095b65eaf5e3a4b05366d81ba2f1c98bb32d89a' | |
;MsgBox(0,0,$token) | |
$urlCapCha = 'https://captcha2.zing.vn/captcha2/getcaptcha?publicKey=' & $apiKey & '&token=' & $token | |
$data = _HttpRequest(-2, $urlCapCha) | |
$hOpen = FileOpen(@ScriptDir & '\test.jpg', 2 + 16) | |
FileWrite($hOpen, $data) | |
FileClose($hOpen) | |
_GDIPlus_Startup() | |
$hImage = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\test.jpg") | |
; Draw PNG image | |
$hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI) | |
_GDIPlus_GraphicsDrawImage($hGraphic, $hImage, 70, 50) | |
; Clean up resources | |
_GDIPlus_GraphicsDispose($hGraphic) | |
_GDIPlus_ImageDispose($hImage) | |
_GDIPlus_Shutdown() | |
;tang acc len 1 don vi | |
GUICtrlSetData($demip,GUICtrlRead($demip)+1) | |
GUICtrlSetData($accountip,$account_start&GUICtrlRead($demip)) | |
GUICtrlSetData($capChaIp,'') | |
EndFunc | |
While 1 | |
$nMsg = GUIGetMsg() | |
Switch $nMsg | |
Case $GUI_EVENT_CLOSE | |
Exit | |
case $changeDefaultAcc | |
$account_start=GUICtrlRead($accountip) | |
Case $regbtn | |
GUICtrlSetData($accountip,$account_start&GUICtrlRead($demip)) | |
;MsgBox(0,0,GUICtrlRead($Radio1)) | |
;MsgBox(0,0,GUICtrlRead($Radio2)) | |
;hamRegAcc($fullname,$account,$token,$veryfied_code,$pass,$day,$month,$year) | |
$token = $token_start | |
;$mangngaythangnam = StringSplit(GUICtrlRead($birthip), '/') | |
$day = Random(1,28,1) | |
$month = Random(1,12,1) | |
$year = Random(1990,1999,1) | |
$gender=Random(0,1,1) | |
hamRegAcc(GUICtrlRead($accountip), GUICtrlRead($accountip), $token, GUICtrlRead($capChaIp), GUICtrlRead($passIp), $day, $month, $year,$gender) | |
;SET LAI CAPCHA | |
$apiKey = '92140c0e46c54994812403f564787c14' | |
$token = _HttpRequest(2, 'https://captcha2.zing.vn/captcha2/gettoken?publicKey=' & $apiKey & '&callback=zmCore.js805518') | |
;FileWrite(@ScriptDir&'\token.txt',$token) | |
$x = StringRegExp($token, 'token\"\:\"(.*?)\"\}\)', 1)[0] | |
;MsgBox(0,0,$x) | |
$token = $x | |
$token_start = $token | |
;$token='c0ca5624f7ab5787f0583e2ac83159c593b2111922d75d52c4e1afc550ee706b2a93205116696a4164cd460fe58e33b5d5c0d725e2e57e51d26bb28d0095b65eaf5e3a4b05366d81ba2f1c98bb32d89a' | |
;MsgBox(0,0,$token) | |
$urlCapCha = 'https://captcha2.zing.vn/captcha2/getcaptcha?publicKey=' & $apiKey & '&token=' & $token | |
$data = _HttpRequest(-2, $urlCapCha) | |
$hOpen = FileOpen(@ScriptDir & '\test.jpg', 2 + 16) | |
FileWrite($hOpen, $data) | |
FileClose($hOpen) | |
_GDIPlus_Startup() | |
$hImage = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\test.jpg") | |
; Draw PNG image | |
$hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI) | |
_GDIPlus_GraphicsDrawImage($hGraphic, $hImage, 70, 50) | |
; Clean up resources | |
_GDIPlus_GraphicsDispose($hGraphic) | |
_GDIPlus_ImageDispose($hImage) | |
_GDIPlus_Shutdown() | |
;tang acc len 1 don vi | |
GUICtrlSetData($demip,GUICtrlRead($demip)+1) | |
GUICtrlSetData($accountip,$account_start&GUICtrlRead($demip)) | |
GUICtrlSetData($capChaIp,'') | |
EndSwitch | |
WEnd | |
Func hamRegAcc($fullname, $account, $token, $veryfied_code, $pass, $day, $month, $year,$gender=1) | |
;$account=$fullname | |
$data = _HttpRequest(2, 'https://id.zing.vn/') | |
$x = StringRegExp($data, '\/v2\/register\?apikey(.*?)" class', 1)[0] | |
$LinkReg = 'https://id.zing.vn/v2/register?apikey' & $x | |
$data = _HttpRequest(2, $LinkReg) | |
$apiKey = StringRegExp($data, '<input type="hidden" name="apikey" id="zapikey" value\="(.*?)"', 1)[0] | |
$next = StringRegExp($data, '<input type="hidden" name="next" value\="(.*?)"', 1)[0] | |
;MsgBox(0,0,$next) | |
$pid = StringRegExp($data, '<input type="hidden" name="pid" id="pid" value\="(.*?)"', 1)[0] | |
;MsgBox(0,0,$pid) | |
$dataReg = 'apikey=' & $apiKey & '&next=' & $next & '&pid=' & $pid & '&oauthdata=&type=regbyacc&_src=&utm_source=&utm_medium=&utm_term=&utm_content=&utm_campaign=&referer=https%25253A%25252F%25252Fid.zing.vn%25252F&fullname=' & $fullname & '&account=' & $account & '&pwd=' & $pass & '&re_pwd=' & $pass & '&dob=' & $day & '&mob=' & $month & '&yob=' & $year &'&gender='&$gender&'&token=' & $token & '&veryfied_code=' & $veryfied_code | |
$data = _HttpRequest(2, $LinkReg, $dataReg) | |
$x = StringRegExp($data, 'Thông tin đăng nhập(.*?)/h2>', 1) | |
If IsArray($x) Then | |
FileWriteLine(@ScriptDir & '\acc.txt', $account & '|' & $pass) | |
;MsgBox(0, 0, 'success') | |
Else | |
;MsgBox(0, 0, 'fail') | |
EndIf | |
_HttpRequest_ClearCookies() | |
EndFunc ;==>hamRegAcc | |
#cs | |
#include<_HttpRequest.au3> | |
for $i=1 to 100 | |
$apiKey='92140c0e46c54994812403f564787c14' | |
$token=_HttpRequest(2,'https://captcha2.zing.vn/captcha2/gettoken?publicKey='&$apiKey&'&callback=zmCore.js805518') | |
;FileWrite(@ScriptDir&'\token.txt',$token) | |
$x=StringRegExp($token,'token\"\:\"(.*?)\"\}\)',1)[0] | |
;MsgBox(0,0,$x) | |
$token=$x | |
;$token='c0ca5624f7ab5787f0583e2ac83159c593b2111922d75d52c4e1afc550ee706b2a93205116696a4164cd460fe58e33b5d5c0d725e2e57e51d26bb28d0095b65eaf5e3a4b05366d81ba2f1c98bb32d89a' | |
;MsgBox(0,0,$token) | |
$urlCapCha='https://captcha2.zing.vn/captcha2/getcaptcha?publicKey='&$apiKey&'&token='&$token | |
$data=_HttpRequest(-2,$urlCapCha) | |
$hOpen=FileOpen(@ScriptDir&'\test.jpg',2+16) | |
FileWrite($hOpen,$data) | |
FileClose($hOpen) | |
$data=_HttpRequest(2,'https://id.zing.vn/') | |
;FileWrite(@ScriptDir&'\code.html',$data) | |
;ShellExecute(@ScriptDir&'\code.html',$data) | |
;$data=FileRead(@ScriptDir&'\code.html') | |
$x=StringRegExp($data,'\/v2\/register\?apikey(.*?)" class',1)[0] | |
;MsgBox(0,0,$x) | |
$LinkReg='https://id.zing.vn/v2/register?apikey'&$x | |
;MsgBox(0,0,$LinkReg) | |
$data=_HttpRequest(2,$LinkReg) | |
;FileWrite(@ScriptDir&'\code.html',$data) | |
;ShellExecute(@ScriptDir&'\code.html',$data) | |
;$data=FileRead(@ScriptDir&'\code.html') | |
$apiKey=StringRegExp($data,'<input type="hidden" name="apikey" id="zapikey" value\="(.*?)"',1)[0] | |
;MsgBox(0,0,$apiKey) | |
$next=StringRegExp($data,'<input type="hidden" name="next" value\="(.*?)"',1)[0] | |
;MsgBox(0,0,$next) | |
$pid=StringRegExp($data,'<input type="hidden" name="pid" id="pid" value\="(.*?)"',1)[0] | |
;MsgBox(0,0,$pid) | |
$fullname='nghiahsgss'&Random(555,1000,1) | |
$account=$fullname | |
$pass='261997' | |
$day=2 | |
$month=6 | |
$year=1997 | |
;$veryfied_code=Random(100000,999999,1) | |
$veryfied_code=InputBox('','','','*') | |
;MsgBox(0,0,$veryfied_code) | |
$dataReg='apikey='&$apiKey&'&next='&$next&'&pid='&$pid&'&oauthdata=&type=regbyacc&_src=&utm_source=&utm_medium=&utm_term=&utm_content=&utm_campaign=&referer=https%25253A%25252F%25252Fid.zing.vn%25252F&fullname='&$fullname&'&account='&$account&'&pwd='&$pass&'&re_pwd='&$pass&'&dob='&$day&'&mob='&$month&'&yob='&$year&'&token='&$token&'&veryfied_code='&$veryfied_code | |
$data=_HttpRequest(2,$LinkReg,$dataReg) | |
;FileWrite(@ScriptDir&'\code.html',$data) | |
;ShellExecute(@ScriptDir&'\code.html',$data) | |
$x=StringRegExp($data,'Thông tin đăng nhập(.*?)/h2>',1) | |
if IsArray($x) then | |
FileWriteLine(@ScriptDir&'\acc.txt',$account&'|'&$pass) | |
MsgBox(0,0,'success') | |
Else | |
MsgBox(0,0,'fail') | |
EndIf | |
_HttpRequest_ClearCookies() | |
Next | |
#CE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment