Jump to content

RubberDucky Powershell Download and Execute


Recommended Posts

Hello everyone,

I bought myself a Rubber Ducky a Week ago and I really love creating Payloads 🙂

However im having a bit trouble with a specific payload, im using the following code to download a picture from the internet:

 

 
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile("https://www.workupload.com/file","whatever.jpg")
As File Upload-Service im using Workupload and so far I tried it with downloading a picture. Everything works perfectly fine, powershell downloads the picture and closes itself.
But for some reasons I just cant open the picture, and I cant really find out why...
Do I need to put in Delays until the Download is finished? Is Windows-Defender blocking something? Is my Code outdated?
 
Later on I wanna try it with a .exe file and execute it, but thats seems far too complicated as for now.
 
Would appreciate any help, have a good one! 🙂
 

 

Link to comment
Share on other sites

  • 1 year later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...