|
Mitmgate v0.0.0+dev.3
Man in the Middle Keylogger and Injector
|
Interface for USB Keyboard HID operations. More...
#include "../typedef.h"Go to the source code of this file.
Classes | |
| struct | hid_keyboard_packet |
| The standard 8-byte packet used by USB Keyboards (Boot Protocol). More... | |
Enumerations | |
| enum | usb_status { USB_OK = 0 , USB_ERROR_NO_DEVICE = -1 , USB_ERROR_READ_FAIL = -2 , USB_END_OF_STREAM = -3 } |
| Status codes for USB keyboard operations. More... | |
Functions | |
| int | usb_keyboard_init (void) |
| Initializes the keyboard subsystem. | |
| int | usb_keyboard_read_packet (hid_keyboard_packet *out_packet) |
| Reads a single HID packet from the input stream. | |
| void | usb_keyboard_cleanup (void) |
| Cleans up resources and disconnects the keyboard subsystem. | |
Interface for USB Keyboard HID operations.
Defines the standard HID structures and function prototypes for initializing, reading from, and cleaning up a virtual or physical USB keyboard interface.
| enum usb_status |
| void usb_keyboard_cleanup | ( | void | ) |
Cleans up resources and disconnects the keyboard subsystem.
Cleans up resources and disconnects the keyboard subsystem.
| int usb_keyboard_init | ( | void | ) |
Initializes the keyboard subsystem.
Initializes the keyboard subsystem.
Resets the mock data index to the beginning.
| int usb_keyboard_read_packet | ( | hid_keyboard_packet * | out_packet | ) |
Reads a single HID packet from the input stream.
| out_packet | Pointer to the structure where the packet data will be written. |
Reads a single HID packet from the input stream.
Simulates a USB polling delay using Sleep(100).
| out_packet | Destination for the key data. |