ZeroTrace HID
Timed Execution
delay, scheduling, and rate-limited payloads
The delay primitive pauses script execution for a specified number of milliseconds.
writeLn "first"
delay 1000
writeLn "second"
Patterns
Wait for app to open
press "win r"
delay 800 # let Run dialog open
writeLn "cmd"
delay 500 # let cmd window open
writeLn "whoami"
Rate-limit credential attempts
repeatStart 5
writeLn "_$random_number()_$random_number()_$random_number()_$random_number()"
delay 30000 # 30 s between attempts to dodge lockout
repeatEnd
Schedule via autostart + delay
The simplest "fire at time T" payload is an autostart script that delays for the time-to-fire on boot, then executes:
delay 600000 # 10 minutes after boot
writeLn "payload"
Combine with a power-on trigger (manual, scheduled outlet, etc.) for delayed execution without an RTC.
Limits
- Minimum effective delay: 1 ms (lower values round up).
- Maximum:
0xFFFFFFFFms (~49 days). delayis blocking — no other commands run during the wait. For non-blocking behavior, use TraceNetwork events to coordinate timing across devices.