fix unicorn python test path
MODIFY
unicorn_mode/build_unicorn_support.sh
unicorn_mode/build_unicorn_support.sh
@@ -212,7 +212,7 @@ echo "[*] Unicornafl bindings installed successfully."
# Compile the sample, run it, verify that it works!
echo "[*] Testing unicornafl python functionality by running a sample test harness"
-cd ../samples/simple || echo "Cannot cd"
+cd ../samples/python_simple || echo "Cannot cd"
# Run afl-showmap on the sample application. If anything comes out then it must have worked!
unset AFL_INST_RATIO

MODIFY
unicorn_mode/samples/c/harness.c
unicorn_mode/samples/c/harness.c
Run under AFL as follows:
- $ cd <afl_path>/unicorn_mode/samples/simple/
+ $ cd <afl_path>/unicorn_mode/samples/c
$ make
$ ../../../afl-fuzz -m none -i sample_inputs -o out -- ./harness @@
*/

MODIFY
unicorn_mode/samples/compcov_x64/compcov_test_harness.py
unicorn_mode/samples/compcov_x64/compcov_test_harness.py
Run under AFL as follows:
- $ cd <afl_path>/unicorn_mode/samples/simple/
+ $ cd <afl_path>/unicorn_mode/samples/python_simple
$ AFL_COMPCOV_LEVEL=2 ../../../afl-fuzz -U -m none -i ./sample_inputs -o ./output -- python compcov_test_harness.py @@
"""

MODIFY
unicorn_mode/samples/python_simple/simple_test_harness.py
unicorn_mode/samples/python_simple/simple_test_harness.py
Run under AFL as follows:
- $ cd <afl_path>/unicorn_mode/samples/simple/
+ $ cd <afl_path>/unicorn_mode/samples/python_simple
$ ../../../afl-fuzz -U -m none -i ./sample_inputs -o ./output -- python simple_test_harness.py @@
"""

MODIFY
unicorn_mode/samples/python_simple/simple_test_harness_alt.py
unicorn_mode/samples/python_simple/simple_test_harness_alt.py
Run under AFL as follows:
- $ cd <afl_path>/unicorn_mode/samples/simple/
+ $ cd <afl_path>/unicorn_mode/samples/python_simple
$ ../../../afl-fuzz -U -m none -i ./sample_inputs -o ./output -- python simple_test_harness_alt.py @@
"""

fix unicorn python test path