Mantis Documentation
Karvi Labs · Mantis Documentation · Official GuideWelcome to the official documentation for Karvi Labs Mantis (hardware revision Mantis). This knowledge base covers everything from initial device setup and hardware specifications to the complete Mantis scripting language, dedicated command library, and ready-to-run payload examples.
Karvi Labs Mantis is an open-source, programmable USB HID (Human Interface Device) keystroke injection platform designed and manufactured in India for cybersecurity professionals, blue-team training, penetration testers, educators, and hardware enthusiasts.
When plugged into a target host (Windows, macOS, or Linux), Mantis enumerates as a standard USB keyboard to execute pre-compiled automation scripts at machine speed without requiring external drivers or client software.
Documentation Structure
The documentation is organized into six core sections designed for fast searchability and practical reference:
Unbox Mantis, configure boot modes, and upload your first payload in six simple steps.
Getting StartedMaster the compiled .mantis scripting language, syntax rules, control flow, functions, and timing.
Mantis Language GuideDedicated reference pages for every command: STRING, DELAY, GUI, ENTER, loop structures, and more.
Commands LibraryTested script templates for text injection, keyboard shortcuts, simulated human typing, and branching logic.
Payload ExamplesDiagnose USB detection issues, compiler errors, upload problems, and payload execution mismatches.
Troubleshooting GuideSTM32F103 Cortex-M3 specs, SPI NOR flash variants, hardware buttons, power ratings, and pinouts.
Technical SpecificationsCore Capabilities of Mantis
- Host-Compiled Bytecode Architecture (HCBA): Scripts are compiled into compact bytecode within Karvi Studio before uploading to the device, ensuring instant execution and zero script-parsing overhead on the microcontroller.
- Native USB HID Keyboard Emulation: Trusted by all major operating systems as a standard USB input device.
- Dual Boot Modes: Instant switching between Attack Mode (payload execution) and Upload Mode (USB CDC serial payload flashing) via onboard physical controls.
- Scriptable Hardware Features: Full script control over onboard status LEDs, physical button press events, and variable execution speeds (
$Human,$Fastest,$Random). - Engineered & Built in India: High-performance hardware automation toolchain built specifically for students, makers, and cybersecurity researchers.
Responsible Use Notice: Mantis is engineered strictly for authorized security assessments, penetration testing, educational laboratories, and administrative automation. Always obtain explicit written permission before connecting Mantis to any computer or network you do not own.
Quick Navigation
- Jump to Command Reference:
Mantis Command Referenceor browse individual command pages in theCommands Library. - Download the IDE: Get
Karvi Studioto write, compile, simulate, and flash payloads. - Explore Hardware Layout: View all onboard components on the
Device Tour.