Member-only story

File Transfer to Kali via RDP

Jose Campo
2 min readFeb 5, 2025

--

If you gain access via RDP, transferring files is a breeze using the copy command or simply dragging and dropping in File Explorer. The key trick is adding a flag that maps a local folder from Kali to the Windows system. Once connected, this mapped drive appears inside Windows, making file transfers seamless. Let me show you how!

There are two common commands we can use to RDP from Kali Linux: xfreerdp and rdesktop. I prefer the 1st one but this method works with both:

First, let’s use xfreerdp, which supports drive redirection. This will allow us to map a local folder from Kali and access it inside the Windows session.

xfreerdp /cert-ignore /compression /auto-reconnect /u:chepe /p:Password123 /v:192.168.212.250 /w:1600 /h:800 /drive:share,/home/kali/Documents/shared-folder

What’s happening here?

  • We connect to 192.168.212.250 using the credentials chepe:Password123.
  • The /drive:share,/home/kali/Documents/shared-folder part mounts the "shared-folder" directory from Kali as a virtual drive named "kali" inside the Windows session.

Once you’re in, the drive will be available inside Windows under This PC → kali or via the SMB path \kali.

To copy a file from Windows to Kali, use PowerShell:

--

--

Jose Campo
Jose Campo

Responses (1)