Mantis STRINGLN Command
The Mantis STRINGLN command (String Line) types a sequence of characters through the USB HID interface and immediately follows it with an ENTER keypress.
It is a shorthand that combines STRING <text> and ENTER into a single concise instruction, making terminal automation and command-line payloads cleaner and more compact.
What It Does
- Emulates keyboard typing for the specified string.
- Automatically presses and releases the
ENTERkey after the final character. - Eliminates the need for a separate
ENTERline after every command.
Syntax & Parameters
hello.mantis
1STRINGLN <text>Parameters
<text>(required): The character string to be typed before submitting with Enter.
Examples & Payload Snippets
Terminal Automation Example
hello.mantis
1REM Open Terminal on Linux / macOS2CTRL ALT t3DELAY 100045REM Run system information commands6STRINGLN whoami7DELAY 5008STRINGLN uname -a9DELAY 50010STRINGLN df -hComparison: STRING vs STRINGLN
hello.mantis
1REM Equivalent approaches:23REM Approach 1: Using STRING + ENTER (2 lines)4STRING powershell.exe5ENTER67REM Approach 2: Using STRINGLN (1 line)8STRINGLN powershell.exeExpected Behavior
- The target host receives each character sequentially at the configured typing pace.
- Immediately upon typing the last character, Mantis dispatches an
ENTERHID scan code. - If the host terminal requires processing time after receiving Enter, follow
STRINGLNwith aDELAY.
Common Mistakes & Troubleshooting
- Immediate Submission on Form Fields: In web browsers or multi-field forms,
STRINGLNwill trigger form submission instead of tab navigation. For multi-field forms, useSTRINGcombined withTAB. - Rapid Terminal Submissions: When executing consecutive
STRINGLNstatements, add a smallDELAY 300between lines to allow the target shell to finish processing the previous command.
Related Commands
STRING— Type text without pressing Enter.FAST_STRING— Fast batched text injection.ENTER— Standalone Enter keypress.DELAY— Pause script execution.
Last updated on