📤 File Transfer Flow 📥
Hosting Servers (Attack Machine)
Pro Tip
Run servers in the directory containing your tools. For Windows targets, SMB is often more reliable than HTTP as it doesn't require PowerShell.
Linux Downloads
Linux Uploads (Exfil from Target)
Linux Alternative Methods
Note
/dev/tcp is a Bash-specific feature. It won't work in sh, dash, or other shells. Check with echo $0 first.
Windows Downloads
Pro Tip
If PowerShell is blocked, try certutil or bitsadmin. Windows 10+ also includes curl.exe and tar.exe natively.
Windows SMB Transfers
Pro Tip
Running executables directly from SMB shares leaves fewer forensic artifacts since files never touch disk!
Windows FTP Transfers
Encoding Methods (Terminal Copy/Paste)
When network transfers fail, encode files as text and copy through the terminal.
Warning
Large files create huge base64 strings. This method works best for small files (< 100KB) or when no other option exists.
Exfiltration Techniques
LOLBins (Living Off The Land)
Legitimate Windows binaries that can download files - often bypass security controls.
Pro Tip
Check LOLBAS Project for a complete list of Windows binaries that can be abused for file transfers, execution, and more.