diff options
| author | van Hauser <vh@thc.org> | 2022-04-03 09:30:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-03 09:30:23 +0200 |
| commit | 881aef21fd6ca3f3bcf0847587d4d6d86f3a69db (patch) | |
| tree | d076384dedf423a4bb7c3d1507cb07281ebc2865 /unicorn_mode/samples | |
| parent | 1d4f1e48797c064ee71441ba555b29fc3f467983 (diff) | |
| parent | c4363dd8b3d19a3e4bab8bc1fca1708ae2ff7899 (diff) | |
| download | afl++-881aef21fd6ca3f3bcf0847587d4d6d86f3a69db.tar.gz | |
Merge pull request #1362 from AFLplusplus/dev
push to stable
Diffstat (limited to 'unicorn_mode/samples')
| -rw-r--r-- | unicorn_mode/samples/compcov_x64/compcov_test_harness.py | 4 | ||||
| -rw-r--r-- | unicorn_mode/samples/speedtest/python/harness.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/unicorn_mode/samples/compcov_x64/compcov_test_harness.py b/unicorn_mode/samples/compcov_x64/compcov_test_harness.py index 52f0a286..ce96b882 100644 --- a/unicorn_mode/samples/compcov_x64/compcov_test_harness.py +++ b/unicorn_mode/samples/compcov_x64/compcov_test_harness.py @@ -19,7 +19,7 @@ import os import signal from unicornafl import * -from unicornafl.x86_const import * +from unicorn.x86_const import * # Path to the file containing the binary to emulate BINARY_FILE = os.path.join( @@ -160,7 +160,7 @@ def main(): # Emulate the code, allowing it to process the mutated input print("Starting the AFL fuzz") - uc.afl_fuzz( + uc_afl_fuzz(uc, input_file=args.input_file, place_input_callback=place_input_callback, exits=[end_address], diff --git a/unicorn_mode/samples/speedtest/python/harness.py b/unicorn_mode/samples/speedtest/python/harness.py index 801ef4d1..604adf39 100644 --- a/unicorn_mode/samples/speedtest/python/harness.py +++ b/unicorn_mode/samples/speedtest/python/harness.py @@ -20,8 +20,8 @@ import os import struct from unicornafl import * -from unicornafl.unicorn_const import UC_ARCH_X86, UC_HOOK_CODE, UC_MODE_64 -from unicornafl.x86_const import ( +from unicorn.unicorn_const import UC_ARCH_X86, UC_HOOK_CODE, UC_MODE_64 +from unicorn.x86_const import ( UC_X86_REG_RAX, UC_X86_REG_RDI, UC_X86_REG_RIP, |
