insecurityofthings / uDuck

USB Rubber Ducky for ATTiny85
107 stars 24 forks source link

digispark-tiny #2

Open tonyputi opened 6 years ago

tonyputi commented 6 years ago

Hi! congratulation for your amazing work but it is possible to port it to a digispark-tiny device? I've seen that your hardware use different pins on the attiny and should be not enough to change it in usbconfig.h

Could you help me please?

Regards

phikshun commented 6 years ago

It doesn't really need to be ported. uDuck and the Digispark are both ATTiny85 based. Only a few changes are required.

In usbconfig.h, change the pin assignments to the following:

#define USB_CFG_DMINUS_BIT      3
#define USB_CFG_DPLUS_BIT       4

The go into src/build and edit the Makefile:

BURNPROGRAMMER = arduino
BURNPORT = /dev/cu.usbserial-A8008I9o

You'll need to change those lines if you're using a different programmer. I was using an Arduino as ISP.

After you install avrdude and the avr toolchain, connect the JP3 header to your programmer and run make clean, make all, and finally make install.

After the initial install you'll be able to use the uduck_upload.py script to upload new payloads.

tonyputi commented 6 years ago

Hi and thank you for your reply but after your changes nothing happens

Here my dmesg output:

[84243.508399] usb 2-2: new low-speed USB device number 18 using xhci_hcd
[84243.632445] usb 2-2: device descriptor read/64, error -71
[84243.864443] usb 2-2: device descriptor read/64, error -71
[84244.092393] usb 2-2: new low-speed USB device number 19 using xhci_hcd
[84244.216442] usb 2-2: device descriptor read/64, error -71
[84244.448428] usb 2-2: device descriptor read/64, error -71
[84244.676380] usb 2-2: new low-speed USB device number 20 using xhci_hcd
[84244.676808] usb 2-2: Device not responding to setup address.
[84244.884836] usb 2-2: Device not responding to setup address.
[84245.092372] usb 2-2: device not accepting address 20, error -71
[84245.212377] usb 2-2: new low-speed USB device number 21 using xhci_hcd
[84245.212798] usb 2-2: Device not responding to setup address.
[84245.420846] usb 2-2: Device not responding to setup address.
[84245.628346] usb 2-2: device not accepting address 21, error -71

Any other suggest?

Regards

CriJonsi commented 6 years ago

Hi! You should read this article which use the digispark-tiny device and put micronucleus on it. He explain everything: https://medium.com/@_MG_/mr-self-destruct-7986998f32a8

Regards