-
Notifications
You must be signed in to change notification settings - Fork 8
/
cleaner.py
33 lines (27 loc) · 853 Bytes
/
cleaner.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
import os
# Stop Services
try:
os.system('systemctl disable configer')
os.system('systemctl disable sing-box')
except Exception as e:
print(e)
# Remove files
files = ["/root/configer/user_data.pkl",
"/root/configer/sb-data.json",
"/root/configer/public_key.pkl",
"/usr/local/etc/sing-box/config.json",
"/root/configer/configer.py",
"/root/user_data.pkl",
"/root/sb-data.json",
"/root/public_key.pkl",
"/usr/local/etc/sing-box/config.json",
"/root/configer.py",
'/etc/systemd/system/configer.service',
]
for path in files:
if os.path.exists(path):
try:
os.system(f'rm {path}')
print(f'Delted {path}\n')
except Exception as e:
print(e)