Search the Community
Showing results for tags 'generator'.
-
The Duckuino I recently learned that the Arduino Leonardo and the Arduino Micro are both capable of pressing keys as an HID. Instantly I thought of USB Rubber Ducky and Duckyscript. I had some spare time, so I decided to write this, Duckuino, a simple Duckyscript to Arduino converter. It's not very pretty, but it seems to be reliable. Features: Convert Duckyscript to Arduino(Duh!) Basic program memory storage(works better with large programs than traditional SRAM) Arduino code and Duckyscript combo! (fairly buggy in some places) What was that about Arduino code alongside Duckyscript? Due to the nature of the converter, quite a bit of Arduino code can be programmed inside the Duckyscript before conversion. This is useful for things the program doesn't auto-add such as loops and if statements. Known bugs: Letters may occasionally get offsetted For some reason the usage of 'CTRL C' doesn't work but 'CTRL c' does... Examples: Input: DELAY 100 STRING Hello world! I am Duckuino! ENTER CTRL ALT DELETE Output: void setup() { Keyboard.begin(); delay(100); print(F("Hello world! I am Duckuino!")); type(KEY_RETURN); press(KEY_LEFT_CTRL); press(KEY_LEFT_ALT); press(KEY_DELETE); Keyboard.releaseAll(); Keyboard.end(); } void type(int key) { Keyboard.press(key); Keyboard.release(key); } void print(const __FlashStringHelper *value) { Keyboard.print(value); } void loop(){} IMPORTANT NOTE: I am not responsible for anything evil you do or generate with this. Also, this program will only work on Arduinos that support the keyboard library. I'm not the best at Duckyscript so I apologize if I've missed any commands or functions, feel free to contribute and/or download here: https://github.com/Plazmaz/Duckuino If you've made something cool with Duckuino, I'd love to hear about it, send me a PM or post a reply! EDIT: Almost forgot to give credit to http://ctrlaltnarwhal.wordpress.com/2012/10/31/installing-usb-rubber-ducky-on-3rd-party-devices/ for the idea!
- 3 replies
-
- duckyscript
- payload
- (and 7 more)