Jump to content
Hak5 Forums
HH1

Flash firmware OS X

Recommended Posts

n3uron   

On MacOS:

  1. Get dfu-programmer from homebrew.
  2. Get hex file from github.  (Click on raw version, then wget the hyperlink.  Be sure to remember file path where it is saved.)
  3. Pull ducky out of machine.  Hold down button while putting back into machine.  No lights should be on, and it will not show up in finder.

Then run these commands in terminal in sequence:

sudo /usr/local/bin/dfu-programmer at32uc3b1256 dump >dump.bin
sudo /usr/local/bin/dfu-programmer at32uc3b1256 reset
sudo /usr/local/bin/dfu-programmer at32uc3b1256 erase
sudo /usr/local/bin/dfu-programmer at32uc3b1256 flash --suppress-bootloader-mem <.hex file path>
sudo /usr/local/bin/dfu-programmer at32uc3b1256 reset

Share this post


Link to post
Share on other sites
HH1   
56 minutes ago, n3uron said:

On MacOS:

  1. Get dfu-programmer from homebrew.
  2. Get hex file from github.  (Click on raw version, then wget the hyperlink.  Be sure to remember file path where it is saved.)
  3. Pull ducky out of machine.  Hold down button while putting back into machine.  No lights should be on, and it will not show up in finder.

Then run these commands in terminal in sequence:

sudo /usr/local/bin/dfu-programmer at32uc3b1256 dump >dump.bin
sudo /usr/local/bin/dfu-programmer at32uc3b1256 reset
sudo /usr/local/bin/dfu-programmer at32uc3b1256 erase
sudo /usr/local/bin/dfu-programmer at32uc3b1256 flash --suppress-bootloader-mem <.hex file path>
sudo /usr/local/bin/dfu-programmer at32uc3b1256 reset

I'll try that

Thanks!

Share this post


Link to post
Share on other sites

The sequence does not need the first reset, because it's not possible to follow the next step if you early reset (because reset stop dfu mode).

This is enough :

sudo /usr/local/bin/dfu-programmer at32uc3b1256 dump >dump.bin
sudo /usr/local/bin/dfu-programmer at32uc3b1256 erase
sudo /usr/local/bin/dfu-programmer at32uc3b1256 flash --suppress-bootloader-mem <.hex file path>
sudo /usr/local/bin/dfu-programmer at32uc3b1256 reset

  0
  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

×