Jump to content

Recommended Posts

Posted

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 :(

post-49391-0-76127800-1435706324_thumb.p

Can someone help me to what I am doing wrong? Thank you.

  • 3 weeks later...
Posted (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 :(

attachicon.gifducky.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 by shamwow
  • 3 weeks later...
Posted

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.

  • 1 month later...
Posted

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.

Posted

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.

Posted

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.
Posted (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 by LukasS
  • 2 weeks later...
Posted

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

Posted

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

  • 11 months later...
Posted
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:

Duck error.PNG

 I had same issue, download notepad++ and use that, notepad in windows breaks the code.

  • 2 weeks later...
  • 3 weeks later...
Posted

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! :grin:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...