RDP File Transfer
π₯οΈ RDP File Transfers β Moving Files Over Remote Desktop
RDP (Remote Desktop Protocol) is a staple in Windows environments for remote access, but guess what? It's also super handy for file transfers! Whether you're using Windows, Linux, or a mix of both, there are ways to move files in and out of RDP sessions like a pro. πΌπ€π₯
Option 1: Copy & Paste
On a Windows-to-Windows RDP session:
β Simply right-click + copy a file on your local machine
β Then paste it inside the RDP sessionβs desktop or folder
β οΈ Copy-paste may not always work between Linux and Windows β especially for large files or due to clipboard limitations.
Option 2: Mount a Local Folder on Linux RDP Clients
When using Linux as the attacker/client machine, tools like rdesktop
and xfreerdp
can mount your local directory into the RDP session, which shows up as a network share.
π§ Mounting Local Folder with rdesktop
rdesktop
π Breakdown:
-r disk:linux='...'
β shares your local folder as a virtual disk named linuxYou'll see this folder inside the RDP session as:
π§° Mounting Local Folder with xfreerdp
xfreerdp
π Breakdown:
/drive:linux,/path/to/local/folder
β maps a local Linux folder to a network drive named linuxAccessible via File Explorer in the RDP session at:
πͺ Option 3: Windows RDP Client (mstsc.exe)
Using Windows' built-in Remote Desktop tool:
π Open
mstsc.exe
π§ Click on "Show Options"
Go to the Local Resources tab
Click More... under Local Devices and Resources
β Check the drives you want to share (e.g., C:, D:, USB)
π Inside the RDP session, youβll see them under:
Last updated