StormShadow Posted September 8, 2013 Share Posted September 8, 2013 Hi everyone, I'm new to this forum, and new to pen testing in general. I'm also the proud owner of a USB rubber ducky. I have a problem, however, which I'm certain is child's play for everyone here. I can't get the intro script to work. I have flashed the duck over to v2.1, and my keyboard is set to US english (I'm in Canada). I have the latest version of Java as well. I have tried to compile and save the script via the online utility, but when it saves, it's a 0 Kb file. I tried using the encoder from command line, but java isn't a recognized command, apparently. If it matters, I'm running Win7. Just to confirm as well, when I have this script compiled, I will be saving it as inject.bin and just moving it over to the SD card ? Any help is appreciated ! Quote Link to comment Share on other sites More sharing options...
Bountyhunter50 Posted September 8, 2013 Share Posted September 8, 2013 how big is your .txt file? can you kinda walk us through how you go about creating the inject.bin on your box? Quote Link to comment Share on other sites More sharing options...
StormShadow Posted September 8, 2013 Author Share Posted September 8, 2013 Sure thing, thanks for responding. If I'm using iducke.com, I paste this into the box : REM add delay to ensure Windows can add the appropriatre driverGUI -RSTRING notepadENTERDELAY 500STRING this is my first ducky scriptENTER Then I click "quack" of course, and choose "save as". I call it inject.bin, and save it to the SD card. It usually fails to DL the first time for some reason, but then succeeds the second time. However, when I check on the SD card, the file size is 0 Kb and nothing happens when i slot the card in the duck and try to run it. If I try to run the encoder from the command line interface, I get a message saying that java is not a recognized command. Quote Link to comment Share on other sites More sharing options...
Bountyhunter50 Posted September 8, 2013 Share Posted September 8, 2013 What I did on iDucke, take out your REM (iDucke didn't like it with me for whatever reason), and add in a DELAY 3000, I was able to get a 3k file using this: DELAY 3000GUI -RSTRING notepadENTERDELAY 500STRING this is my first ducky scriptENTER Give that a try with iDucke. You might wanna re-install Java to fix that unrecognizable command Quote Link to comment Share on other sites More sharing options...
StormShadow Posted September 8, 2013 Author Share Posted September 8, 2013 Great...that worked. It didn't execute the script, but it did do a bunch of stuff that leads me to believe I just need to tweak the script a bit. So I take it v2.1 should work with a US keyboard on Win7 no problem ? Quote Link to comment Share on other sites More sharing options...
Bountyhunter50 Posted September 8, 2013 Share Posted September 8, 2013 Shouldn't have an issue, Yeah it looks like you're down to the syntax :-) I use that on Win8 and it cranks out the code while yawning! B) Quote Link to comment Share on other sites More sharing options...
StormShadow Posted September 8, 2013 Author Share Posted September 8, 2013 Nice...thanks again ! Quote Link to comment Share on other sites More sharing options...
no42 Posted September 8, 2013 Share Posted September 8, 2013 iducke.com uses version 1.2 of the encoder, I suggest using version 2.6, and scripts typically need to start with an initial long delay (eg DELAY 3000) as the Ducky will start almost straight away (and needs time for drivers to be recognised/installed). Quote Link to comment Share on other sites More sharing options...
Xcellerator Posted September 8, 2013 Share Posted September 8, 2013 The unrecognised java command in the prompt can be fixed by adding the Java binary install directory to the %PATH% variable. This can be done in system properties from my computer. Quote Link to comment Share on other sites More sharing options...
StormShadow Posted September 8, 2013 Author Share Posted September 8, 2013 Thanks guys ! This newb truly appreciates it ! 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.