diff options
author | Dominik Maier <domenukk@gmail.com> | 2022-01-26 01:33:58 +0100 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2022-01-26 01:33:58 +0100 |
commit | eebc2f4f1e8985af575d66a01e7d866ecdc10352 (patch) | |
tree | 386affeb0b19cc13b51978c0138b6d20369dee90 /unicorn_mode | |
parent | 016bdc36bb7186e6c74e10aada9a5b73ff1ff5bc (diff) | |
download | AFLplusplus-eebc2f4f1e8985af575d66a01e7d866ecdc10352.tar.gz |
adapt test harness to unicornafl for uc2
Diffstat (limited to 'unicorn_mode')
-rw-r--r-- | unicorn_mode/samples/python_simple/simple_test_harness.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unicorn_mode/samples/python_simple/simple_test_harness.py b/unicorn_mode/samples/python_simple/simple_test_harness.py index 8c5239b6..8758192e 100644 --- a/unicorn_mode/samples/python_simple/simple_test_harness.py +++ b/unicorn_mode/samples/python_simple/simple_test_harness.py @@ -19,7 +19,7 @@ import os import signal from unicornafl import * -from unicornafl.mips_const import * +from unicorn.mips_const import * # Path to the file containing the binary to emulate BINARY_FILE = os.path.join( @@ -156,7 +156,7 @@ def main(): uc.mem_write(DATA_ADDRESS, input) # Start the fuzzer. - uc.afl_fuzz(args.input_file, place_input_callback, [end_address]) + uc_afl_fuzz(uc=uc, input_file=args.input_file, place_input_callback=place_input_callback, exits=[end_address]) if __name__ == "__main__": |