diff options
author | van Hauser <vh@thc.org> | 2021-09-01 08:41:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 08:41:21 +0200 |
commit | 773baf9391ff5f1793deb7968366819e7fa07adc (patch) | |
tree | 08fcc9ebc0a70f545cbc149385dfb9a4670eada8 /frida_mode/ts/lib/afl.ts | |
parent | 353d402aaf9296c7dbd47e66fbbc6e59179c4e44 (diff) | |
parent | d4a8a9df699aa018755f4948e2add508be44b8b2 (diff) | |
download | afl++-773baf9391ff5f1793deb7968366819e7fa07adc.tar.gz |
Merge pull request #1084 from AFLplusplus/dev
push to stable
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 c722f558..8a1ebf1b 100644 --- a/frida_mode/ts/lib/afl.ts +++ b/frida_mode/ts/lib/afl.ts @@ -225,6 +225,15 @@ class Afl { Afl.jsApiSetPrefetchDisable(); } + /** + * See `AFL_FRIDA_SECCOMP_FILE`. This function takes a single `string` as + * an argument. + */ + public static setSeccompFile(file: string): void { + const buf = Memory.allocUtf8String(file); + Afl.jsApiSetSeccompFile(buf); + } + /* * Set a function to be called for each instruction which is instrumented * by AFL FRIDA mode. @@ -387,6 +396,11 @@ class Afl { "void", []); + private static readonly jsApiSetSeccompFile = Afl.jsApiGetFunction( + "js_api_set_seccomp_file", + "void", + ["pointer"]); + private static readonly jsApiSetStalkerCallback = Afl.jsApiGetFunction( "js_api_set_stalker_callback", "void", |