From db9e4b45d66d634c459475b4854c7b9443b233bd Mon Sep 17 00:00:00 2001 From: Moheshwar Amarnath Biswas Date: Mon, 2 Sep 2024 01:35:05 +0600 Subject: [PATCH] adds super god mode and f key sender #218 & #219 --- .vscode/settings.json | 1 + main.py | 21 +++++++++++++++++++++ requirements.txt | 1 + web/index.html | 10 ++++++++++ 4 files changed, 33 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index dd5876e..00c2ddd 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -37,6 +37,7 @@ "restorehealth", "scannow", "tailwindcss", + "Thio", "venv", "WINDIR", "winget", diff --git a/main.py b/main.py index 7c99246..1a05d95 100644 --- a/main.py +++ b/main.py @@ -7,6 +7,9 @@ # Imports system commands import os +# import requests +import requests + # Imports eel, An Electron like GUI for Python. import eel @@ -100,6 +103,13 @@ def openApplicationsFolder(): os.system("explorer shell:AppsFolder") +@eel.expose +def superGodMode(): + os.system( + 'powershell -Command "irm https://raw.githubusercontent.com/ThioJoe/Windows-Super-God-Mode/main/Super_God_Mode.ps1 | iex"' + ) + + # Settings and Utilities @eel.expose def openFolderOptions(): @@ -167,4 +177,15 @@ def restartWinNat(): os.system("sudo net stop winnat && sudo net start winnat") +@eel.expose +def fKeySender(): + response = requests.get( + "https://api.github.com/repos/ThioJoe/F-Key-Sender/releases/latest" + ).json() + url = response["assets"][0]["browser_download_url"] + os.system( + f"powershell -Command Start-BitsTransfer -Source {url} -Destination $env:TEMP && %TEMP%\\F_Key_Sender.exe" + ) + + eel.start("index.html") diff --git a/requirements.txt b/requirements.txt index d31045d..5f7fb3f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ black==24.8.0 Eel==0.17.0 pyinstaller==6.10.0 +requests==2.32.3 gevent>=23.9.0 # not directly required, pinned by Snyk to avoid a vulnerability setuptools>=70.0.0 # not directly required, pinned by Snyk to avoid a vulnerability diff --git a/web/index.html b/web/index.html index 49fe8d1..1f57146 100644 --- a/web/index.html +++ b/web/index.html @@ -60,6 +60,11 @@

Files and Folders:

+
@@ -103,6 +108,11 @@

Repair tools:

+