Transfer Files

Placing files in writeable paths

The following folders are by default writable by normal users (depends on Windows version - This is from W10 1803)

SMB

On Kali, extract the tools.zip archive to a directory. Change to this directory and run either of the following to set up an SMB server:

Support for smb2

To copy files from Kali to Windows:

To copy files from Windows to Kali:

Connecting from Windows to Kali SMB

RDP

Enable RDP Powershell:

Connect using xfreerdp:

If RDP is available (or we can enable it), we can add our low privileged user to the administrators group and then spawn an administrator command prompt via the GUI:

Enable RDP and add User to:

Powershell .ps1

This is a simple powershell script to download files:

Powershell

IWR

From Windows:

Certutil

From kali:

From Windows CMD:

Bitsadmin

From Windows cmd:

SSH server

Let’s download a file to our Kali box using SCP. Start a SSH server if it is not already running

Netcat

Windows:

Kali:

The connection is received by Netcat on the Windows machine as shown below:

Socat

Alice wants to share a file with Bob:

Bob downloads the file from Alice host:

Servers

Python2

Python3

PHP

Ruby

Busybox

Last updated

Was this helpful?