mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 11:58:08 +00:00
Fix sample script for Unicornafl2 (#1329)
* Fix the sample script for Unicornafl2 * Make it compatible with unicornafl1 * Sync to the latest unicornafl * Update UNICORNAFL_VERSION * Sync to latest unicornafl to resolve linkage problem * Switch to ucafl2
This commit is contained in:
@ -1 +1 @@
|
||||
46879845
|
||||
a44fa94488d01aba60401ccf81f8bebcce685bf2
|
||||
|
@ -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],
|
||||
|
@ -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,
|
||||
|
Submodule unicorn_mode/unicornafl updated: 468798455a...a44fa94488
Reference in New Issue
Block a user