Mantis WAIT_FOR_BUTTON_PRESS Command
The WAIT_FOR_BUTTON_PRESS command halts script execution indefinitely until the physical button on the Mantis hardware is clicked.
This is useful for staged deployments, multi-step payloads, or security training where user interaction is required before execution proceeds.
Syntax & Examples
hello.mantis
1REM Signal waiting state by turning on LED2LED_ON3WAIT_FOR_BUTTON_PRESS45REM Once clicked, turn off LED and execute payload6LED_OFF7GUI r8DELAY 5009STRINGLN notepadRelated Commands
BUTTON_DEF— Define an on-press button handler.LED_ON / LED_OFF— Control status LED.IF / ELSE— Check button condition.
Last updated on