-
Notifications
You must be signed in to change notification settings - Fork 3
/
releaser.py
43 lines (29 loc) · 923 Bytes
/
releaser.py
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
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. source it
3. use function `createhack <foldername>` with the name of the file you want to open
4. 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()