diff options
author | van Hauser <vh@thc.org> | 2021-08-28 11:10:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-28 11:10:09 +0200 |
commit | fe5b2c355f097705bf0bd7b35b0484b16f87964f (patch) | |
tree | 95b66fa3fe4afde786a7ec7567388a53eccccaaa /frida_mode/ts/lib/afl.ts | |
parent | 7a2f81e0d992cf0f20d8d2fed26310c03c8b4fa9 (diff) | |
parent | 5559dd9c244848a1dbb19981f0295774f4e176d9 (diff) | |
download | afl++-fe5b2c355f097705bf0bd7b35b0484b16f87964f.tar.gz |
Merge pull request #1080 from WorksButNotTested/seccomp
Added seccomp support
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", |