whamm 0.1.0

A framework for 'Wasm Application Monitoring and Manipulation'
Documentation
1
2
3
4
5
6
7
use toggle;

// The second call to `should_inject` takes the 'false', so the predicate is always 'true'
wasm:opcode:*:before / @static toggle.should_inject(fid as i32, @static toggle.get_value()) as bool / {
    report var val: i32;
    val = @static toggle.should_inject(fid as i32, @static toggle.get_value());
}