root@thehacksparrow:~/writeups$ SYSTEM ONLINE
root@sparrow:~/writeups$ cat xfreerdp.md
// Shells & Pivoting

xfreerdp

22 Jul 2026 · 3 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>.

TypeCLI
Default port3389
xfreerdp cheat sheet

Main options

FlagWhat 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:ignoreIgnores certificate errors (always recommended on HTB)
/dynamic-resolutionAdjusts resolution automatically when resizing
/fFullscreen (toggle with Ctrl+Alt+Enter)
+clipboardEnables copy/paste between your machine and the remote one
/size:WidthxHeight or /w: /h:Manual resolution
/adminConnects 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

ErrorCause / fix
"Invalid Sigil"Missing : in /u or /v — use /u:Administrator, not /u Administrator
Certificate errorAdd /cert:ignore
Black screen on connectTry /gfx or /network:lan
Clipboard doesn't workAdd +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.