diff options
| author | Your Name <you@example.com> | 2021-08-27 18:38:22 +0100 |
|---|---|---|
| committer | Your Name <you@example.com> | 2021-08-27 18:38:58 +0100 |
| commit | 5559dd9c244848a1dbb19981f0295774f4e176d9 (patch) | |
| tree | 95b66fa3fe4afde786a7ec7567388a53eccccaaa /frida_mode/ts/lib/afl.ts | |
| parent | 7a2f81e0d992cf0f20d8d2fed26310c03c8b4fa9 (diff) | |
| download | afl++-5559dd9c244848a1dbb19981f0295774f4e176d9.tar.gz | |
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", |
