Mantis Advanced Conditional & Button Payload Examples
Combine button triggers, loops, and functions to create modular, interactive payloads.
Button-Armed Payload
hello.mantis
1REM Armed mode: Blink LED and wait for operator trigger2LED_ON3WAIT_FOR_BUTTON_PRESS4LED_OFF56REM Operator clicked button: Execute payload7GUI r8DELAY 5009STRINGLN powershell10DELAY 120011STRINGLN Write-Host 'Payload Triggered by Hardware Button!'Reusable Subroutines with Functions
hello.mantis
1FUNCTION launch_shell(shell_name)2 GUI r3 DELAY 4004 STRINGLN shell_name5 DELAY 10006END_FUNCTION78launch_shell("cmd")9STRINGLN echo Command Prompt Ready.1011launch_shell("powershell")12STRINGLN Write-Output "PowerShell Ready."Related Commands
Last updated on