A bad usb device which uses an AtTiny85 to emulate a HID keyboard, run some powershell code to gain reversed TCP shell.
This project is only for study purposes, DO NOT USE IT AGAINST THE LAW!!! I don't take any responsibility for abused use!!!
- A chip with USB port and AtTiny85 on it, DigiSpark made this kind of things and work well.
- Arduino IDE with DigiSpark AVR add-on installed.
- A target computer(you can use your own one).
- A server which had python and flask preinstalled.
- Open the bad_usb.ino file with Arduino IDE, change the IP address to your server.
- Flash it into your chip.
- Run the bad_server.py on your computer, or deploy it to your server.
- Plug your chip into target computer.
- Open http://yourserver:80/index to gain a reversed TCP shell, where yourserver is localhost if you run it locally.