Arduino Keyboard Exploit Demo (HID) and Prevention

In this project we're going to use an Arduino Leonardo to simulate a possible USB attack using HID (human interface device).

Jan 24, 2019

14188 views

8 respects

Components and supplies

1

Pushbutton 3 pin (with resistor)

1

Arduino Leonardo

1

Sd card reader

1

Sd card

1

USB-A to Micro-USB Cable

1

Jumper wires (generic)

Project description

Code

Code snippet #2

text

Code snippet #1

text

keyboard_exploit.ino

arduino

keyboard_exploit.ino

arduino

Code snippet #1

text

Downloadable files

Fritzing schematic

Fritzing schematic

Fritzing schematic

Fritzing schematic

Fritzing schematic image

Fritzing schematic image

Arduino repository

The sketch is inside projects/keyboard_exploit

https://github.com/danionescu0/arduino

Arduino repository

The sketch is inside projects/keyboard_exploit

https://github.com/danionescu0/arduino

Fritzing schematic image

Fritzing schematic image

Comments

Only logged in users can leave comments

Tech_build

2 years ago

That's a piece of useful information to have. Thanks for sharing this project and tips with the community. : )

danionescu

2 years ago

Thanks a lot!

Anonymous user

6 years ago

I think it will not works if you change the keyboard layout in other than English.

danionescu

2 years ago

Sure, you will need to change the "hack.txt" on th sd card to match the keys you need to press on that keyboard layout. :)

Anonymous user

2 years ago

Indeed, but the text in hack.txt will not be Human readable if the keyboard layout is a fantasy one :p

Tech_build

6 years ago

That's a piece of useful information to have. Thanks for sharing this project and tips with the community. : )

danionescu

2 years ago

Thanks a lot!