diff options
| author | WorksButNotTested <62701594+WorksButNotTested@users.noreply.github.com> | 2021-06-24 18:46:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-24 19:46:08 +0200 |
| commit | f348a35ec6cece54796599865c683505a475fe88 (patch) | |
| tree | 38b46a34787b467a203d7432a8a3886b4123d621 /frida_mode/test/js/test.js | |
| parent | 4057134d3c6ed202d426ebdcc9aa4edf3e122bda (diff) | |
| download | afl++-f348a35ec6cece54796599865c683505a475fe88.tar.gz | |
Added JS support (#992)
* Added JS support * Added some documentation Co-authored-by: Your Name <you@example.com>
Diffstat (limited to 'frida_mode/test/js/test.js')
| -rw-r--r-- | frida_mode/test/js/test.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/frida_mode/test/js/test.js b/frida_mode/test/js/test.js new file mode 100644 index 00000000..f10ef2d1 --- /dev/null +++ b/frida_mode/test/js/test.js @@ -0,0 +1,20 @@ +Afl.print('******************'); +Afl.print('* AFL FRIDA MODE *'); +Afl.print('******************'); +Afl.print(''); + +Afl.print(`PID: ${Process.id}`); + +new ModuleMap().values().forEach(m => { + Afl.print(`${m.base}-${m.base.add(m.size)} ${m.name}`); +}); + +const entry_point = DebugSymbol.fromName('run'); +Afl.print(`entry_point: ${entry_point.address}`); + +Afl.setEntryPoint(entry_point.address); + +// Afl.error('HARD NOPE'); + +Afl.done(); +Afl.print("done"); |
