Jump to content

Noob question


jcintron

Recommended Posts

OK I just got my ducky and was trying to write my first script but maybe I am too dense to figure this simple scripting language. But here is the script I wrote (I know it is simple but I was just starting)

DELAY 200
GUI
DELAY 100
STRING cmd.exe
MENU
DOWN
ENTER
LEFT
ENTER

Basically trying to open a cmd window as Administrator (BTW this is a Win10 machine). I encode the script using encoder.jar copy it to the microSD card insert card into ducky plug ducky onto computer and nothing happens. Actually something happens, but not what I was expecting I had a command line open (where I ran encode.jar) and on that screen I saw that the ducky actually typed ecmd.exe where the hell did the e come from and why didn't GUI simulate the Windows key like it is supposed to do? I even tried using 'CONTROL ESCAPE' instead of 'GUI' and this time instead of opening a command windows I got calculator to start. Any ideas on what may be wrong with this? TIA

Link to comment
Share on other sites

I'd suggest an initial delay of at least 2 seconds, and (at least while testing) increase your delay between ALL actions you run. 100ms may not be enough for the start menu to open up and permit entry.

Mr-Protocol brings up a good point too: using the run box is likely better than the start menu, as you don't have to deal with unreliable GUIs. You can start CMD as an administrator automatically through the run box by using powershell.

Link to comment
Share on other sites

Thanks both for the pointers. Will give this another shot. Also is there any way that I can have files on the microSD card that I can copy onto the computer and execute? I know I can download them from a www/ftp/etc server, but was wondering if I can just have them in the SD card.

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