-
Notifications
You must be signed in to change notification settings - Fork 1
/
Office-IID-CID-Checker-Tool-Online.bat
270 lines (203 loc) · 10.9 KB
/
Office-IID-CID-Checker-Tool-Online.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
@echo off
setlocal EnableDelayedExpansion
::net file to test privileges, 1>NUL redirects output, 2>NUL redirects errors
NET FILE 1>NUL 2>NUL
if '%errorlevel%' == '0' ( goto START ) else ( goto getPrivileges )
:getPrivileges
if '%1'=='ELEV' ( goto START )
set "batchPath=%~f0"
set "batchArgs=ELEV"
::Add quotes to the batch path, if needed
set "script=%0"
set script=%script:"=%
IF '%0'=='!script!' ( GOTO PathQuotesDone )
set "batchPath=""%batchPath%"""
:PathQuotesDone
::Add quotes to the arguments, if needed.
:ArgLoop
IF '%1'=='' ( GOTO EndArgLoop ) else ( GOTO AddArg )
:AddArg
set "arg=%1"
set arg=%arg:"=%
IF '%1'=='!arg!' ( GOTO NoQuotes )
set "batchArgs=%batchArgs% "%1""
GOTO QuotesDone
:NoQuotes
set "batchArgs=%batchArgs% %1"
:QuotesDone
shift
GOTO ArgLoop
:EndArgLoop
::Create and run the vb script to elevate the batch file
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\OEgetPrivileges.vbs"
echo UAC.ShellExecute "cmd", "/c ""!batchPath! !batchArgs!""", "", "runas", 1 >> "%temp%\OEgetPrivileges.vbs"
"%temp%\OEgetPrivileges.vbs"
exit /B
:START
::Remove the elevation tag and set the correct working directory
IF '%1'=='ELEV' ( shift /1 )
cd /d %~dp0
:: .... your code start ....
@echo off
setlocal EnableDelayedExpansion
call :setESC
:: color help <<<<<<<<<<<<<<<<<<btn renk bilgileri i‡in cmd ekranna yaz
:: color [arkaplanrengi][yazrengi]
::color 1F
mode con lines=20 cols=150
::for %%a in (4,5,6) do (if exist "%ProgramFiles%\Microsoft Office\Office1%%a\ospp.vbs" (cd /d "%ProgramFiles%\Microsoft Office\Office1%%a")
::if exist "%ProgramFiles(x86)%\Microsoft Office\Office1%%a\ospp.vbs" (cd /d "%ProgramFiles(x86)%\Microsoft Office\Office1%%a")else (echo Ykl Office yazlm yoktur ya da hatal kurulmuŸtur. & goto :end_loop)) & cls
::echo %cd%
::pause
::for %%a in (4,5,6) do (if not exist "%ProgramFiles%\Microsoft Office\Office1%%a\ospp.vbs" (echo Ykl Office yazlm yoktur ya da hatal kurulmuŸtur. & goto :end_point)
::if not exist "%ProgramFiles(x86)%\Microsoft Office\Office1%%a\ospp.vbs" (echo Ykl Office yazlm yoktur ya da hatal kurulmuŸtur. & goto :end_point)) & cls
::for %%b in (4,5,6) do (if exist "%ProgramFiles%\Microsoft Office\Office1%%b\ospp.vbs" (cd /d "%ProgramFiles%\Microsoft Office\Office1%%b")
::if exist "%ProgramFiles(x86)%\Microsoft Office\Office1%%b\ospp.vbs" (cd /d "%ProgramFiles(x86)%\Microsoft Office\Office1%%b")) & cls
if exist "C:\Program Files\Microsoft Office\Office16\ospp.vbs" (cd /d "C:\Program Files\Microsoft Office\Office16" & goto :IIDstart)
if exist "C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" (cd /d "C:\Program Files (x86)\Microsoft Office\Office16" & goto :IIDstart)
if exist "C:\Program Files\Microsoft Office\Office15\ospp.vbs" (cd /d "C:\Program Files\Microsoft Office\Office15" & goto :IIDstart)
if exist "C:\Program Files (x86)\Microsoft Office\Office15\ospp.vbs" (cd /d "C:\Program Files (x86)\Microsoft Office\Office15" & goto :IIDstart)
if exist "C:\Program Files\Microsoft Office\Office14\ospp.vbs" (cd /d "C:\Program Files\Microsoft Office\Office14" & goto :IIDstart)
if exist "C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs" (cd /d "C:\Program Files (x86)\Microsoft Office\Office14" & goto :IIDstart)
echo Ykl Office yazlm yoktur ya da hatal kurulmuŸtur. & goto :cid_point
set officedir=%cd%
::echo %officedir%
:IIDstart
cscript ospp.vbs /dinstid > "%~dp0IID_office.txt"
::cscript ospp.vbs /dinstid > "%~dp0"\IID_office.txt
rem pushd "%~dp0"
cd /d %~dp0
:: IID_office.txt dosyasndaki Installation ID for: satrlarn listeleyin ve men oluŸturun
:: IID_office.txt dosyasnda "Installation" satr var m?
find "Installation" "IID_office.txt" >nul || (echo Ykl anahtar bulunamad. & goto :cid_point)
echo Ykleme Kimlikleri aŸa§da listelenmiŸtir.
echo.
set "i=0"
for /f "usebackq tokens=1* delims=: " %%a in ("IID_office.txt") do (
if "%%a"=="Installation" (
set /a i+=1
echo !i! - %%b
)
)
echo.
:: Kullancdan se‡im yapmasn isteyin
set /p "secim=Ltfen se‡im yapnz: "
:: Mendeki se‡imi IID de§iŸkenine atayn
set "i=0"
for /f "usebackq tokens=1* delims=: " %%a in ("IID_office.txt") do (
if "%%a"=="Installation" (
set /a i+=1
if "!i!"=="%secim%" set "IID=%%b"
)
)
:: IID kodunun baŸndaki metinleri siler
::set "IID=%IID:*for: =%"
::set "IID=%IID:, =%"
::set "IID=%IID:*edition: =%"
set "IID=%IID:*edition: =%"
if defined IID (
echo IID kodu: %IID%
echo IID kodu: %IID% > IID_office.txt
goto :cid_point
) else (
echo Ykl anahtar bulunamad.
goto :cid_point
)
:cid_point
::curl -L "https://getconfirmationid.com/ajax/cidms_api?iids=%IID%&username=trogiup24h&password=PHO" > CID_windows.txt
rem URL ve giriŸ bilgilerini tanmlayn
set "url=https://pidkey.com/ajax/cidms_api?iids=%IID%&username=trogiup24h&password=PHO"
::set "url=https://getconfirmationid.com/ajax/cidms_api?iids=%IID%&username=trogiup24h&password=PHO"
set "username=trogiup24h"
set "password=PHO"
::Alternatif Yollar.
::https://pidkey.com/apis
::https://pidkey.com/ajax/cidms_api?iids=%IID%&username=trogiup24h&password=PHO
::Sayfa cevab: {"short_result":"Confirmation ID (CID):\r\n033815-357101-860630-218090-894495-243386-132221-970210","result":"Successfully","typeiid":1,"is_chat_ms":0,"confirmationid":"033815-357101-860630-218090-894495-243386-132221-970210","confirmationid_chat_ms":"","have_cid":1,"ultimate_cid":null,"ultimate_have_cid":-1,"confirmation_id_with_dash":"033815-357101-860630-218090-894495-243386-132221-970210","confirmation_id_no_dash":"033815357101860630218090894495243386132221970210","error_executing":null,"had_occurred":0}
::https://khoatoantin.com/apis
::https://khoatoantin.com/ajax/cidms_api?iids=%IID%&username=trogiup24h&password=PHO
::Sayfa cevab: {"short_result":"Confirmation ID (CID):\r\n033815-357101-860630-218090-894495-243386-132221-970210","result":"Successfully","typeiid":1,"is_chat_ms":0,"confirmationid":"033815-357101-860630-218090-894495-243386-132221-970210","confirmationid_chat_ms":"","have_cid":1,"ultimate_cid":null,"ultimate_have_cid":-1,"confirmation_id_with_dash":"033815-357101-860630-218090-894495-243386-132221-970210","confirmation_id_no_dash":"033815357101860630218090894495243386132221970210","error_executing":null,"had_occurred":0}
::BUNDA FARKLI KOD KULLANILMALI ALTTAK˜ ˜žE YARAMAZ. response.json yok yani.
::https://pidkey.vip/GetCID.aspx?id=GetCID&pass=GetCID&iid=%IID%
::Sayfa Kayna§: 033815-357101-860630-218090-894495-243386-132221-970210
::https://kichhoat24h.com/apis
::https://kichhoat24h.com/user-api/get-cid?iid=%IID%&price=0.5&token=[token_id]&send_to_email=[send_to_email]&callback_url=[callback_url]
::https://kichhoat24h.com/user-api/get-cid?iid=%IID%&price=0.5&token=[token_id]
::BUNDA DA FARKLI KOD KULLANILMALI ALTTAK˜ ˜žE YARAMAZ. c_cid ksmnn alttaki kodda confirmation_id_no_dash ile de§iŸtirilmesi gerekiyor.(Belki daha fazlas.)
::https://getcid.xyz/api
::https://bs.getcid.xyz/webapi/get-cid/?autocall=1&iid=%IID%
::iid (mandatory): Your installation ID. You can send it with or without hyphens.
::autocall (optional, default 1): You can set autocall to 0 if you just want to get information without making a call.
::onlycid (optional, default 0): You can set onlycid to 1 if you want the user information not to be included.
::Valid examples:
::https://bs.getcid.xyz/webapi/get-cid/?autocall=0&iid=%IID%
::https://bs.getcid.xyz/webapi/get-cid/?onlycid=1&iid=%IID%
::https://bs.getcid.xyz/webapi/get-cid/?token=************************************************&iid=%IID%
:: {
:: "cid": "435504-697485-138242-433182-497552-083534-176493-978266",
:: "c_cid": "435504697485138242433182497552083534176493978266",
:: "user_data": {
:: "credit": 100.0,
:: "autocall_price": 0.5
:: },
:: }
rem JSON verisini indirin ve dosyaya kaydedin
curl -u "%username%:%password%" -o response.json "%url%"
for /f "tokens=5 delims=:," %%j in ('find "result" response.json') do set "CIDDurum=%%j"
set "CIDDurum=%CIDDurum:"=%"
::echo %CIDDurum%
set "CID=null"
::echo %CID%
if "%CIDDurum%" == "Successfully" (
for /f "tokens=23 delims=:," %%c in ('find "confirmation_id_no_dash" response.json') do set "CID=%%c"
) else (
echo CID kodu alnamad. Girilen Ykleme Kimli§ine ait Lisans anahtar ge‡ersiz veya hatal olabilir.
)
rem CID kodundan " iŸaretini siler
set "CID=%CID:"=%"
rem "CID" de§iŸkeni ekrana yazdrlr
echo CID kodu: %CID%
echo CID kodu: %CID% > CID_office.txt
::Onaylama ID (CID)ykler ve aktif eder.
::CID anahtarn ekle
::set /p CIDkey=CID Gir:
::set "CIDkey=%CID%"
:CIDGir
if "%CID%" == "" (
set /p CIDkey=CID Gir:
) else if /i "%CID%" == "null" (
set /p CIDkey=CID Gir:
) else (
set "CIDkey=%CID%"
)
pushd %officedir%
if exist "C:\Program Files\Microsoft Office\Office16\ospp.vbs" cd /d "C:\Program Files\Microsoft Office\Office16"
if exist "C:\Program Files (x86)\Microsoft Office\Office16\ospp.vbs" cd /d "C:\Program Files (x86)\Microsoft Office\Office16"
if exist "C:\Program Files\Microsoft Office\Office15\ospp.vbs" cd /d "C:\Program Files\Microsoft Office\Office15"
if exist "C:\Program Files (x86)\Microsoft Office\Office15\ospp.vbs" cd /d "C:\Program Files (x86)\Microsoft Office\Office15"
if exist "C:\Program Files\Microsoft Office\Office14\ospp.vbs" cd /d "C:\Program Files\Microsoft Office\Office14"
if exist "C:\Program Files (x86)\Microsoft Office\Office14\ospp.vbs" cd /d "C:\Program Files (x86)\Microsoft Office\Office14"
echo.
echo.
echo.
::set /p CIDKey=%ESC%[101;93mCID Kodunu Gir:%ESC%[0m
cscript //nologo ospp.vbs /actcid:%CID%
::Offline Activation
::KMS veya MAK anahtaryla aktivasyon ger‡ekleŸtirir.
cscript //nologo ospp.vbs /act | find /i "---LICENSED---" && (echo.&echo ************************************************* &echo.&choice /n /c HE /m "Aktivasyon baŸarl...Devam edelim mi? [E/H]" & if errorlevel 2 goto yenidendenensinmi) || (echo Aktivasyon BaŸarsz...!) &
cscript //nologo ospp.vbs /dstatus
::cscript //nologo ospp.vbs /act | find /i "product activation successful" && (echo.&echo ************************************************* &echo.&choice /n /c HE /m "Aktivasyon baŸarl...Kapatmak istiyor musunuz? (E/H)" & if errorlevel 2 exit) || (echo Aktivasyon BaŸarsz...! Yeniden baŸlanyor...) &
::cscript //nologo ospp.vbs /dstatus | find /i "---LICENSED---" && (echo.&echo ************************************************* &echo.&choice /n /c HE /m "Aktivasyon baŸarl...Kapatmak istiyor musunuz? (E/H)" & if errorlevel 2 exit) || (echo Aktivasyon BaŸarsz...! Yeniden baŸlanyor...) &
:secim-tb
set /P t=Tekrar dene/BaŸa D”n [T/B]?
if /I "%t%" EQU "T" goto :CIDGir
if /I "%t%" EQU "B" goto :devametme
goto :secim-tb
:devametme
pause
:setESC
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
set ESC=%%b
exit /B 0
)
exit /B 0