ZeroTrace HID
Repeat Block
Loop a sequence of commands a fixed number of times
Wrap commands in repeatStart <n> ... repeatEnd to run them n times.
repeatStart 3
writeLn "still here"
delay 1000
repeatEnd
Set n to a large value for effectively-infinite loops; the firmware caps repeat counts at 0xFFFFFFFF (over four billion). Stop a runaway script via the web UI or by power-cycling.
Common patterns
- Brute-force / fuzzing — combine with
_$random()to drive randomized input. - Persistence — re-arm a payload after a host reboot, paired with
autostart. - Watchdog — periodic check + branch using
IFand detected state.
repeat is a block, not a primitive — every command between repeatStart and repeatEnd executes in order each iteration. See Blocks for nesting rules.