Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ButtonConstants.au3>
- #include <EditConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <StaticConstants.au3>
- #include <WindowsConstants.au3>
- #include <IE.au3>
- #Region ### START Koda GUI section ### Form=
- $Form1 = GUICreate("...", 362, 85, 371, 308)
- add()
- $wc = "..."
- $MSL = "https://bit.ly/2JLfpQ7"
- Local $oIE = _IECreateEmbedded()
- $1=GUICtrlCreateObj($oIE, 0, 0, 1, 1)
- _IENavigate ($oIE, $MSL)
- $oIE.document.body.scroll = "no"
- $oIE.document.body.style.border = "0px"
- $Input1 = GUICtrlCreateInput("", 8, 8, 305, 21)
- $Button1 = GUICtrlCreateButton("🔃", 320, 6, 33, 23)
- $Input2 = GUICtrlCreateInput("", 8, 40, 345, 21)
- $Label1 = GUICtrlCreateLabel("Waitting for Installation ID", 16, 64, 324, 25)
- GUICtrlSetFont(-1, 9, 380, 0, "Segoe UI")
- GUISetState(@SW_SHOW)
- #EndRegion ### END Koda GUI section ###
- $msg = 0
- While $msg <> $GUI_EVENT_CLOSE
- $msg = GUIGetMsg()
- Select
- Case $msg = $GUI_EVENT_PRIMARYDOWN
- $ci = GUIGetCursorInfo()
- If IsArray($ci) Then
- If $ci[4] = $Input1 Then
- $oClip = ClipGet ()
- $oNumber = StringRegExpReplace($oClip, "[^[:digit:]]", "")
- $oW_S = StringStripWS ($oNumber, 8)
- $oLen = StringLen ($oW_S)
- If $oLen > 63 Then GUICtrlSetData ($Label1, "Wrong IID!")
- If $oLen < 54 Then GUICtrlSetData ($Label1, "Wrong IID!")
- If $oLen = 62 Then GUICtrlSetData ($Label1, "Wrong IID!")
- If $oLen = 62 Then GUICtrlSetData ($Label1, "Wrong IID!")
- If $oLen = 61 Then GUICtrlSetData ($Label1, "Wrong IID!")
- If $oLen = 60 Then GUICtrlSetData ($Label1, "Wrong IID!")
- If $oLen = 59 Then GUICtrlSetData ($Label1, "Wrong IID!")
- If $oLen = 58 Then GUICtrlSetData ($Label1, "Wrong IID!")
- If $oLen = 57 Then GUICtrlSetData ($Label1, "Wrong IID!")
- If $oLen = 56 Then GUICtrlSetData ($Label1, "Wrong IID!")
- If $oLen = 55 Then GUICtrlSetData ($Label1, "Wrong IID!")
- If $oLen = 63 Then
- $tach1 = StringMid($oW_S, 1, 7)
- $tach2 = StringMid($oW_S, 8, 7)
- $tach3 = StringMid($oW_S, 15, 7)
- $tach4 = StringMid($oW_S, 22, 7)
- $tach5 = StringMid($oW_S, 29, 7)
- $tach6 = StringMid($oW_S, 36, 7)
- $tach7 = StringMid($oW_S, 43, 7)
- $tach8 = StringMid($oW_S, 50, 7)
- $tach9 = StringMid($oW_S, 57, 7)
- $result = $tach1 & $tach2 & $tach3 & $tach4 & $tach5 & $tach6 & $tach7 & $tach8 & $tach9
- GUICtrlSetData ($Input1, $result)
- GUICtrlSetData ($Label1, "Đang Chọn Loại IID")
- While StringInStr (_IEBodyReadText($oIE), "activation window of your device.") = 0
- WEnd
- _IEAction (_IEGetObjById ($oIE, "1461173234025-3129f8602eccbe259104553afa8415434b4581-02de_1461173234023-2568f8602eccbe259104553afa8415434b458-10ad"), "click")
- While StringInStr (_IEBodyReadText($oIE), "This number is displayed in the Activation Window") = 0
- WEnd
- GUICtrlSetData ($Label1, "Đang Nhập IID")
- $oQuery = _IEGetObjById($oIE, "field1")
- _IEFormElementSetValue ($oQuery, $tach1)
- $oQuery = _IEGetObjById($oIE, "field2")
- _IEFormElementSetValue ($oQuery, $tach2)
- $oQuery = _IEGetObjById($oIE, "field3")
- _IEFormElementSetValue ($oQuery, $tach3)
- $oQuery = _IEGetObjById($oIE, "field4")
- _IEFormElementSetValue ($oQuery, $tach4)
- $oQuery = _IEGetObjById($oIE, "field5")
- _IEFormElementSetValue ($oQuery, $tach5)
- $oQuery = _IEGetObjById($oIE, "field6")
- _IEFormElementSetValue ($oQuery, $tach6)
- $oQuery = _IEGetObjById($oIE, "field7")
- _IEFormElementSetValue ($oQuery, $tach7)
- $oQuery = _IEGetObjById($oIE, "field8")
- _IEFormElementSetValue ($oQuery, $tach8)
- $oQuery = _IEGetObjById($oIE, "field9")
- _IEFormElementSetValue ($oQuery, $tach9)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3148f8602eccbe259104553afa8415434b4581-02f1")
- _IEFormElementSetValue ($oQuery, $tach1)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3156f8602eccbe259104553afa8415434b4581-02f9")
- _IEFormElementSetValue ($oQuery, $tach2)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3153f8602eccbe259104553afa8415434b4581-02f6")
- _IEFormElementSetValue ($oQuery, $tach3)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3150f8602eccbe259104553afa8415434b4581-02f3")
- _IEFormElementSetValue ($oQuery, $tach4)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3158f8602eccbe259104553afa8415434b4581-02fb")
- _IEFormElementSetValue ($oQuery, $tach5)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3157f8602eccbe259104553afa8415434b4581-02fa")
- _IEFormElementSetValue ($oQuery, $tach6)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3155f8602eccbe259104553afa8415434b4581-02f8")
- _IEFormElementSetValue ($oQuery, $tach7)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3152f8602eccbe259104553afa8415434b4581-02f5")
- _IEFormElementSetValue ($oQuery, $tach8)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3151f8602eccbe259104553afa8415434b4581-02f4")
- _IEFormElementSetValue ($oQuery, $tach9)
- $oQuery = _IEGetObjById($oIE, "custom-msft-submit")
- _IEAction ($oQuery, "click")
- GUICtrlSetData ($Label1, "Đang Kiểm Tra IID")
- truonghop()
- EndIf
- If $oLen = 54 Then
- $tach1 = StringMid($oW_S, 1, 6)
- $tach2 = StringMid($oW_S, 7, 6)
- $tach3 = StringMid($oW_S, 13, 6)
- $tach4 = StringMid($oW_S, 19, 6)
- $tach5 = StringMid($oW_S, 25, 6)
- $tach6 = StringMid($oW_S, 31, 6)
- $tach7 = StringMid($oW_S, 37, 6)
- $tach8 = StringMid($oW_S, 43, 6)
- $tach9 = StringMid($oW_S, 49, 6)
- $result = $tach1 & $tach2 & $tach3 & $tach4 & $tach5 & $tach6 & $tach7 & $tach8 & $tach9
- GUICtrlSetData($Input1, $result)
- GUICtrlSetData ($Label1, "Đang Chọn Loại IID")
- While StringInStr (_IEBodyReadText($oIE), "activation window of your device.") = 0
- WEnd
- _IEAction (_IEGetObjById ($oIE, "1461173234025-3129f8602eccbe259104553afa8415434b4581-02de_1461173234023-2569f8602eccbe259104553afa8415434b458-10ae"), "click")
- While StringInStr (_IEBodyReadText($oIE), "This number is displayed in the Activation Window") = 0
- WEnd
- GUICtrlSetData ($Label1, "Đang Nhập IID")
- $oQuery = _IEGetObjById($oIE, "field1")
- _IEFormElementSetValue ($oQuery, $tach1)
- $oQuery = _IEGetObjById($oIE, "field2")
- _IEFormElementSetValue ($oQuery, $tach2)
- $oQuery = _IEGetObjById($oIE, "field3")
- _IEFormElementSetValue ($oQuery, $tach3)
- $oQuery = _IEGetObjById($oIE, "field4")
- _IEFormElementSetValue ($oQuery, $tach4)
- $oQuery = _IEGetObjById($oIE, "field5")
- _IEFormElementSetValue ($oQuery, $tach5)
- $oQuery = _IEGetObjById($oIE, "field6")
- _IEFormElementSetValue ($oQuery, $tach6)
- $oQuery = _IEGetObjById($oIE, "field7")
- _IEFormElementSetValue ($oQuery, $tach7)
- $oQuery = _IEGetObjById($oIE, "field8")
- _IEFormElementSetValue ($oQuery, $tach8)
- $oQuery = _IEGetObjById($oIE, "field9")
- _IEFormElementSetValue ($oQuery, $tach9)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3148f8602eccbe259104553afa8415434b4581-02f1")
- _IEFormElementSetValue ($oQuery, $tach1)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3156f8602eccbe259104553afa8415434b4581-02f9")
- _IEFormElementSetValue ($oQuery, $tach2)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3153f8602eccbe259104553afa8415434b4581-02f6")
- _IEFormElementSetValue ($oQuery, $tach3)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3150f8602eccbe259104553afa8415434b4581-02f3")
- _IEFormElementSetValue ($oQuery, $tach4)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3158f8602eccbe259104553afa8415434b4581-02fb")
- _IEFormElementSetValue ($oQuery, $tach5)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3157f8602eccbe259104553afa8415434b4581-02fa")
- _IEFormElementSetValue ($oQuery, $tach6)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3155f8602eccbe259104553afa8415434b4581-02f8")
- _IEFormElementSetValue ($oQuery, $tach7)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3152f8602eccbe259104553afa8415434b4581-02f5")
- _IEFormElementSetValue ($oQuery, $tach8)
- $oQuery = _IEGetObjById($oIE, "1461173234025-3151f8602eccbe259104553afa8415434b4581-02f4")
- _IEFormElementSetValue ($oQuery, $tach9)
- $oQuery = _IEGetObjById($oIE, "custom-msft-submit")
- _IEAction ($oQuery, "click")
- GUICtrlSetData ($Label1, "Đang Kiểm Tra IID")
- truonghop ()
- endif
- EndIf
- If $ci[4] = $Input2 Then
- ClipPut (gUiCtRlReAd($Input2))
- EndIf
- EndIf
- EndSelect
- Switch $msg
- Case $Button1
- GUICtrlDelete ($1)
- GUICtrlCreateObj($oIE, 0, 0, 1, 1)
- _IENavigate ($oIE, $MSL)
- GUICtrlSetData ($Input1, "")
- GUICtrlSetData ($Input2, "")
- GUICtrlSetData ($Label1, "Waitting for Installation ID")
- EndSwitch
- WEnd
- Func truonghop ()
- While 2
- If StringInStr (_IEBodyReadText($oIE), "How many computers") <> 0 Then
- GUICtrlSetData ($Label1, "Đang Trả Lời Câu Hỏi")
- $oQuery = _IEGetObjById($oIE, "numberOfInstalls")
- _IEFormElementSetValue ($oQuery, "0")
- $oQuery = _IEGetObjById($oIE, "1461173234025-3162f8602eccbe259104553afa8415434b4581-02ff")
- _IEFormElementSetValue ($oQuery, "0")
- _IEAction (_IEGetObjById ($oIE, "custom-msft-submit"), "click")
- While StringInStr (_IEBodyReadText($oIE), "you get an") = 0
- WEnd
- Sleep (1000)
- $sw = _IEBodyReadText ($oIE)
- $s2 = StringRegExpReplace($sw, "[^[:digit:]]", "")
- $stxt = StringStripWS ($s2, 8)
- $tachcid1 = StringMid($stxt, 1, 6)
- $tachcid2 = StringMid($stxt, 7, 6)
- $tachcid3 = StringMid($stxt, 13, 6)
- $tachcid4 = StringMid($stxt, 19, 6)
- $tachcid5 = StringMid($stxt, 25, 6)
- $tachcid6 = StringMid($stxt, 31, 6)
- $tachcid7 = StringMid($stxt, 37, 6)
- $tachcid8 = StringMid($stxt, 43, 6)
- $result = $tachcid1 & $tachcid2 & $tachcid3 & $tachcid4 & $tachcid5 & $tachcid6 & $tachcid7 & $tachcid8
- $result2 = $tachcid1 & "-" & $tachcid2 & "-" & $tachcid3 & "-" & $tachcid4 & "-" & $tachcid5 & "-" & $tachcid6 & "-" & $tachcid7 & "-" & $tachcid8
- GUICtrlSetData ($Input2, $result)
- GUICtrlSetData ($Label1, "Thành Công")
- ClipPut ("."&@CRLF&$result2)
- GUICtrlDelete ($1)
- GUICtrlCreateObj($oIE, 0, 0, 1, 1)
- _IENavigate ($oIE, $MSL)
- ExitLoop
- EndIf
- If StringInStr (_IEBodyReadText ($oIE), "Oh Dear") <> 0 Then
- GUICtrlSetData ($Label1, "Need To Chat/Call")
- GUICtrlSetData ($Input2, "No CID!!!")
- GUICtrlDelete ($1)
- GUICtrlCreateObj($oIE, 0, 0, 1, 1)
- _IENavigate ($oIE, $MSL)
- ExitLoop
- EndIf
- If StringInStr (_IEBodyReadText ($oIE), "reseller") <> 0 Then
- GUICtrlSetData ($Label1, "Key Blocked")
- GUICtrlSetData ($Input2, "No CID!!!")
- GUICtrlDelete ($1)
- GUICtrlCreateObj($oIE, 0, 0, 1, 1)
- _IENavigate ($oIE, $MSL)
- ExitLoop
- EndIf
- If StringInStr (_IEBodyReadText ($oIE), "Your Microsoft Product has exceeded the set number of activations") <> 0 Then
- GUICtrlSetData ($Label1, "Key Blocked")
- GUICtrlSetData ($Input2, "No CID!!!")
- GUICtrlDelete ($1)
- GUICtrlCreateObj($oIE, 0, 0, 1, 1)
- _IENavigate ($oIE, $MSL)
- ExitLoop
- EndIf
- If StringInStr (_IEBodyReadText ($oIE), "Please Check Each Group Carefully") <> 0 Then
- GUICtrlSetData ($Label1, "Wrong IID")
- GUICtrlSetData ($Input2, "No CID!!!")
- GUICtrlDelete ($1)
- GUICtrlCreateObj($oIE, 0, 0, 1, 1)
- _IENavigate ($oIE, $MSL)
- ExitLoop
- EndIf
- If StringRegExpReplace(_IEBodyReadText ($oIE), "[^[:digit:]]", "") = "" Then
- GUICtrlSetData ($Label1, "Key Blocked")
- GUICtrlSetData ($Input2, "No CID!!!")
- GUICtrlDelete ($1)
- GUICtrlCreateObj($oIE, 0, 0, 1, 1)
- _IENavigate ($oIE, $MSL)
- ExitLoop
- EndIf
- If StringInStr (_IEBodyReadText ($oIE), "Please save this number for future reference") <> 0 Then
- Sleep (1000)
- $sw = _IEBodyReadText ($oIE)
- $s2 = StringRegExpReplace($sw, "[^[:digit:]]", "")
- $stxt = StringStripWS ($s2, 8)
- $tachcid1 = StringMid($stxt, 1, 6)
- $tachcid2 = StringMid($stxt, 7, 6)
- $tachcid3 = StringMid($stxt, 13, 6)
- $tachcid4 = StringMid($stxt, 19, 6)
- $tachcid5 = StringMid($stxt, 25, 6)
- $tachcid6 = StringMid($stxt, 31, 6)
- $tachcid7 = StringMid($stxt, 37, 6)
- $tachcid8 = StringMid($stxt, 43, 6)
- $result = $tachcid1 & $tachcid2 & $tachcid3 & $tachcid4 & $tachcid5 & $tachcid6 & $tachcid7 & $tachcid8
- $result2 = $tachcid1 & "-" & $tachcid2 & "-" & $tachcid3 & "-" & $tachcid4 & "-" & $tachcid5 & "-" & $tachcid6 & "-" & $tachcid7 & "-" & $tachcid8
- GUICtrlSetData ($Input2, $result)
- ;$sw = _IEBodyReadText ($oIE)
- GUICtrlSetData ($Label1, "Thành Công")
- ClipPut ("."&@CRLF&$result2)
- GUICtrlDelete ($1)
- GUICtrlCreateObj($oIE, 0, 0, 1, 1)
- _IENavigate ($oIE, $MSL)
- ExitLoop
- EndIf
- WEnd
- EndFunc
- Func add()
- Local $hSearch = FileFindFirstFile("*.*")
- While 1
- Local $sFileName = FileFindNextFile($hSearch)
- ; If there is no more file matching the search.
- If @error Then ExitLoop
- ; Display the file name.
- RegWrite ("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", $sFileName, "REG_DWORD", "2af8")
- WEnd
- ; Close the search handle.
- FileClose($hSearch)
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement