aboutsummaryrefslogtreecommitdiff
path: root/frida_mode/ts/lib
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-11-15 17:14:04 +0000
committerYour Name <you@example.com>2021-11-15 17:14:04 +0000
commite1d3fe30dec150aa7111cb623a7362a8026963a8 (patch)
tree742fa445c7dcf1bf868bd025ee7680dd13b27604 /frida_mode/ts/lib
parentde90fd652e01797f129bfc23c24fa766b4c756a2 (diff)
downloadafl++-e1d3fe30dec150aa7111cb623a7362a8026963a8.tar.gz
Changes to allow configuration of stalker adjacent blocks
Diffstat (limited to 'frida_mode/ts/lib')
-rw-r--r--frida_mode/ts/lib/afl.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/frida_mode/ts/lib/afl.ts b/frida_mode/ts/lib/afl.ts
index 3639d670..e20ad3ec 100644
--- a/frida_mode/ts/lib/afl.ts
+++ b/frida_mode/ts/lib/afl.ts
@@ -241,6 +241,13 @@ class Afl {
Afl.jsApiSetSeccompFile(buf);
}
+ /**
+ * See `AFL_FRIDA_STALKER_ADJACENT_BLOCKS`.
+ */
+ public static setStalkerAdjacentBlocks(val: number): void {
+ Afl.jsApiSetStalkerAdjacentBlocks(val);
+ }
+
/*
* Set a function to be called for each instruction which is instrumented
* by AFL FRIDA mode.
@@ -425,6 +432,11 @@ class Afl {
"void",
["pointer"]);
+ private static readonly jsApiSetStalkerAdjacentBlocks = Afl.jsApiGetFunction(
+ "js_api_set_stalker_adjacent_blocks",
+ "void",
+ ["uint32"]);
+
private static readonly jsApiSetStalkerIcEntries = Afl.jsApiGetFunction(
"js_api_set_stalker_ic_entries",
"void",