about summary refs log tree commit diff
path: root/frida_mode/ts
diff options
context:
space:
mode:
Diffstat (limited to 'frida_mode/ts')
-rw-r--r--frida_mode/ts/lib/afl.ts26
-rw-r--r--frida_mode/ts/package.json60
2 files changed, 56 insertions, 30 deletions
diff --git a/frida_mode/ts/lib/afl.ts b/frida_mode/ts/lib/afl.ts
index 6da7fabc..6326c099 100644
--- a/frida_mode/ts/lib/afl.ts
+++ b/frida_mode/ts/lib/afl.ts
@@ -120,6 +120,13 @@ class Afl {
   }
 
   /**
+   * See `AFL_FRIDA_INST_JIT`.
+   */
+  public static setInstrumentJit(): void {
+    Afl.jsApiSetInstrumentJit();
+  }
+
+  /**
    * See `AFL_INST_LIBS`.
    */
   public static setInstrumentLibraries(): void {
@@ -133,6 +140,13 @@ class Afl {
     Afl.jsApiSetInstrumentNoOptimize();
   }
 
+  /*
+   * See `AFL_FRIDA_INST_SEED`
+   */
+  public static setInstrumentSeed(seed: NativePointer): void {
+    Afl.jsApiSetInstrumentSeed(seed);
+  }
+
   /**
    * See `AFL_FRIDA_INST_TRACE_UNIQUE`.
    */
@@ -273,6 +287,11 @@ class Afl {
     "void",
     ["pointer"]);
 
+  private static readonly jsApiSetInstrumentJit = Afl.jsApiGetFunction(
+    "js_api_set_instrument_jit",
+    "void",
+    []);
+
   private static readonly jsApiSetInstrumentLibraries = Afl.jsApiGetFunction(
     "js_api_set_instrument_libraries",
     "void",
@@ -283,6 +302,11 @@ class Afl {
     "void",
     []);
 
+  private static readonly jsApiSetInstrumentSeed = Afl.jsApiGetFunction(
+    "js_api_set_instrument_seed",
+    "void",
+    ["uint64"]);
+
   private static readonly jsApiSetInstrumentTrace = Afl.jsApiGetFunction(
     "js_api_set_instrument_trace",
     "void",
@@ -371,3 +395,5 @@ class Afl {
   }
 
 }
+
+export { Afl };
diff --git a/frida_mode/ts/package.json b/frida_mode/ts/package.json
index 47b693ed..191eb597 100644
--- a/frida_mode/ts/package.json
+++ b/frida_mode/ts/package.json
@@ -1,32 +1,32 @@
 {
-    "name": "@worksbutnottested/aflplusplus-frida",
-    "version": "1.0.0",
-    "description": "AFLplusplus Frida Mode",
-    "main": "./dist/frida.js",
-    "types": "./dist/frida.d.ts",
-    "files": [
-      "/dist/"
-    ],
-    "repository": {
-      "type": "git",
-      "url": "git@github.com:worksbutnottested/AFLplusplus.git"
-    },
-    "publishConfig": {
-      "cache": "~/.npm",
-      "registry": "https://npm.pkg.github.com/@worksbutnottested"
-    },
-    "scripts": {
-      "prepare": "npm run build",
-      "build": "tsc",
-      "lint": "tslint -p tslint.json"
-    },
-    "devDependencies": {
-      "@types/node": "^14.14.2",
-      "typescript": "^4.0.3",
-      "typescript-tslint-plugin": "^0.5.5",
-      "tslint": "^6.1.3"
-    },
-    "dependencies": {
-      "@types/frida-gum": "^16.2.0"
-    }
+  "name": "@worksbutnottested/aflplusplus-frida",
+  "version": "1.0.1",
+  "description": "AFLplusplus Frida Mode",
+  "main": "./dist/afl.js",
+  "types": "./dist/afl.d.ts",
+  "files": [
+    "/dist/"
+  ],
+  "repository": {
+    "type": "git",
+    "url": "git@github.com:worksbutnottested/AFLplusplus.git"
+  },
+  "publishConfig": {
+    "cache": "~/.npm",
+    "registry": "https://npm.pkg.github.com/@worksbutnottested"
+  },
+  "scripts": {
+    "prepare": "npm run build",
+    "build": "tsc",
+    "lint": "tslint -p tslint.json"
+  },
+  "devDependencies": {
+    "@types/node": "^14.14.2",
+    "typescript": "^4.0.3",
+    "typescript-tslint-plugin": "^0.5.5",
+    "tslint": "^6.1.3"
+  },
+  "dependencies": {
+    "@types/frida-gum": "^16.2.0"
   }
+}