Skip to contentSkip to Content
Commands libraryWAIT_FOR_BUTTON_PRESS

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 LED
2LED_ON
3WAIT_FOR_BUTTON_PRESS
4
5REM Once clicked, turn off LED and execute payload
6LED_OFF
7GUI r
8DELAY 500
9STRINGLN notepad

Last updated on