Skip to content

Commit

Permalink
adds super god mode and f key sender #218 & #219
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentmoheshwar committed Sep 1, 2024
1 parent f32b110 commit db9e4b4
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"restorehealth",
"scannow",
"tailwindcss",
"Thio",
"venv",
"WINDIR",
"winget",
Expand Down
21 changes: 21 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# Imports system commands
import os

# import requests
import requests

# Imports eel, An Electron like GUI for Python.
import eel

Expand Down Expand Up @@ -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():
Expand Down Expand Up @@ -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")
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ <h2>Files and Folders:</h2>
<button onclick="eel.openApplicationsFolder();">
Open Applications Folder
</button>
<button
onclick="if(confirm('This tool is provided by ThioJoe, and requires internet connection to work By continuing you agree to GPL 3.0 License.')) { eel.superGodMode() }"
>
Create Super God Mode Folder
</button>
</section>

<section>
Expand Down Expand Up @@ -103,6 +108,11 @@ <h2>Repair tools:</h2>
<button onclick="eel.restartWinNat()">
Restart Windows NAT Service
</button>
<button
onclick="if(confirm('This tool is provided by ThioJoe, and requires internet connection to work! By continuing you agree to GPL 3.0 License.')) { eel.fKeySender() }"
>
Open F Key Sender
</button>
</section>
</div>
</body>
Expand Down

0 comments on commit db9e4b4

Please sign in to comment.