Summery
Because of a growing list of possible ways to access another host, I decided to create this note to most known ways to achieve RCE and what requirements have to be usually met.
Cheatsheet
| Tools | Required Privileges | Methods | OS | Resources |
|---|---|---|---|---|
| ssh | Credentials | SSH | Linux / Windows | SSH, ssh |
| ateexec.py | Administrator | SMB + ATSVC / Task Scheduler RPC | Linux | ateexec.py |
| smbexec.py | Administrator | SMB + Service Control Manager (SCMR) | Linux | smbexec.py |
| psexec.py | Administrator | SMB + Service Control Manager + uploaded service binary | Linux | psexec.py |
| PsExec.exe | Administrator | SMB + Service Control Manager | Windows | SysInternals |
| wmiexec.py | Administrator | SMB + RPC/DCOM + WMI | Linux | wmiexec.py |
| evil-winrm | Credentials | WinRM / WS-Management | Linux | evil-winrm |
| Enter-PSSession | Credentials | WinRM / WS-Management + PowerShell Remoting | Windows | Enter-PSSession |
| xfreerdp | Credentials | RDP | Linux | File transfer, xfreerdp |
| rdesktop | Credentials | RDP | Linux | File transfer, rdesktop |
| mssqlclient.py | Credentials | TDS / MSSQL | Linux | Impacket, impacket-mssqlclient |
| xp_cmdshell | SQL specific | MSSQL | Linux / Windows | MSSQL |
| dcomexec.py | Credentials | SMB/RPC + DCOM | Linux | dcomexec.py |
| reverse shells | Execution | Outbound TCP/HTTP/etc. connection | Linux / Windows | Shells |
| web shells | Execution | HTTP/HTTPS + correct server-side interpreter | Linux / Windows | Shells |
| Mentioned permissions are a mental shortcut, to learn about the exect, required privileges, refer to the corresponding notes. |