-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathreleaser.py
More file actions
executable file
·49 lines (34 loc) · 1.05 KB
/
releaser.py
File metadata and controls
executable file
·49 lines (34 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# /// script
# requires-python = ">=3.10"
# dependencies = []
# ///
template = """
# Weaponaized your VSCode
## What is this?
This is a simple script that will allow you to use VSCode as a weapon.
It will open a new VSCode window and will open a new file with the name of the file you given.
The `.vscode` folder will be created, and vscode will loaded settings from it.
## How to use it?
1. Download the script
2. unzip the zip file
3. run ./installer.sh to install the weapon in to your ~/.local/weapon folder
4. use function `createhack <foldername>` with the name of the file you want to open
5. vscode will Automatically open the folder
## Script Hash
```
__VERIFY_OUTPUT__
```
## Update Log
__UPDATE_LOGS__
"""
import os
import sys
def main():
verify_output = os.popen("python3 ./verify.py ./creathackenv.sh").read()
with open(sys.argv[1], "r") as f:
log = f.read()
update_logs = log
print(template.replace("__VERIFY_OUTPUT__", verify_output).replace("__UPDATE_LOGS__", update_logs))
pass
if __name__ == "__main__":
main()