mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 10:38:07 +00:00
adapt test harness to unicornafl for uc2
This commit is contained in:
@ -19,7 +19,7 @@ import os
|
|||||||
import signal
|
import signal
|
||||||
|
|
||||||
from unicornafl import *
|
from unicornafl import *
|
||||||
from unicornafl.mips_const import *
|
from unicorn.mips_const import *
|
||||||
|
|
||||||
# Path to the file containing the binary to emulate
|
# Path to the file containing the binary to emulate
|
||||||
BINARY_FILE = os.path.join(
|
BINARY_FILE = os.path.join(
|
||||||
@ -156,7 +156,7 @@ def main():
|
|||||||
uc.mem_write(DATA_ADDRESS, input)
|
uc.mem_write(DATA_ADDRESS, input)
|
||||||
|
|
||||||
# Start the fuzzer.
|
# 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__":
|
if __name__ == "__main__":
|
||||||
|
Reference in New Issue
Block a user