Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -40,8 +40,8 @@ def generate_random_string(length=8):
|
|
40 |
|
41 |
def obfuscate_powershell_script(ps1_path):
|
42 |
try:
|
43 |
-
cmd = f'pwsh -
|
44 |
-
process = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)
|
45 |
process.stdin.write(f"{ps1_path}\n")
|
46 |
process.stdin.flush()
|
47 |
stdout, stderr = process.communicate()
|
|
|
40 |
|
41 |
def obfuscate_powershell_script(ps1_path):
|
42 |
try:
|
43 |
+
cmd = f'pwsh -f "{OBFUSCATOR_SCRIPT}"'
|
44 |
+
process = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, text=True)
|
45 |
process.stdin.write(f"{ps1_path}\n")
|
46 |
process.stdin.flush()
|
47 |
stdout, stderr = process.communicate()
|