-
Notifications
You must be signed in to change notification settings - Fork 0
/
Batch Authentication.bat
37 lines (27 loc) · 1.39 KB
/
Batch Authentication.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
:: This is a simple script created for making auth in batch.
:: It's not revolutionary, or anything. I just made it for fun.
:: Replace '[PASTEBIN]' with your raw pastebin link using ctrl+h.
:: Make sure your pastebin is editable and you seperate HWID's per line.
:: Created by mp3#0253 on Discord
::---------------------------------------------------------------------------------------------------------
@echo off
:check
ping [PASTEBIN] -n 1 -w 1000 >nul
if errorlevel 1 (echo An error has occured. Please connect to internet and try again. & timeout /t 3 >nul & exit /b) else (goto :connected)
:connected
for /f %%A in ('curl -k -s [PASTEBIN]') do set "auth=%%A"
:hwidvars
for /f "tokens=2 delims==" %%A in ('wmic csproduct get uuid /format:value ^| find "="') do set uuid=%%A
for /f "tokens=2 delims==" %%A in ('wmic diskdrive get serialnumber /format:value ^| find "="') do set numb=%%A
for /f "tokens=2 delims==" %%A in ('wmic baseboard get serialnumber /format:value ^| find "="') do set board=%%A
:auth
set hwid=%board%%uuid%%numb%
if "%auth%"=="%hwid%" (goto :success) else (goto :fail)
:success
echo Authenticated.
timeout /t 4 >nul & exit /b
:fail
echo %hwid% | CLIP
echo Not Authenticated.
echo HWID copied to clipboard. & timeout /t 4 >nul & exit /b
::---------------------------------------------------------------------------------------------------------