File Transfer Techniques
π§ Living Off The Land (LOLBAS & GTFOBins)
Use native system binaries to transfer files stealthily.
GTFOBins: https://gtfobins.github.io/
πͺ 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