Coupee36 Posted June 30, 2015 Posted June 30, 2015 Hello All, I just purchased two rubber ducky. I am new to this, but have following the youtubes and reading a lot of posts. Well my first attempt is to create the HELLO WORLD payload, but I am stuck at flashing the device. I am following the instructions located at : https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Flashing-ducky My System : Windows 7 64bit 1. I already have the following MS Visual C++ 2010 Red. (x64/x86) installed 2. I installed Flip 3. I had to manually install the Atmel Driver 4. Downloaded firmware duck_v2.hex (i assume this is twin duck) from https://github.com/midnitesnake/USB-Rubber-Ducky/tree/master/Firmware/Images (right click > save-as > filetype (all files)) 5. I ran program.bat duck_v2.hex and it FAILS as Parsing HEX file with error "Invalid HEX file syntax" I have tried 3 other firmware images from the repo. but still same error on all of them :( Can someone help me to what I am doing wrong? Thank you. Quote
howlcoyote Posted July 22, 2015 Posted July 22, 2015 Same problem here. I was following the same instructions as Coupee36. I tried to load c_duck_v2.1.hex onto the ducky. Quote
shamwow Posted July 23, 2015 Posted July 23, 2015 (edited) Hello All, I just purchased two rubber ducky. I am new to this, but have following the youtubes and reading a lot of posts. Well my first attempt is to create the HELLO WORLD payload, but I am stuck at flashing the device. I am following the instructions located at : https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Flashing-ducky My System : Windows 7 64bit 1. I already have the following MS Visual C++ 2010 Red. (x64/x86) installed 2. I installed Flip 3. I had to manually install the Atmel Driver 4. Downloaded firmware duck_v2.hex (i assume this is twin duck) from https://github.com/midnitesnake/USB-Rubber-Ducky/tree/master/Firmware/Images (right click > save-as > filetype (all files)) 5. I ran program.bat duck_v2.hex and it FAILS as Parsing HEX file with error "Invalid HEX file syntax" I have tried 3 other firmware images from the repo. but still same error on all of them :( ducky.PNG Can someone help me to what I am doing wrong? Thank you. try downlaoding the zip file from https://github.com/midnitesnake/usb-rubber-ducky also try puting program.bat and newfirmware.hex in to c:\program files\flip_atmel\bin and then change to that directory in cmd prompt to run program.bat Edited July 23, 2015 by shamwow Quote
aaroon Posted August 8, 2015 Posted August 8, 2015 Hello: I'm experiencing this same issue. Generally not one to post on message boards but after going over and over all the steps and spending hours trying to get this device to flash correctly I'm throwing in the towel. Getting "invalid hex file syntax" on every hex, every time, numerous machines, regardless of program.bat location. Has anyone else been able to identify what causes this issue or found a resolution? Do I assume I received a bad device? Any feedback/assistance at all is greatly appreciated. Thanks again. Quote
Mr.Wonton Posted September 8, 2015 Posted September 8, 2015 Hey all, I am having the same issue. This is what I am getting: Quote
Mr.Wonton Posted September 8, 2015 Posted September 8, 2015 Update: I have fixed it. Instead of downloading it from the github link, copy all of the Hex data into Notepad ++ and save that off as a .hex. Then repeat the steps listed above as necessary. The reason why it was happening for me was because I was right clicking, "Save Link As" from github and it was downloading the HTML instead of the hex data, which is why I was getting the syntax error. Quote
Coupee36 Posted September 8, 2015 Author Posted September 8, 2015 Update: I have fixed it. Instead of downloading it from the github link, copy all of the Hex data into Notepad ++ and save that off as a .hex. Then repeat the steps listed above as necessary. The reason why it was happening for me was because I was right clicking, "Save Link As" from github and it was downloading the HTML instead of the hex data, which is why I was getting the syntax error. Sorry for the delayed response. Mr. WOnton is correct. DO NOT RIGHT CLICK SAVE AS, it saves at an HTML file. You can do what Mr. Wonton did by copying all the info the hex file into a notepad, or what I did was on the right of the page there is an option to DOWNLOAD ZIP. This will download all the files into a zip and from there you can flash it with the proper HEX file. Quote
LukasS Posted September 9, 2015 Posted September 9, 2015 how is doing that ??? there is an option on github to download all to a zip... wth ??? Quote
Peyo Posted September 11, 2015 Posted September 11, 2015 how is doing that ??? there is an option on github to download all to a zip... wth ??? In the main page of the project, there is a button with caption "Download ZIP". Better use the git binaries, so you can update the project in a more efficient way. Quote
LukasS Posted September 11, 2015 Posted September 11, 2015 (edited) In the main page of the project, there is a button with caption "Download ZIP". Better use the git binaries, so you can update the project in a more efficient way. It was that button that i was talking about ... i was mindblowing when they said that was copying with right button xD Edited September 11, 2015 by LukasS Quote
trib Posted September 20, 2015 Posted September 20, 2015 In my case, the running program.bat was successful. But the flashlight is still Red (not green). So what should i do now? The firmware that i was using to flash the USB was duck_v2.1.hex Quote
hairbag Posted September 20, 2015 Posted September 20, 2015 on kali linux press and hold button on ducky whle inserting into usb port and enter into a terminal (sorry dont have a clue about windblows) dfu-programmer at32uc3b1256 erase dfu-programmer at32uc3b1256 flash --suppress-bootloader-mem duck_v2.1.hex dfu-programmer at32uc3b1256 reset Quote
ale Posted September 21, 2015 Posted September 21, 2015 Use Kali linux and follow this tutorial Quote
mafiasilk Posted September 14, 2016 Posted September 14, 2016 On 08/09/2015 at 10:38 PM, Mr.Wonton said: Hey all, I am having the same issue. This is what I am getting: I had same issue, download notepad++ and use that, notepad in windows breaks the code. Quote
mafiasilk Posted September 14, 2016 Posted September 14, 2016 I have flashed the ducky with c_duck_v2.1.hex But I can't see a drive appear in windows, it does show in disk management, but not in explorer. Any ideas? Quote
mafiasilk Posted September 14, 2016 Posted September 14, 2016 maybe its me, but the c_2.1 hex doesnt work on my ducky, the version 2 does. Can anyone else verify this? Quote
usmarine2141 Posted September 26, 2016 Posted September 26, 2016 You need to put it in the same folder as the program.bat . once you do that then it will flash. Worked for me... but i did get this error Quote
usmarine2141 Posted September 26, 2016 Posted September 26, 2016 Here is the picture http://imgur.com/a/aBOJI Quote
BreakTime Posted October 16, 2016 Posted October 16, 2016 Got this error and thought I was doing something wrong @ first. Other users with this problem suggesting flashing to to c_duck_v2_S002 so I tried that and it worked with no issue... but with that fw I seemed to need to press the replay button to inject period - making my ducky unable be put in its case. Ran across this posting and wanted to say thank you! After saving in Notepad++ as a hex file I was just able to flash to c_duck_v2.1 with no issue and can now both inject upon insertion (without having to hit replay and while in it's case!) and edit the files on there while it's plugged in if need be! Thanks again guys! 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.