Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

File Transfer Techniques

πŸ”§ Living Off The Land (LOLBAS & GTFOBins)

Use native system binaries to transfer files stealthily.


πŸͺŸ Windows File Transfer Methods

βœ… Hash Checking

# Linux
md5sum id_rsa

# PowerShell
Get-FileHash C:\Users\Public\id_rsa -Algorithm MD5

πŸ” Base64 Encode/Decode

# Encode (Linux)
cat id_rsa | base64 -w 0; echo

# Encode (PowerShell)
[Convert]::ToBase64String((Get-Content -Path "C:\Windows\system32\drivers\etc\hosts" -Encoding byte))

# Decode (PowerShell)
[IO.File]::WriteAllBytes("C:\Users\Public\id_rsa", [Convert]::FromBase64String("<base64String>"))

# Decode (Linux)
echo <base64String> | base64 -d > hosts

🌐 PowerShell File Download


πŸ“¦ SMB File Transfer


πŸ“ WebDAV File Transfer


πŸ“‘ FTP Transfer


⬆️ Upload Server


πŸ’‘ Base64 Upload via Web


🧨 Fileless Execution (Memory)


🚫 Bypass Protections


🐧 Linux File Transfer Methods

βœ… MD5 Hash Check

πŸ” Base64 Encode/Decode


🌐 Download Tools

πŸ“‘ TCP-Based Download


πŸ”„ SCP (SSH Transfer)


🧾 Upload Server with Certificate


🌐 Web Servers


🧨 Fileless Download


πŸ‘¨β€πŸ’» Transferring Files with Scripting Languages

🐍 Python


🐘 PHP


πŸ’Ž Ruby


πŸͺ Perl


🧠 JavaScript (wget.js)


πŸ“œ VBScript (wget.vbs)


🧰 Miscellaneous File Transfer

πŸ”Š Netcat


πŸ“‚ Mount Linux Directory (RDP)


🌐 Upload with Nginx (WebDAV)


πŸ” File Protection with Encryption

PowerShell – AES Encryption


OpenSSL – AES Encryption

Last updated