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