How can I reprogram a usb as a keyboard

  • One of my recent posts has lead me to find that you can reprogram a usb drive to appear as a keyboard to a computer. I would like to know how to do this I am currently on a power google trying to find the answer I need (I know you can buy usb drives out there already but I want to make one!)

    If i find any solutions I will answer this my self but maybe someone here can hasten the speed?

    so to reiterate: How do I reprogram a USB drive to appear as a keyboard?

    original question that this is based off:

    How can USB sticks be dangerous?

    Searching for `bad usb` might help. You need to find a USB drive that has reprogrammable firmware.

    Not a trivial effort for the Security Research Labs folks that created the Bad USB Black Hat demo. Morphing the firmware took 2 months for experts. Their details here https://srlabs.de/blog/wp-content/uploads/2014/11/SRLabs-BadUSB-Pacsec-v2.pdf

    The other answers are definitely on the right track. "Reprogramming" a USB drive to appear as a keyboard is not going to be practical. Fortunately there are plenty of products that have this functionality already. I have one more to add to the list here: USB Rubber Ducky.

    I get that but apprently i can flash it... i am fine with flashing one I would just prefer to load the bad usb my self

  • Although that is possible, it's kinda hard to do that by yourself and it's for more advanced users. It requires lots of knowledge on low level programming and hardware.

    It seems that what you want to accomplish here is the reprogramming of a USB flash drive's firmware to act as an HID (Human Interface Device). This is called a bad USB.

    I found a tutorial called How to Make Your Own Bad USB. The tutorial introduces you in more detail to what it is a bad USB and explains how to create one in Windows.
    But the exploit described in this tutorial doesn't work on all USB flash drives. It has some specific requirements.

    From the tutorial intro:

    Most common USB flash drives are exploitable due to the "Bad USB vulnerability". This allows us hackers to reprogram the microcontroller of them to act as a “Human Interface Device” (HID) / keyboard and perform custom keystrokes on our target machine. This scenario is often called “HID Payload Attack”, since you have to hand over your script to the Bad USB for the execution ( more on that later ). Even though almost every USB flash drive is exploitable, only a way to reprogram “Phison” microcontrollers has been released yet.

    I haven't tried the tutorial, so I can't tell you if it will work, but nothing as trying it by yourself :)

    It's not the flash drives that are exploitable; it's the people you give them to hoping they won't think twice before plugging them into their computer. There's nothing wrong with the flash drive; you're *supposed* to be able to reprogram your own device if you want.

License under CC-BY-SA with attribution


Content dated before 7/24/2021 11:53 AM

Tags used