GrassGrow Posted August 16, 2012 Share Posted August 16, 2012 I get an error message, and I donä' get why. I'm using the Hak5 Duckenocoder 1.2, on a windows 7 computer. What I want to do is open the start menu and write in the "search programs and files"-window to start cmd as admin. Part of Script below: GUI DELAY 50 STRING CMD Delay 150 According to the duckyscript page on GitHub the use of "GUI" should be possible without other parameters. But I get an error message every time I try to put it through the duckencoder. Help? Quote Link to comment Share on other sites More sharing options...
Xcellerator Posted August 16, 2012 Share Posted August 16, 2012 Do you have a delay at the start of the script? I include a 5-second delay in all my scripts (DELAY 5000), so that it gives the machine time to recognise the USB. The ducky will execute the script immediately after it gets power from the system board, which is before the OS can recognise the function of the USB and load the correct drivers. The error is probably from typing C-M-D rapidly when there is no input to take it. You're right that the GUI command can be used without parameters. Might I suggest that to run cmd as admin, you try the following script: DELAY 5000GUIDELAY 50STRING cmdMENUSTRING aENTERLEFTENTERDELAY 200STRING whatever...[/CODE]The MENU command is the same as right-click, so it just right-clicks cmd and chooses "Run As Administrator" from the list with 'a'. Quote Link to comment Share on other sites More sharing options...
GrassGrow Posted August 17, 2012 Author Share Posted August 17, 2012 Thank you, that got me a bit further. However, It appears that the "MENU" command will right click where the pointer is, and not in the start menu, so when I run the script I get the menu for the desktop. I made a workaround by ignoring the "run as admin.." but it would be nice to know what I diid wrong. Quote Link to comment Share on other sites More sharing options...
Xcellerator Posted August 20, 2012 Share Posted August 20, 2012 Hmm.. I checked my script for this (I have a Teensy++ 2.0), and remembered that you can type cmd into the start menu, hold CTRL and SHIFT and press ENTER to run as admin. I'm not sure if you can string together three modifier keys in the Ducky, but there must be a way of doing this. Try: CTRL SHIFT ENTER But, as I said, it might not work.. Anyone else had any luck stringing together more than two modifier keys? Quote Link to comment Share on other sites More sharing options...
Dnucna Posted August 21, 2012 Share Posted August 21, 2012 ctrl-shift enter are only 2 modifiers plus one key. I added this combo in my version of the encoder: You can do ctrl-shit escape or ctrl-alt delete for example. And more is possible if needed. Quote Link to comment Share on other sites More sharing options...
Xcellerator Posted August 23, 2012 Share Posted August 23, 2012 Course, that's what I meant, just weren't sure if the Ducky would let 'hold' three keys at the same time.. Great that it's supported! 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.