File Transfers
Download Operations
Terminal String Copy & Paste
Linux Encode Base64
cat id_rsa |base64 -w 0;echo
Windows Decode & Write Base64

Web Downloads with Wget & cURL
Download a File Using wget

Fileless Download with wget

Download a File Using cURL

Fileless Download with cURL

Download with Bash (/dev/tcp)
Connect to the Target Webserver

HTTP GET Request

Print the Response

PowerShell Web Downloads
DownloadFile Method

DownloadString - Fileless Method

Invoke-WebRequest

iwr, curl, and wget instead of the Invoke-WebRequest full nameCommon Errors with PowerShell



SMB Downloads
Create the SMB Server

Copy a File from the SMB Server


Create the SMB Server with Username & Password

Mount the SMB Server with Username and Password

copy filename \\IP\sharename.FTP Downloads
Installing the FTP Server Python3 Module - pyftpdlib

Setting up a Python3 FTP Server

Transfering Files from an FTP Server Using PowerShell

Command File for FTP Client To Download File

Upload Operations
Terminal String Copy & Paste
Windows Encode & Write Base64

Linux Decode Base64

Web Uploads with cURL

PowerShell Web Uploads
Installing a Configured WebServer with Upload

PowerShell Script to Upload a File to Python Upload Server

PowerShell Base64 Web Upload


SMB Uploads

WebDav. When you use SMB, it will first attempt to connect using the SMB protocol, and if there's no SMB share available, it will try to connect using HTTPInstalling WebDav Python modules

Using the WebDav Python module

Connecting to the Webdav Share

Uploading Files using SMB

FTP Uploads

--write to allow clients to upload files to our attack hostPowerShell Upload File

Command File for FTP Client to Upload File

Mounting a Linux Folder With RDP
Mounting Using rdesktop

Mounting Using xfreerdp

Evading Detection
Listing out User Agents

Request with Chrome User Agent

Transferring File with GfxDownloadWrapper.exe

Last updated