Convert arduino uno in "rubber ducky"
Forked from: https://github.com/Lacerda53/duckduino
Changes: ready to use at devices with Latin American/Spain keyboard distribution
sudo ./script.sh
When guided script indicates, upload /ArduinoUNO_HID/Duckduino/Duckduino.ino file on arduino uno card, changing setup() function by anyone you want
In addition, the script refers to "two pins", these are marked below. You should note that they must be bridged together:
apt-get install dfu-programmer
pacman -S dfu-programmer
dnf install dfu-programmer
brew install dfu-programmer
sudo dfu-programmer atmega16u2 erase
sudo dfu-programmer atmega16u2 flash Arduino-usbserial-uno.hex
sudo dfu-programmer atmega16u2 reset
When loading your script, the arduino IDE may show the following error:
avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied
To solve it, you just have to give read and write permissions to that device
sudo chmod a+rw /dev/ttyACM0