diff options
| author | Your Name <you@example.com> | 2022-07-29 18:24:22 +0100 |
|---|---|---|
| committer | Your Name <you@example.com> | 2022-07-29 19:33:31 +0100 |
| commit | 4fdd64d6d6ca98145873057115d059704a79aeeb (patch) | |
| tree | 7a75e7d5ab8848731981bf248dd59832cd7983ba /frida_mode/ts/lib/afl.ts | |
| parent | f2b7104cd6c808c2caceb1314a19f4dbcfd087d7 (diff) | |
| download | afl++-4fdd64d6d6ca98145873057115d059704a79aeeb.tar.gz | |
Added framework for logging register contents at the end of each basic block
Diffstat (limited to 'frida_mode/ts/lib/afl.ts')
| -rw-r--r-- | frida_mode/ts/lib/afl.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/frida_mode/ts/lib/afl.ts b/frida_mode/ts/lib/afl.ts index a858f074..455d4305 100644 --- a/frida_mode/ts/lib/afl.ts +++ b/frida_mode/ts/lib/afl.ts @@ -178,6 +178,15 @@ class Afl { Afl.jsApiSetInstrumentNoOptimize(); } + /** + * See `AFL_FRIDA_INST_REGS_FILE`. This function takes a single `string` as + * an argument. + */ + public static setInstrumentRegsFile(file: string): void { + const buf = Memory.allocUtf8String(file); + Afl.jsApiSetInstrumentRegsFile(buf); + } + /* * See `AFL_FRIDA_INST_SEED` */ @@ -419,6 +428,11 @@ class Afl { "void", []); + private static readonly jsApiSetInstrumentRegsFile = Afl.jsApiGetFunction( + "js_api_set_instrument_regs_file", + "void", + ["pointer"]); + private static readonly jsApiSetInstrumentSeed = Afl.jsApiGetFunction( "js_api_set_instrument_seed", "void", |
