Jump to content

[Tutorial] Re-Flashing/Upgrading the Ducky WINXP 32bit


--nick--

Recommended Posts

This guide is for re-flashing/upgrading the rubberducky firmware using WINDOWS XP x86 (should be the same for Vista, Windows 7+)

Installation Media
http://code.google.com/p/ducky-decode/source/browse/trunk/Flash/Duck%20Programming.zip

Flip download link: http://www.atmel.com/tools/FLIP.aspx
- also download the preferred firmware.hex from the duck wiki site before hand.
in here http://code.google.com/p/ducky-decode/

You may also need Microsoft Visual C++ Redistributable:
x86 - http://www.microsoft.com/en-gb/download/deails.aspx?id=5555
x64 - http://www.microsoft.com/en-gb/download/details.aspx?id=14632

Installation

  • Install MS Visual C++ Redistributable
  • Unzip DuckProgramming.zip
  • Install Flip
  • Install Atmel signed Driver

Atmel Driver Problems
You will have to install this manually! Windows installs the wrong driver!
So to install manually use the add hardware wizard and select have disk and scroll down to at32ucb.

Alternatively, make sure the Duck is in DFU-mode (keep pushing the button upon insertion), and goto Device Manager.

  • Then look for a DFU-xxx under USB Devices
  • Right Click
  • Update Driver
  • Then Manually specify driver.
  • And point the program to the Atmel Signed Drivers from the unzipped DuckProgramming.zip


Running Program.bat to Re-flash Ducky

  • open dos cmd prompt
  • in cmd prompt type in cd C:\Program Files\Atmel\Flip 3.4.2\bin
  • in the same cmd prompt type in
program.bat YourNewFirmware.hex

Its a sucess if it all says pass
Dont worry about the overlap warning!

Edited by midnitesnake
Tidied it up a little.
  • Upvote 1
Link to comment
Share on other sites

The overlap warning is to do with the boot loader - but that area of memory is protected and cant be overwritten.

I was worried the first time I flashed my Ducky, I have since flashed the Ducky approx 80x with no adverse affects.

From checking my system, I did the following steps:
Install Flip
Install Atmel Driver

put firmware.hex in same directory as program.bat

Atmel Driver
----------
I inserted the ducky in dfu mode (holding the Ducky's button down)
When Windows couldnt find the driver, I did a maunal install (sometimes a wizard will pop up, sometimes it wont)
Control-Panel ->Hardware & Sound -> Add a device -> select atmel-dfu -> manually search for driver -> point to unzipped atmel-driver folder -> ok ->done

If windows has installed a gernic driver, you have to go through device manger -> update driver, and then manuall select the relevant inf file from the atmel-driver folder.

Edited by midnitesnake
Link to comment
Share on other sites

I have been following the tutorials here, and the one that midnightsnake made, and have been having some problems. I keep getting an error message(popup) that is titled "AtJniIsp Message", and has the error message "AtLibUsbDfu.dll not found. " I know that the specified dll file is located in the bin folder though. The following is the command prompt when the error occurs.

C:\Program Files (x86)\Atmel\Flip 3.4.7\bin>program.bat USB.hex
____________________________________________
[#] RubberDucky Programming Script
[-] Programming File: [USB.hex]
Running batchisp 1.2.5 on Mon Dec 17 18:32:22 2012



AT32UC3B0256 - USB - USB/DFU


Device selection....................... PASS
Hardware selection..................... PASS
Opening port........................... FAIL ISP done.

C:\Program Files (x86)\Atmel\Flip 3.4.7\bin>[/CODE]

If anyone knows why the error is occurring, or how to fix it I would really appreciate some help.

Edited by overwraith
Link to comment
Share on other sites

yea, what midnight said.

try to put the downloaded batchisp into that /bin/ folder too

i had that same problem , i am trying to think what i did.

did you put the .dll and the .sys in the correct places and then?

manually select driver from device managers harware manager (pick have disk) select the driver that is in the downloaded folder the . inf file select 32uc3b

restart pc after its done installing the driver.

Edited by --nick--
Link to comment
Share on other sites

Still not working, I'm not sure what is going wrong, I am going to uninstall and try again. May send an email to Hak 5 feedback asking for a segment on the ducky firmware install. I think it would be worth it.

did the driver install sucessfully when you manulay selected it ? maybe you are putting the .dll and the .sys in the wrong places ?

also check the libusb_Readme.txt inside the atmel driver folder you downloaded, encase i forgot something.

If I am leaving anything else out anyone can feel free to help out. I don't mind.

Edited by --nick--
Link to comment
Share on other sites

Did a clean install today on Windows7, XP should work in a similar manner.

Installed Flip.

Inserted Ducky (in dfu-mode, continually hold the ducky's button as you insert the ducky, if its not in dfu-mode - you were not pushing the button, and you can not flash the ducky)

Performed Manual Driver install (see pics)

Worked perfectly - I didnt have to modify/copy any additional binaries or environment variables

If this doesnt work, you might have a dead-duck. My advise would be to contact the hak5 shop (shop@hak5.org) for an exchange.

Edited by midnitesnake
Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...

I want to buy a Ducky but have a question about this first. If I flash my Ducky can I still run playloads? Thanks in advance!

Depends on the payload:

  • HID - Yes
  • USB(FAT Duck) No!
  • Multi/Detour Duck - Yes
  • Composite/Twin Duck - Yes.
  • Multi-Composite PoC - Yes
  • Upvote 1
Link to comment
Share on other sites

  • 3 weeks later...

This guide is for re-flashing/upgrading the rubberducky firmware using WINDOWS XP x86 (should be the same for Vista, Windows 7+)

Installation Media

http://code.google.com/p/ducky-decode/source/browse/trunk/Flash/Duck%20Programming.zip

Flip download link: http://www.atmel.com/tools/FLIP.aspx

- also download the preferred firmware.hex from the duck wiki site before hand.

in here http://code.google.com/p/ducky-decode/

You may also need Microsoft Visual C++ Redistributable:

x86 - http://www.microsoft.com/en-gb/download/deails.aspx?id=5555

x64 - http://www.microsoft.com/en-gb/download/details.aspx?id=14632

Installation

  • Install MS Visual C++ Redistributable
  • Unzip DuckProgramming.zip
  • Install Flip
  • Install Atmel signed Driver

Atmel Driver Problems

You will have to install this manually! Windows installs the wrong driver!

So to install manually use the add hardware wizard and select have disk and scroll down to at32ucb.

Alternatively, make sure the Duck is in DFU-mode (keep pushing the button upon insertion), and goto Device Manager.

  • Then look for a DFU-xxx under USB Devices
  • Right Click
  • Update Driver
  • Then Manually specify driver.
  • And point the program to the Atmel Signed Drivers from the unzipped DuckProgramming.zip

Running Program.bat to Re-flash Ducky

  • open dos cmd prompt
  • in cmd prompt type in cd C:\Program Files\Atmel\Flip 3.4.2\bin
  • in the same cmd prompt type in
program.bat YourNewFirmware.hex

Its a sucess if it all says pass

Dont worry about the overlap warning!

hi everyone,

first time flashing in here. though it seems like an easy noob friendly guide, i'm still a bit confused about one part. Duck Programming.zip contained a file JRE_Flip_Installer_3.4.2.exe. And you also posted a link for a Flip installer download , which i followed and downloaded a version Flip Installer - 3.4.7.112.exe since i already have JRE installed. so when you say Install Flip, which file were you referring to, the one from download link, or the one from the zip? would you please clarify this for me. I'm running win 7 ultimate 64.

thanks

Link to comment
Share on other sites

Did a clean install today on Windows7, XP should work in a similar manner.

Installed Flip.

Inserted Ducky (in dfu-mode, continually hold the ducky's button as you insert the ducky, if its not in dfu-mode - you were not pushing the button, and you can not flash the ducky)

Performed Manual Driver install (see pics)

Worked perfectly - I didnt have to modify/copy any additional binaries or environment variables

attachicon.gif1-device_manager.png

attachicon.gif2-update-driver.png

attachicon.gif3-select-driver.png

attachicon.gif4-install-driver.png

attachicon.gif5-done.png

If this doesnt work, you might have a dead-duck. My advise would be to contact the hak5 shop (shop@hak5.org) for an exchange.

hi, would you please help me with my question bove? thanks.

Link to comment
Share on other sites

hi everyone,

first time flashing in here. though it seems like an easy noob friendly guide, i'm still a bit confused about one part. Duck Programming.zip contained a file JRE_Flip_Installer_3.4.2.exe. And you also posted a link for a Flip installer download , which i followed and downloaded a version Flip Installer - 3.4.7.112.exe since i already have JRE installed. so when you say Install Flip, which file were you referring to, the one from download link, or the one from the zip? would you please clarify this for me. I'm running win 7 ultimate 64.

thanks

Should not really matter, are you having problems?

Duck Programming vanished with usbrubberducky.com, people were asking so I made the original available.

Link to comment
Share on other sites

Should not really matter, are you having problems?

Duck Programming vanished with usbrubberducky.com, people were asking so I made the original available.

i wanted to make surei am doing the right thing before facing ones(problems). what do you mean by:" Duck Programming vanished with usbrubberducky.com"?

thanks for your response btw

Link to comment
Share on other sites

i wanted to make surei am doing the right thing before facing ones(problems). what do you mean by:" Duck Programming vanished with usbrubberducky.com"?

thanks for your response btw

Yes your doing the right thing.

There used to be a website called www.usbrubberducky.com (full of ducky resources) - it got owned, now the URL redirects to these forums.

Link to comment
Share on other sites

  • 5 months later...
  • 5 months later...

Hello!

I try to flashing in Linux debian 7

Use this manual - https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Flashing-ducky

./dfu-programmer at32uc3b1256 dump >dump.bin
dfu-programmer: no device present.

I use dfu-util -l:

(C) 2005-2008 by Weston Schmidt, Harald Welte and OpenMoko Inc.
(C) 2010-2011 Tormod Volden (DfuSe support)
This program is Free Software and has ABSOLUTELY NO WARRANTY

dfu-util does currently only support DFU version 1.0

Found Runtime: [0a5c:201e] devnum=0, cfg=1, intf=3, alt=0, name="UNDEFINED"

found device - is my blueetooth.. where my usb rubber ducky? :'(

lsusb:

Bus 003 Device 013: ID 03eb:2401 Atmel Corp. - this ducky

Help me flashing, please. Thanks!

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

Hello, i have a problem. i don't have the program.bat in my atmel directory :(

any suggestion ?

thank you !

"C:\Program Files (x86)\Atmel\Flip 3.4.2\bin>program.bat c_duck_v2.1.hex

'program.bat' is not recognized as an internal or external command,
operable program or batch file.
Link to comment
Share on other sites

Hello, i have a problem. i don't have the program.bat in my atmel directory :(

any suggestion ?

thank you !

"C:\Program Files (x86)\Atmel\Flip 3.4.2\bin>program.bat c_duck_v2.1.hex

'program.bat' is not recognized as an internal or external command,
operable program or batch file.

check, it should be in this zip file: Duck Programming.zip

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...

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...