jcintron Posted December 23, 2015 Share Posted December 23, 2015 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 Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted December 24, 2015 Share Posted December 24, 2015 Moved to ducky forum. Try a GUI key combination like GUI+R to bring up the run box. Also, your initial delay may not be long enough to have the ducky identify with the OS. Check this for some examples: https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Payloads Quote Link to comment Share on other sites More sharing options...
White Light Posted December 24, 2015 Share Posted December 24, 2015 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. Quote Link to comment Share on other sites More sharing options...
jcintron Posted December 24, 2015 Author Share Posted December 24, 2015 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. Quote Link to comment Share on other sites More sharing options...
Mr-Protocol Posted December 24, 2015 Share Posted December 24, 2015 There is a way, it would be with the twin duck if I'm not mistaken. I honestly haven't played around with that. It would require a different firmware flashed on your ducky. Quote Link to comment Share on other sites More sharing options...
White Light Posted December 24, 2015 Share Posted December 24, 2015 You'll need Twin Duck for that. 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.