Darren Kitchen Posted February 9, 2012 Posted February 9, 2012 (edited) I can't apologize enough for the delay in the source code release. We've worked out a license issue and hopefully now we can get some of the wanted features sorted. The source code can be found on GitHub. We've also moved the Wiki there so go ahead and post findings and payloads there. usbrubberducky.com now forwards there. https://github.com/hak5darren/USB-Rubber-Ducky/wikiThe code is in C and you'll need ATMEL's ARV Studio to work with the project file. You can snag that here: atmel.com/avrstudio -- be sure to agree to their license When it comes to programming the Duck you'll need these resources for Windows: http://hak5.org/Duck%20Programming.zip . It's pretty simple, just execute "program.bat newfirmware.hex"*On the Windows side you may need JRE FLIP from http://www.atmel.com/tools/FLIP.aspx and be sure to use the drivers in the Programming.zipOn the *nix side I must give props to contributor Kenny who wrote these nice shell scripts to dump existing and program new firmware. I've mirrored these scripts here: http://www.usbrubberducky.com/files/dfu-linux/Kenny wrote: In case it is useful to anyone, I have been using the attached scriptsfor firmware loading/dumping in Linux (Ubuntu has dfu-programmerpackaged). They aren't pretty, and flash.sh should probably do someihex format tests on the input file. But hey, it's a start. Thanks for sending these by Kenny! As these scripts evolve they should find their way back up to the git repo. Edit (midnitesnake): Community Edition Firmware source code is available at http://code.google.com/p/ducky-decode Edited February 5, 2013 by midnitesnake added ducky decode link Quote
pyro2927 Posted February 16, 2012 Posted February 16, 2012 If we want to debug any code we write, we're going to have to solder on a JTAG and use the Atmel AVR JTAG In-Circuit debugger, aren't we? Quote
Kenny Posted February 24, 2012 Posted February 24, 2012 JTAG is certainly an effective way to go about debugging, albeit a little slow depending on the controller. Depending on the complexity of what you are trying to accomplish, you may find it easier to debug code in a simulator. Or on the much lighter end, adding logging features to the firmware might help you get what you want. This could look for a "DEBUG" file in the root of the MicroSD card filesystem. If that exists, then write logging output to another (or the same) file on the card. What does bus enumeration look like on your system? Does broadcast Ack/Nack timing returning to your keyboard give away your password to neighbouring USB devices? Can has class 09h? The Ducky has so much untapped potential. I'm really looking forward to seeing what people come up with. Quote
keland Posted March 6, 2012 Posted March 6, 2012 (edited) JTAG is certainly an effective way to go about debugging, albeit a little slow depending on the controller. Depending on the complexity of what you are trying to accomplish, you may find it easier to debug code in a simulator. Or on the much lighter end, adding logging features to the firmware might help you get what you want. This could look for a "DEBUG" file in the root of the MicroSD card filesystem. If that exists, then write logging output to another (or the same) file on the card. What does bus enumeration look like on your system? Does broadcast Ack/Nack timing returning to your keyboard give away your password to neighbouring USB devices? Can has class 09h? The Ducky has so much untapped potential. I'm really looking forward to seeing what people come up with. A Simulator would be good, but I don't think ther is one for the AT32UC3B1256, unless you know otherwise. Looks like one has to use something like the JTAGICE to debug (http://www.atmel.com/tools/AVRJTAGICEMKII.aspx) Any recommendations anyone? This connects to a jtag connector, do we have a pin out yet of jtag connecter on the duck? (I can't see one....) Edited March 6, 2012 by keland Quote
MarsupialDragon Posted September 29, 2012 Posted September 29, 2012 I can't apologize enough for the delay in the source code release. We've worked out a license issue and hopefully now we can get some of the wanted features sorted. The source code can be found on GitHub. We've also moved the Wiki there so go ahead and post findings and payloads there. usbrubberducky.com now forwards there. https://github.com/h...bber-Ducky/wiki The code is in C and you'll need ATMEL's ARV Studio to work with the project file. You can snag that here: atmel.com/avrstudio -- be sure to agree to their license When it comes to programming the Duck you'll need these resources for Windows: http://hak5.org/Duck%20Programming.zip . It's pretty simple, just execute "program.bat newfirmware.hex" *On the Windows side you may need JRE FLIP from http://www.atmel.com/tools/FLIP.aspx and be sure to use the drivers in the Programming.zip On the *nix side I must give props to contributor Kenny who wrote these nice shell scripts to dump existing and program new firmware. I've mirrored these scripts here: http://www.usbrubber...iles/dfu-linux/ Kenny wrote: Thanks for sending these by Kenny! As these scripts evolve they should find their way back up to the git repo. Where has the "Duck%20Programming.zip" been moved to? Quote
--nick-- Posted December 15, 2012 Posted December 15, 2012 (edited) https://www.box.com/...fs97apyi1hsy3va Edited December 16, 2012 by --nick-- Quote
no42 Posted December 15, 2012 Posted December 15, 2012 (edited) All the programs should be on ducky-decode (including Atmel's FLIP installer).I have been flashing the duck successfully on Linux, and Windows.If you download dfu-programmer from ducky-decodetry these instructions tar -xzf dfu-programmer-0.5.4.tar.gz cd dfu-programmer-0.5.4 make sudo make install dfu-programmer --helpalternatively after the make commandcd src ./dfu-programmer --help Edited April 18, 2013 by midnitesnake Quote
no42 Posted December 15, 2012 Posted December 15, 2012 ok so i managaged to get the driver to sucessfully install in windows xp only but when i run the programming.bat c_duck.hex Could not find AtJniIsp.dll Atmel installer has probably put that driver somewhere on your disk, try copying it into the local directory containing program.bat, and try again. Quote
--nick-- Posted December 16, 2012 Posted December 16, 2012 (edited) Thank you midnitesnake, I figured out what I was doing wrong. I extracted all the downloaded files to the wrong folder . I only had to extract the download to the c:/program files/filp_atmel/bin and then change to that directory in cmd prompt to execute the program.bat. I feel quite dumb now. http://uploading.com...ing-WINDOWS-zip I flashed mine on WINDOWS XP x86. maybe this dload link will help people . also maybe someone can make a .bat for copying the .dll files to windows/system32 ? Edited December 17, 2012 by --nick-- Quote
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.