From 7bdf4dc91b154eb77e444682ff45b71f752211a8 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Tue, 24 Dec 2024 11:28:42 +0100 Subject: [PATCH] renames files (to match sketch naming scheme) and updates makefile to be used on arch linux Arduino.mk was taken from https://github.com/sudar/Arduino-Makefile and installed into /usr/share/arduino/makefile (https://repo.oe7drt.net/dominic/Arduino-Makefile) --- Makefile | 4 +++- badusb.ino => badusb-stick.ino | 6 +++--- ...isableTamperWorks => badusb-stick.ino.disableTamperWorks | 0 badusb.ino.works => badusb-stick.ino.works | 0 4 files changed, 6 insertions(+), 4 deletions(-) rename badusb.ino => badusb-stick.ino (99%) rename badusb.ino.disableTamperWorks => badusb-stick.ino.disableTamperWorks (100%) rename badusb.ino.works => badusb-stick.ino.works (100%) diff --git a/Makefile b/Makefile index 44c8518..8f80d23 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,10 @@ +ARCHITECTURE=avr BOARD_TAG = leonardo USER_LIB_PATH = ./libraries ARDUINO_LIBS = HID Keyboard AVRDUDE_CONF = /etc/avrdude.conf -include /usr/local/share/arduino-makefile/Arduino.mk +# include /usr/local/share/arduino-makefile/Arduino.mk +include /usr/share/arduino/makefile/Arduino.mk diff --git a/badusb.ino b/badusb-stick.ino similarity index 99% rename from badusb.ino rename to badusb-stick.ino index 6979912..82c0205 100644 --- a/badusb.ino +++ b/badusb-stick.ino @@ -49,7 +49,7 @@ void disableTampering() { Keyboard.release('x'); delay(400); - // Viren- und Bedrohungsschutz + // Viren- und Bedrohungsschutz (just hit ENTER) Keyboard.press(KEY_RETURN); delay(KEY_DELAY); Keyboard.release(KEY_RETURN); @@ -86,14 +86,14 @@ void disableTampering() { Keyboard.press(' '); delay(KEY_DELAY); Keyboard.release(' '); - delay(KEY_DELAY); + delay(1400); // yes do it with ALT+j Keyboard.press(KEY_LEFT_ALT); Keyboard.press('j'); delay(KEY_DELAY); Keyboard.releaseAll(); - delay(1200); + delay(1400); // move down to Cloudbasierter Schutz slider diff --git a/badusb.ino.disableTamperWorks b/badusb-stick.ino.disableTamperWorks similarity index 100% rename from badusb.ino.disableTamperWorks rename to badusb-stick.ino.disableTamperWorks diff --git a/badusb.ino.works b/badusb-stick.ino.works similarity index 100% rename from badusb.ino.works rename to badusb-stick.ino.works