This repository was archived by the owner on Mar 6, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ from package import packageInstaller
1010randomize ()
1111
1212# Windows-only
13- if os. hostOS == " windows" :
13+ when defined windows:
1414 discard execShellCmd (" title NullRAT Builder" )
1515 discard execShellCmd (" chcp 65001 & color 4" )
1616 discard execShellCmd (" mode con: cols=80 lines=29" )
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import std/terminal
22import std/ os
33import std/ osproc
44import std/ strutils
5+ import std/ envvars
56import std/ streams
67import puppy
78
@@ -46,11 +47,11 @@ proc packageInstaller*() =
4647 envPath = absolutePath (" NR_VENV" )
4748 scriptsPath = envPath / " Scripts"
4849
49- if oldPath.isSome :
50- setEnv (" PATH" , scriptsPath & PathSep & oldPath. get () )
50+ if oldPath != " " :
51+ putEnv (" PATH" , scriptsPath / oldPath)
5152 else :
52- setEnv (" PATH" , scriptsPath)
53- setEnv (" VIRTUAL_ENV" , envPath)
53+ putEnv (" PATH" , scriptsPath)
54+ putEnv (" VIRTUAL_ENV" , envPath)
5455
5556 discard execShellCmd (" pip freeze" ) # DEBUG
5657
@@ -80,7 +81,7 @@ proc packageInstaller*() =
8081 echo " [INFO] Dependencies are not installed!\n "
8182 stdout.styledWriteLine ({styleBright}, " [3] Installing/Updating dependencies..." )
8283
83- result = 0
84+ var result : int = 0
8485
8586 result = execShellCmd (" pip install " & modules)
8687 if result != 0 :
You can’t perform that action at this time.
0 commit comments