-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRiiConnect24_DNS_Checker.bat
496 lines (460 loc) · 25.6 KB
/
RiiConnect24_DNS_Checker.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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
@echo off
setlocal enableextensions
setlocal enableDelayedExpansion
cd /d "%~dp0"
echo Starting up...
echo The program is starting...
:: ===========================================================================
:: RiiConnect24 DNS Checker
set version=1.0.2
:: AUTHORS: KcrPL
:: ***************************************************************************
:: Copyright (c) 2020-2022 KcrPL, RiiConnect24 and it's (Lead) Developers
:: ===========================================================================
set last_build=2022/07/10
set at=6:00PM CEST
title RiiConnect24 DNS Checker v%version% Created by @KcrPL
:script_start
:: ### Auto Update ###
:: 1=Enable 0=Disable
:: Update_Activate - If disabled, patcher will not even check for updates, default=1
:: offlinestorage - Only used while testing of Update function, default=0
:: FilesHostedOn - The website and path to where the files are hosted. WARNING! DON'T END WITH "/"
:: MainFolder/TempStorage - folder that is used to keep version.txt and whatsnew.txt. These two files are deleted every startup but if offlinestorage will be set 1, they won't be deleted.
set /a Update_Activate=1
set /a offlinestorage=0
set FilesHostedOn=https://patcher.rc24.xyz/update/RiiConnect24_DNS_Checker/v1
set mode=128,39
mode %mode%
set current_rc24_server=167.86.108.126
set MainFolder=%appdata%\RiiConnect24_DNS_Checker
set TempStorage=%appdata%\RiiConnect24_DNS_Checker\internet\temp
set header=RiiConnect24 DNS Checker - (C) KcrPL v%version% (Compiled on %last_build% at %at%)
if not exist "%MainFolder%" md "%MainFolder%"
if not exist "%TempStorage%" md "%TempStorage%"
goto begin_main
:download_curl
cls
echo %header%
echo -----------------------------------------------------------------------------------------------------------------------------
echo.
echo `..```` :-------------------------:
echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` Please wait...
echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd Downloading curl...
echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs :-------------------------:
echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
echo mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM:
echo `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM.
echo -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN
echo :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd
echo +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy
echo smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy.
echo hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh.
echo mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
echo `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm
echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/
echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy
echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:`
echo `. yddyo++: `-/oymNNNNNdy+:`
echo -odhhhhyddmmmmmNNmhs/:`
echo :syhdyyyyso+/-`
call powershell -command (new-object System.Net.WebClient).DownloadFile('"%FilesHostedOn%/curl.exe"', '"curl.exe"')
set /a temperrorlev=%errorlevel%
if not %temperrorlev%==0 goto begin_main_download_curl_error
goto begin_main
:begin_main_download_curl_error
cls
echo %header%
echo -----------------------------------------------------------------------------------------------------------------------------
echo.
echo `..```` :-------------------------:
echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` Attention please^^!
echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs There was an error while downloading curl.
echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+ It's a program used to download files from the Internet.
echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM: I tried downloading it automatically but something wrong happened.
echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN Without it, I won't be able to get all the tools that I need.
echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy I will now open your browser and download curl, please copy it
echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+ from the downloads folder to the folder where the
echo mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM: RiiConnect24_DNS_Checker.bat is and please run this program again.
echo `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM.
echo -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN Press any key to open the download site in your browser
echo :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd and to close this program.
echo +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy :-------------------------:
echo smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy.
echo hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh.
echo mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
echo `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm
echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/
echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy
echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:`
echo `. yddyo++: `-/oymNNNNNdy+:`
echo -odhhhhyddmmmmmNNmhs/:`
echo :syhdyyyyso+/-`
pause
start %FilesHostedOn%/curl.exe
exit
:begin_main
curl
if not %errorlevel%==2 goto download_curl
cls
echo %header%
echo -----------------------------------------------------------------------------------------------------------------------------
echo.
echo `..```` :-------------------------:
echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` Please wait...
echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd Checking for updates.
echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs :-------------------------:
echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
echo mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM:
echo `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM.
echo -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN
echo :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd
echo +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy
echo smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy.
echo hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh.
echo mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
echo `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm
echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/
echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy
echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:`
echo `. yddyo++: `-/oymNNNNNdy+:`
echo -odhhhhyddmmmmmNNmhs/:`
echo :syhdyyyyso+/-`
:: Update script.
set updateversion=0.0.0
:: Delete version.txt and whatsnew.txt
if %offlinestorage%==0 if exist "%TempStorage%\version.txt" del "%TempStorage%\version.txt" /q
if %offlinestorage%==0 if exist "%TempStorage%\whatsnew.txt" del "%TempStorage%\whatsnew.txt" /q
if not exist "%TempStorage%" md "%TempStorage%"
:: Commands to download files from server.
if %Update_Activate%==1 curl -f -L -s -S --insecure ""%FilesHostedOn%/UPDATE/whatsnew.txt"" --output "%TempStorage%\whatsnew.txt"
if %Update_Activate%==1 curl -f -L -s -S --insecure ""%FilesHostedOn%/UPDATE/version.txt"" --output "%TempStorage%\version.txt"
set /a temperrorlev=%errorlevel%
set /a updateserver=1
::Bind exit codes to errors here
if not %temperrorlev%==0 set /a updateserver=0
if exist "%TempStorage%\version.txt`" ren "%TempStorage%\version.txt`" "version.txt"
if exist "%TempStorage%\whatsnew.txt`" ren "%TempStorage%\whatsnew.txt`" "whatsnew.txt"
:: Copy the content of version.txt to variable.
if exist "%TempStorage%\version.txt" set /p updateversion=<"%TempStorage%\version.txt"
if not exist "%TempStorage%\version.txt" set /a updateavailable=0
if %Update_Activate%==1 if exist "%TempStorage%\version.txt" set /a updateavailable=1
:: If version.txt doesn't match the version variable stored in this batch file, it means that update is available.
if %updateversion%==%version% set /a updateavailable=0
::if exist "%TempStorage%\annoucement.txt" del /q "%TempStorage%\annoucement.txt"
::curl -f -L -s -S --insecure "%FilesHostedOn%/UPDATE/annoucement.txt" --output "%TempStorage%\annoucement.txt"
if %Update_Activate%==1 if %updateavailable%==1 set /a updateserver=2
if %Update_Activate%==1 if %updateavailable%==1 goto update_notice
goto begin_main2
:update_notice
cls
echo %header%
echo -----------------------------------------------------------------------------------------------------------------------------
echo.
echo `..```` :-------------------------:
echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` Attention please^^!
echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs An update is available.
echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+ It is highly recommended that you update this program.
echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM: Few things may have been fixed or changed.
echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN I'll do it automatically, how's that?
echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy 1. Update
echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+ 2. Dismiss
echo mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM: 3. What's new in this update?
echo `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM. :-------------------------:
echo -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN
echo :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd
echo +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy
echo smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy.
echo hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh.
echo mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
echo `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm
echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/
echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy
echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:`
echo `. yddyo++: `-/oymNNNNNdy+:`
echo -odhhhhyddmmmmmNNmhs/:`
echo :syhdyyyyso+/-`
set /p s=Type a number next to a command and press ENTER:
if %s%==1 goto update_files
if %s%==2 goto begin_main2
if %s%==3 goto whatsnew
goto update_notice
:whatsnew
cls
if not exist %TempStorage%\whatsnew.txt goto whatsnew_notexist
echo %header%
echo ------------------------------------------------------------------------------------------------------------------------------
echo.
echo What's new in update %updateversion%?
echo.
type "%TempStorage%\whatsnew.txt"
pause>NUL
goto update_notice
:whatsnew_notexist
cls
echo %header%
echo -----------------------------------------------------------------------------------------------------------------------------
echo.
echo Error. What's new file is not available.
echo.
echo Press any button to go back.
pause>NUL
goto update_notice
:update_files
curl -f -L -s -S --insecure "https://kcrpl.github.io/Patchers_Auto_Update/RiiConnect24Patcher/UPDATE/update_assistant.bat" --output "update_assistant.bat"
set temperrorlev=%errorlevel%
if not %temperrorlev%==0 goto error_updating
start update_assistant.bat -RC24_DNS_Checker
exit
:error_updating
cls
echo %header%
echo -----------------------------------------------------------------------------------------------------------------------------
echo.
echo `..```` :-------------------------:
echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` Attention please^^!
echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs Something did not work during updating.
echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+ Don't worry^^!
echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM. Press any button to continue.
echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN :-------------------------:
echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
echo mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM:
echo `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM.
echo -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN
echo :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd
echo +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy
echo smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy.
echo hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh.
echo mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
echo `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm
echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/
echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy
echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:`
echo `. yddyo++: `-/oymNNNNNdy+:`
echo -odhhhhyddmmmmmNNmhs/:`
echo :syhdyyyyso+/-`
pause>NUL
goto begin_main2
:begin_main2
cls
echo %header%
echo -----------------------------------------------------------------------------------------------------------------------------
echo.
echo `..```` :-------------------------:
echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` Please wait...
echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd Downloading the tools...
echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs :-------------------------:
echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
echo mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM:
echo `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM.
echo -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN
echo :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd
echo +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy
echo smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy.
echo hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh.
echo mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
echo `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm
echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/
echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy
echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:`
echo `. yddyo++: `-/oymNNNNNdy+:`
echo -odhhhhyddmmmmmNNmhs/:`
echo :syhdyyyyso+/-`
if not exist dig md dig
cd dig
if exist dig.exe if exist libbind9.dll if exist libcrypto-1_1-x64.dll if exist libdns.dll if exist libirs.dll if exist libisc.dll if exist libisccfg.dll if exist libuv.dll if exist libxml2.dll cd..&goto begin_main3
curl -f -L -s -S "%FilesHostedOn%/dig/{dig.exe,libbind9.dll,libcrypto-1_1-x64.dll,libdns.dll,libirs.dll,libisc.dll,libisccfg.dll,libuv.dll,libxml2.dll}" --remote-name-all -O
set /a temperrorlev=%errorlevel%
if not %temperrorlev%==0 goto error_download
cd..
goto begin_main3
:error_download
cls
echo %header%
echo -----------------------------------------------------------------------------------------------------------------------------
echo.
echo `..```` :-------------------------:
echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` Attention please^^!
echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd
echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs Something did not work when downloading the tools.
echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+ Please restart the program.
echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM. Error code: %temperrorlev%
echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd Press any button to exit.
echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy :-------------------------:
echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
echo mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM:
echo `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM.
echo -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN
echo :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd
echo +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy
echo smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy.
echo hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh.
echo mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
echo `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm
echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/
echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy
echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:`
echo `. yddyo++: `-/oymNNNNNdy+:`
echo -odhhhhyddmmmmmNNmhs/:`
echo :syhdyyyyso+/-`
pause>NUL
exit
:begin_main3
cls
echo %header%
echo -----------------------------------------------------------------------------------------------------------------------------
echo.
echo `..```` :-------------------------:
echo yNNNNNNNNMNNmmmmdddhhhyyyysssooo+++/:--.` Please wait...
echo hNNNNNNNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMd Testing...
echo ddmNNd:dNMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMs :-------------------------:
echo `mdmNNy dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM+
echo .mmmmNs mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM:
echo :mdmmN+`mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM.
echo /mmmmN:-mNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
echo ommmmN.:mMMMMMMMMMMMMmNMMMMMMMMMMMMMMMMMd
echo smmmmm`+mMMMMMMMMMNhMNNMNNMMMMMMMMMMMMMMy
echo hmmmmh omMMMMMMMMMmhNMMMmNNNNMMMMMMMMMMM+
echo mmmmms smMMMMMMMMMmddMMmmNmNMMMMMMMMMMMM:
echo `mmmmmo hNMMMMMMMMMmddNMMMNNMMMMMMMMMMMMM.
echo -mmmmm/ dNMMMMMMMMMNmddMMMNdhdMMMMMMMMMMN
echo :mmmmm-`mNMMMMMMMMNNmmmNMMNmmmMMMMMMMMMMd
echo +mmmmN.-mNMMMMMMMMMNmmmmMMMMMMMMMMMMMMMMy
echo smmmmm`/mMMMMMMMMMNNmmmmNMMMMNMMNMMMMMNmy.
echo hmmmmd`omMMMMMMMMMNNmmmNmMNNMmNNNNMNdhyhh.
echo mmmmmh ymMMMMMMMMMNNmmmNmNNNMNNMMMMNyyhhh`
echo `mmmmmy hmMMNMNNMMMNNmmmmmdNMMNmmMMMMhyhhy
echo -mddmmo`mNMNNNNMMMNNNmdyoo+mMMMNmNMMMNyyys
echo :mdmmmo-mNNNNNNNNNNdyo++sssyNMMMMMMMMMhs+-
echo .+mmdhhmmmNNNNNNmdysooooosssomMMMNNNMMMm
echo o/ossyhdmmNNmdyo+++oooooosssoyNMMNNNMMMM+
echo o/::::::://++//+++ooooooo+oo++mNMMmNNMMMm
echo `o//::::::::+////+++++++///:/+shNMMNmNNmMM+
echo .o////////::+++++++oo++///+syyyymMmNmmmNMMm
echo -+//////////o+ooooooosydmdddhhsosNMMmNNNmho `:/
echo .+++++++++++ssss+//oyyysso/:/shmshhs+:. `-/oydNNNy
echo `..-:/+ooss+-` +mmhdy` -/shmNNNNNdy+:`
echo `. yddyo++: `-/oymNNNNNdy+:`
echo -odhhhhyddmmmmmNNmhs/:`
echo :syhdyyyyso+/-`
set /a temperrorlev=0
call "dig\dig.exe" +noall +answer @%current_rc24_server% weather.wapp.wii.com >"%MainFolder%\DNS_Test.txt"
call findstr /c:"167.86.108.126" "%MainFolder%\DNS_Test.txt"
set /a temperrorlev=%errorlevel%
set /a main_dns=0
if %temperrorlev%==0 set /a main_dns=1
if not %temperrorlev%==0 set /a main_dns=0
goto verdict
:verdict
cls
echo %header%
echo -----------------------------------------------------------------------------------------------------------------------------
echo.
echo Testing done^^!
echo.
if "%main_dns%"=="1" (
color a
echo Everything is working^^!
echo I've used RiiConnect24 DNS and successfully resolved the query.
echo.
echo Everything on your Wii should be working correctly.
echo No further action is required.
)
if "%main_dns%"=="0" (
color c
echo Something is not working...
echo I've tried resolving an address using RiiConnect24 DNS Server but it returned either incorrect IP Address or did not return anything at all.
echo.
echo Try checking your router settings, changing the DNS Settings in your router to 1.1.1.1 or 8.8.8.8
echo If you can't or don't know how to, please contact your ISP ^(Internet Service Provider^).
)
echo.
echo -----------------------------------------------------------------------------------------------------------------------------
echo More info:
call "dig\dig.exe" @%current_rc24_server% weather.wapp.wii.com
echo -----------------------------------------------------------------------------------------------------------------------------
echo.
if exist dig rmdir dig /s /q
if exist %TempStorage% rmdir %TempStorage% /s /q
echo Press any key to exit. All temporary files has been flushed.
pause>NUL
exit