Skip to content

File Transfers

Download to Linux

wget
wget <url> -o <Output File>
curl
curl <url> -O <Output File>
scp
scp <user>@<ip address>:<file> <Directory to Download to>

Base64

Base64 Encrypt File
base64 <file>
Decode Base64 and Recreate File
base64 -d <file w/ base64 text> > file

socat

Upload
socat TCP4-LISTEN:<port #>,fork file:<File>
Download
socat TCP4:<ip address>:<port #> file:<File>,create

netcat

Upload
nc <ip address> <port #> < <Upload File>
Download
nc -lvnp <ip address> <port #> > <Download File>

Upload to Linux

scp
scp <file to upload> <user>@<ip address>:<Directory to upload to>

Base64

Base64 Encrypt File
base64 <file>
Decode Base64 and Recreate File
base64 -d <file w/ base64 text> > file

socat

Upload
socat TCP4-LISTEN:<port #>,fork file:<File>
Download
socat TCP4:<ip address>:<port #> file:<File>,create

/dev/tcp

Upload file
cat <file> > /dev/tcp/<ip address>/<port>
Download File
nc -lvnp <port> > <Output File>