Jump to content

shofti31

Active Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

shofti31's Achievements

Newbie

Newbie (1/14)

  1. Not a problem, I appreciate it. I learned years ago that Open source is all about giving back and I do the same thing through support (Google+ Communities and a few forums I admin). Thanks
  2. Everything is working. No errors on make or make install and dfu-programmer is working with my ducky. Thanks again
  3. Yes, they are installed: root@Europa:~/Downloads/dfu-programmer-0.5.4# sudo apt-get install libusb-dev libusb-1.0.0-dev Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'libusb-1.0-0-dev' for regex 'libusb-1.0.0-dev' libusb-1.0-0-dev is already the newest version (2:1.0.20-1). libusb-dev is already the newest version (2:0.1.12-30). 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded. Here is the output from make: root@Europa:~/Downloads/dfu-programmer-0.5.4# make make all-recursive make[1]: Entering directory '/root/Downloads/dfu-programmer-0.5.4' Making all in src make[2]: Entering directory '/root/Downloads/dfu-programmer-0.5.4/src' gcc -Wall -g -O2 -o dfu-programmer main.o arguments.o atmel.o commands.o dfu.o intel_hex.o util.o main.o: In function `main': /root/Downloads/dfu-programmer-0.5.4/src/main.c:62: undefined reference to `usb_init' /root/Downloads/dfu-programmer-0.5.4/src/main.c:110: undefined reference to `usb_release_interface' /root/Downloads/dfu-programmer-0.5.4/src/main.c:123: undefined reference to `usb_close' /root/Downloads/dfu-programmer-0.5.4/src/main.c:81: undefined reference to `usb_set_debug' dfu.o: In function `dfu_transfer_out': /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:845: undefined reference to `usb_control_msg' /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:845: undefined reference to `usb_control_msg' dfu.o: In function `dfu_transfer_in': /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:872: undefined reference to `usb_control_msg' /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:872: undefined reference to `usb_control_msg' dfu.o: In function `dfu_transfer_out': /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:845: undefined reference to `usb_control_msg' dfu.o:/root/Downloads/dfu-programmer-0.5.4/src/dfu.c:872: more undefined references to `usb_control_msg' follow dfu.o: In function `dfu_device_init': /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:475: undefined reference to `usb_find_busses' /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:476: undefined reference to `usb_find_devices' /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:479: undefined reference to `usb_get_busses' /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:492: undefined reference to `usb_open' /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:494: undefined reference to `usb_set_configuration' /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:495: undefined reference to `usb_claim_interface' /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:506: undefined reference to `usb_release_interface' /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:507: undefined reference to `usb_close' dfu.o: In function `dfu_make_idle': /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:816: undefined reference to `usb_reset' dfu.o: In function `dfu_device_init': /root/Downloads/dfu-programmer-0.5.4/src/dfu.c:516: undefined reference to `usb_close' collect2: error: ld returned 1 exit status Makefile:235: recipe for target 'dfu-programmer' failed make[2]: *** [dfu-programmer] Error 1 make[2]: Leaving directory '/root/Downloads/dfu-programmer-0.5.4/src' Makefile:264: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/root/Downloads/dfu-programmer-0.5.4' Makefile:200: recipe for target 'all' failed make: *** [all] Error 2 root@Europa:~/Downloads/dfu-programmer-0.5.4#
  4. Ok, I got past that part but now I am getting a bunch of usb_* errors but I can figure those out on my own. Thanks
  5. That was the only line I didn't type out but I just did and the syntax still isn't correct: root@Europa:~/Downloads/dfu-programmer-0.5.4# sed -i.bak -ne '/^LDFLAGS =/{h;s/LDFLAGS -.*/LDFLAGS =/};/^LIBS = .*/{x};p' sed: no input files Here is line by line what I did http://ix.io/1mmH
  6. Well I tried your flag but I got an error on modifying the src/makefile: V root@Europa:~/Downloads/dfu-programmer-0.5.4# sed -i.bak -ne ‘/^LDFLAGS =/{h;s/LDFLAGS = \(.*\)/LIBS = \1/;x;s/LDFLAGS =.*/LDFLAGS =/};/^LIBS = .*/{x;};p' bash: syntax error near unexpected token `}' It looks as though you closed all of your arguments so I dunno why it is complaining about }
  7. Actually I installed them both via archlinux and debian/kali package managers. I will manually compile when I get home this evening and post my results. Thanks
  8. So I am trying to flash new firmware on my ducky and I am having issues with dfu-programmer finding the device under Linux. It works perfectly fine on one of my machines that dual boots windows 10 but I cannot get it to find the device under Linux. I tried this on Archlinux, Debian and Kali with no avail. root@Cerberus comhack #dfu-programmer at32uc3b1256 dump >dump.bincmd dfu-programmer: no device present. Dmesg see the ducky just fine: [164578.733853] usb 3-1.1: new full-speed USB device number 12 using xhci_hcd [164578.832128] input: ATMEL AVR HID Keyboard as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1.1/3-1.1:1.0/0003:03EB:2401.0009/input/input30 [164578.884027] hid-generic 0003:03EB:2401.0009: input,hidraw2: USB HID v1.11 Keyboard [ATMEL AVR HID Keyboard] on usb-0000:00:14.0-1.1/input0 I did notice one thing though. When I insert the ducky while holding down the button, it stays red on Linux but does not light up on Windows. I have been researching for about an hour now with no luck. I do notice that most of the documentation and github repos for the ducky are from 2013 or so. Is most of the stuff still compatible or what? Any ideas? Thanks
×
×
  • Create New...