Jump to content

What am I doing wrong?


Dimon
Go to solution Solved by dark_pyrro,

Recommended Posts

So I just got my rubber ducky today and tried to use it with a testing script i wrote myself.

The script:

DELAY 3000
INJECT_MOD WINDOWS r
DELAY 1000
STRING cmd
DELAY 1000
INJECT_MOD ENTER
DELAY 1000
STRING ipconfig

I used enough delays but everything that happens is that it opens the Windows+r window and types cmd.

Then for some reason office 365 opens and thats it.

Where is the mistake?

Link to comment
Share on other sites

I have the new generation but I saw someone that had the same problem as me.

Another person commented under his post linking this specific forum and I didn’t think too much about it.

Also I used Inject_mod because I’ve read somewhere that would achieve the rubber ducky simulating Enter.

Link to comment
Share on other sites

I would suggest reading the official documentation instead so that you get the correct information about how things work

https://docs.hak5.org/hak5-usb-rubber-ducky/ducky-script-basics/keystroke-injection#standalone-modifier-keys

https://docs.hak5.org/hak5-usb-rubber-ducky/duckyscript-tm-quick-reference#holding-keys

https://docs.hak5.org/hak5-usb-rubber-ducky/advanced-features/holding-keys#holding-modifier-keys

Try this

DELAY 3000
REM or use EXTENSION DETECT_READY
GUI r
DELAY 1000
STRINGLN cmd
DELAY 3000
STRINGLN ipconfig

 

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...