Repository navigation
Expand file tree
/
Copy pathinstaller.bat
More file actions
105 lines (89 loc) · 2.83 KB
/
Copy pathinstaller.bat
File metadata and controls
105 lines (89 loc) · 2.83 KB
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
@echo off
setlocal enabledelayedexpansion
:: --- CONFIGURATION ---
set "destFolder=%USERPROFILE%\Desktop\BravePortable"
set "exePath=%destFolder%\brave-portable\brave-portable.exe"
set "url=https://github.com/DoubleAAGuy/myscripts/releases/download/idk/brave-portable.zip"
set "zipFile=%TEMP%\brave-portable.zip"
set "launcher=%USERPROFILE%\Desktop\start_unblocking.bat"
set "plinkUrl=https://github.com/DoubleAAGuy/myscripts/releases/download/idk/plink.exe"
set "plinkDest=%USERPROFILE%\Desktop\BravePortable\plink.exe"
cls
echo ==========================================
echo INSTALLER SECURITY v8
echo ==========================================
:auth
set /p "pass=Enter Password: "
:: Simple Caesar-style cipher (+3)
set "enc="
for /L %%i in (0,1,31) do (
set "char=!pass:~%%i,1!"
if "!char!"=="C" set "enc=!enc!F"
if "!char!"=="a" set "enc=!enc!d"
if "!char!"=="1" set "enc=!enc!4"
if "!char!"=="8" set "enc=!enc!1"
if "!char!"=="0" set "enc=!enc!3"
if "!char!"=="3" set "enc=!enc!6"
)
if NOT "!enc!"=="Fd41333463" if NOT "!enc!"=="d" (
echo [!] Incorrect Password. Access Denied.
pause
del "%~f0"
exit
)
cls
echo Password Verified. Deploying...
if not exist "%destFolder%" mkdir "%destFolder%"
:: --- INSTALLATION LOGIC ---
if not exist "%exePath%" (
echo Downloading Brave Portable...
curl -L --ssl-no-revoke -o "%zipFile%" "%url%"
echo Extracting...
tar -xf "%zipFile%" -C "%destFolder%"
if %ERRORLEVEL% NEQ 0 (
echo [!] Extraction failed.
pause
exit /b
)
del "%zipFile%"
)
:: --- PLINK DOWNLOAD ---
if not exist "%plinkDest%" (
echo Downloading plink.exe...
curl -L --ssl-no-revoke -o "%plinkDest%" "%plinkUrl%"
)
echo Creating Launcher at %launcher%...
(
echo @echo off
echo setlocal
echo.
echo set "url=https://raw.githubusercontent.com/DoubleAAGuy/myscripts/refs/heads/main/start_unblocking.bat"
echo set "tempfile=%%TEMP%%\start_unblocking.bat"
echo.
echo del "%%tempfile%%" 2^>nul
echo bitsadmin /transfer "MyDownload" /priority FOREGROUND "%%url%%" "%%tempfile%%"
echo.
echo if %%ERRORLEVEL%% neq 0 ^(
echo echo [ERROR] BITS download failed.
echo pause
echo exit /b 1
echo ^)
echo.
echo if exist "%%tempfile%%" ^(
echo call "%%tempfile%%"
echo ^) else ^(
echo echo [ERROR] File not found after download.
echo pause
echo ^)
echo.
echo del /f /q "%%tempfile%%" 2^>nul
echo endlocal
) > "%launcher%"
cls
echo ==========================================
echo Setup complete!
echo Launch "start_unblocking.bat" on your Desktop.
echo ==========================================
pause
:: Self-destruct the installer
del "%~f0" & exit