Bluetooth Rubber Ducky (https://forums.hak5.org/topic/41678-bluetooth-rubber-ducky/)
Dependencies: BLE_API mbed nRF51822
Fork of microbit_presenter by
- Backspace = x08
- (F5) = \x86
- (F11) = \x8A
- (F12) = \x8B
- Print Screen = \x8C
- Application Program Command (CTRL+8) \x9F
- (‽)RALT LCTRL RSHIFT LSHIFT F1 LCTRL = \u203d + \u2038 (v.similar)
- Down F1 LCTRL = \u2016
- F1 F1 LCTRL = \u2000
- LALT LSHIFT F2 LCTRL = \u206F
- Insert = \x90
- Home = \x91
- Pageup = \x92
- PageDown = \x93
- Right Shift + Left Control = \uF8FF
- Alt Shift + F (File >) = \x99
- CTRL+B = \x98
- Right Ctrl = \x9a
- Escape + stuff, \x9d
- Test on another PC (rwin) \x9c
- Scroll = \x8d
- Capslock = \x8e
- Numlock = \x8f
- Left = \x95
- Right = \x94
- Up = \x97
- Down = \x96
Full list of special command characters here.
Diff: examples_common.h
- Revision:
- 0:cb1939018833
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples_common.h Mon Nov 02 18:25:58 2015 +0000 @@ -0,0 +1,70 @@ +/* mbed Microcontroller Library + * Copyright (c) 2015 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef HID_EXAMPLES_COMMON_H_ +#define HID_EXAMPLES_COMMON_H_ + +/** + * Functions and configuration common to all HID demos + */ + +#include "ble/BLE.h" + +#include "HIDServiceBase.h" + +/** + * IO capabilities of the device. During development, you most likely want "JustWorks", which means + * no IO capabilities. + * It is also possible to use IO_CAPS_DISPLAY_ONLY to generate and show a pincode on the serial + * output. + */ +#ifndef HID_SECURITY_IOCAPS +#define HID_SECURITY_IOCAPS (SecurityManager::IO_CAPS_NONE) +#endif + +/** + * Security level. MITM disabled forces "Just Works". If you require MITM, HID_SECURITY_IOCAPS must + * be at least IO_CAPS_DISPLAY_ONLY. + */ +#ifndef HID_SECURITY_REQUIRE_MITM +#define HID_SECURITY_REQUIRE_MITM false +#endif + +/** + * Disable debug messages by setting NDEBUG + */ +#ifndef NDEBUG +#define HID_DEBUG(...) printf(__VA_ARGS__) +#else +#define HID_DEBUG(...) +#endif + +/** + * Initialize security manager: set callback functions and required security level + */ +void initializeSecurity(BLE &ble); + +/** + * - Initialize auxiliary services required by the HID-over-GATT Profile. + * - Initialize common Gap advertisement. + * + * Demos only have to set a custom device name and appearance, and their HID + * service. + */ +void initializeHOGP(BLE &ble); + +#endif /* !BLE_HID_COMMON_H_ */ +