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 10.10.10.132 -d HTB -u administrator -p 'Password0@' -r disk:linux='/home/user/rdesktop/files'

πŸ“Œ Breakdown:

  • -r disk:linux='...' β†’ shares your local folder as a virtual disk named linux

  • You'll see this folder inside the RDP session as:

    \\tsclient\linux

🧰 Mounting Local Folder with xfreerdp

πŸ“Œ Breakdown:

  • /drive:linux,/path/to/local/folder β†’ maps a local Linux folder to a network drive named linux

  • Accessible via File Explorer in the RDP session at:


πŸͺŸ Option 3: Windows RDP Client (mstsc.exe)

Using Windows' built-in Remote Desktop tool:

  1. πŸ”Ž Open mstsc.exe

  2. πŸ”§ Click on "Show Options"

  3. Go to the Local Resources tab

  4. Click More... under Local Devices and Resources

  5. βœ… Check the drives you want to share (e.g., C:, D:, USB)

πŸ“‚ Inside the RDP session, you’ll see them under:

Last updated