root@sparrow:~/writeups$ cat xfreerdp.md
// Shells & Pivoting
xfreerdp
22 Jul 2026
· 1 min read
xfreerdp is an RDP (Remote Desktop Protocol) client for connecting to Windows remote desktops from Linux. Syntax always follows the same pattern:
xfreerdp /v:<IP> /u:<user> /p:<password> <options>.
| Type | CLI |
| Default port | 3389 |

Main options
| Flag | What it sets |
|---|---|
/v:<IP>[:port] | Target server (defaults to port 3389, no need to specify it) |
/u:<user> | Windows username |
/p:<password> | Password — empty /p: if there isn't one (typical for Administrator on HTB) |
/cert:ignore | Ignores certificate errors (always recommended on HTB) |
/dynamic-resolution | Adjusts resolution automatically when resizing |
/f | Fullscreen (toggle with Ctrl+Alt+Enter) |
+clipboard | Enables copy/paste between your machine and the remote one |
/size:WidthxHeight or /w: /h: | Manual resolution |
/admin | Connects to the "console session" (useful if sessions are already open) |
Full examples for HTB
Administrator with no password:
xfreerdp /v:10.129.1.13 /u:Administrator /p: /cert:ignore /dynamic-resolution +clipboard
With a username and password:
xfreerdp /v:10.129.40.48 /u:User1 /p:Password123 /cert:ignore +clipboard
Fullscreen:
xfreerdp /v:10.129.40.48 /u:Administrator /p: /f /cert:ignore
Specific resolution:
xfreerdp /v:10.129.40.48 /u:Administrator /p: /size:1600x900
Common errors
| Error | Cause / fix |
|---|---|
| "Invalid Sigil" | Missing : in /u or /v — use /u:Administrator, not /u Administrator |
| Certificate error | Add /cert:ignore |
| Black screen on connect | Try /gfx or /network:lan |
| Clipboard doesn't work | Add +clipboard |
Responsible use
These commands are for systems you own or have explicit written authorisation to test (labs, CTFs, contracted engagements). Using them against third-party infrastructure without permission is illegal in most countries.