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

Commit 0300d8f

Browse files
committed
Further compiler enhancements and add gitignore
1 parent 80c6190 commit 0300d8f

2 files changed

Lines changed: 19 additions & 12 deletions

File tree

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,7 @@ dmypy.json
154154
Variables.py
155155

156156
# RAT_DEBUG.py
157-
RAT_DEBUG.py
157+
RAT_DEBUG.py
158+
159+
# compiler.exe
160+
compiler.exe

compiler.nim

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ proc packageInstaller() =
7878
echo ""
7979
stdout.styledWriteLine({styleBright}, "[1] Checking for Python...")
8080
var status: int = execShellCmd("python --version")
81-
if status == 0:
81+
var status2: int = execShellCmd("py --version")
82+
if status == 0 or status2 == 0:
8283
echo "Python installed!"
8384
stdout.styledWriteLine({styleBright}, "[2] Checking if packages already installed...")
8485
var result = execCmdEx("pip freeze")
@@ -98,14 +99,13 @@ proc packageInstaller() =
9899
stdout.styledWriteLine({styleBright}, "[3] Installing dependencies...")
99100
var res = execShellCmd("pip install pyinstaller==4.10 virtualenv aiohttp disnake requests mss pyarmor")
100101
if res == 0:
101-
echo ""
102-
echo "========================"
103-
echo "All Installed! Moving to variables creation..."
102+
echo "========================"
103+
stdout.styledWriteLine({styleBright}, "All Installed! Moving to variables creation...")
104104
sleep(2000)
105105
variablesCreator()
106106

107107
else:
108-
echo "Python not installed!\nWould you like to download the recommended python installer? (Y/n): "
108+
stdout.styledWriteLine({styleBright}, "Python not installed!\nWould you like to download the recommended python installer? (Y/n): ")
109109
var input: char = getch();
110110
if input == 'N' or input == 'n':
111111
echo "NullRAT Builder cannot continue otherwise!!! Exiting..."
@@ -114,16 +114,20 @@ proc packageInstaller() =
114114
else:
115115
openDefaultBrowser("https://www.python.org/ftp/python/3.8.10/python-3.8.10.exe")
116116
echo ""
117-
echo "Your browser should start downloading the installer already."
118-
echo "Since we do not support automatic installation of python, you have to run the installer manually"
119-
echo "After running, please tick 'Install for All Users' and 'Add Python 3.8 to PATH', then install it"
120-
echo "After installing, check if everything is functional by running NullRAT builder again."
117+
stdout.styledWriteLine({styleBright}, "Your browser should start downloading the installer already.")
118+
stdout.styledWriteLine({styleBright}, "Since we do not support automatic installation of python,")
119+
stdout.styledWriteLine({styleBright}, "you have to run the installer manually.")
120+
stdout.styledWriteLine({styleBright}, "After running, please tick 'Install for All Users'")
121+
stdout.styledWriteLine({styleBright}, "and 'Add Python 3.8 to PATH', then install it")
122+
stdout.styledWriteLine({styleBright}, "After installing, check if everything is functional")
123+
stdout.styledWriteLine({styleBright}, "by running NullRAT builder again.")
121124
echo ""
122-
stdout.styledWriteLine({styleBright}, "Exiting in 30 seconds. Thank you for using NullRAT")
125+
stdout.styledWriteLine({styleBright}, "Returning to menu in 30 seconds...")
123126
sleep(30000)
124-
quit(2)
127+
return
125128

126129
proc mainMenu() =
130+
cls()
127131
printName();
128132
stdout.styledWriteLine({styleBright}, " >> NullRAT Builder v1.1 <<")
129133
echo ""

0 commit comments

Comments
 (0)