diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-01-14 13:58:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-14 13:58:36 +0100 |
commit | b0492ba642e7afb9a1269c27a264d11e5c2e6ec5 (patch) | |
tree | 2bbdc0433b3df07271a0e364f25066b73118ee75 | |
parent | 4b83b2696ee56884cd7a7e5e10517eb186a116e5 (diff) | |
download | afl++-b0492ba642e7afb9a1269c27a264d11e5c2e6ec5.tar.gz |
Fixed description of unicorn harness.c
-rw-r--r-- | unicorn_mode/samples/c/harness.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/unicorn_mode/samples/c/harness.c b/unicorn_mode/samples/c/harness.c index cc81ba7f..a987b8e1 100644 --- a/unicorn_mode/samples/c/harness.c +++ b/unicorn_mode/samples/c/harness.c @@ -1,11 +1,10 @@ /* Simple test harness for AFL++'s unicornafl c mode. - This loads the simple_target.bin binary (precompiled as MIPS code) into + This loads the simple_target_x86_64 binary into Unicorn's memory map for emulation, places the specified input into - simple_target's buffer (hardcoded to be at 0x300000), and executes 'main()'. - If any crashes occur during emulation, this script throws a matching signal - to tell AFL that a crash occurred. + argv[1], sets up argv, and argc and executes 'main()'. + If run inside AFL, afl_fuzz automatically does the "right thing" Run under AFL as follows: |