I know the "USB Rubber Ducky" pretends to be a keyboard toward the OS, but I still don't understand how he can launch a script...
Normal keyboard can't just initiate keypress by itself right? Or maybe a special kind of driver is required?
I know the "USB Rubber Ducky" pretends to be a keyboard toward the OS, but I still don't understand how he can launch a script...
Normal keyboard can't just initiate keypress by itself right? Or maybe a special kind of driver is required?
When you press a key on a normal keyboard, the keyboard sends a message to the computer over USB that a key is pressed. A BadUSB device can send that same message. Instead of waiting for a keypress, it sends a couple of these messages after it has been plugged in.
So a BadUSB device doesn't just immitate a keyboard, it immitates a keyboard that has certain keys pressed in a certain order. The attacker can program a microcontroller with USB port to behave as a keyboard and press some keys after some time.