Arion 1.0.2-alpha
A high-performance C++ framework for emulating executable binaries.
 
Loading...
Searching...
No Matches
arion::ARION_AFL_PARAM Struct Reference

This structure is placed in the UnicornAFL user_data parameter. More...

#include <arion_afl.hpp>

Public Member Functions

 ARION_AFL_PARAM (std::weak_ptr< Arion > arion, std::shared_ptr< ARION_CONTEXT > ctxt, ARION_MEM_STRATEGY mem_strategy, ARION_AFL_INPUT_CALLBACK input_callback, ARION_AFL_CRASH_CALLBACK crash_callback, void *user_data)
 

Public Attributes

std::weak_ptr< Arionarion
 The Arion instance being fuzzed.
 
std::shared_ptr< ARION_CONTEXTctxt
 The original context of the Arion instance, before fuzzing started.
 
ARION_MEM_STRATEGY mem_strategy
 The memory restoring strategy.
 
ARION_AFL_INPUT_CALLBACK input_callback
 
ARION_AFL_CRASH_CALLBACK crash_callback
 This callback gets triggered at each target crash detected by AFL.
 
void * user_data
 Optional user-defined data passed to the hook.
 

Detailed Description

This structure is placed in the UnicornAFL user_data parameter.

Constructor & Destructor Documentation

◆ ARION_AFL_PARAM()

arion::ARION_AFL_PARAM::ARION_AFL_PARAM ( std::weak_ptr< Arion arion,
std::shared_ptr< ARION_CONTEXT ctxt,
ARION_MEM_STRATEGY  mem_strategy,
ARION_AFL_INPUT_CALLBACK  input_callback,
ARION_AFL_CRASH_CALLBACK  crash_callback,
void *  user_data 
)
inline

Builder for ARION_AFL_PARAM instances.

Parameters
[in]arionThe Arion instance being fuzzed.
[in]ctxtThe original context of the Arion instance, before fuzzing started.
[in]mem_strategyThe memory restoring strategy.
[in]input_callbackThis callback gets triggered at each input generation by AFL, allowing the user to inject the input in the Arion instance.
[in]crash_callbackThis callback gets triggered at each target crash detected by AFL.
[in]user_dataOptional user-defined data passed to the hook.

Member Data Documentation

◆ arion

std::weak_ptr<Arion> arion::ARION_AFL_PARAM::arion

The Arion instance being fuzzed.

◆ crash_callback

ARION_AFL_CRASH_CALLBACK arion::ARION_AFL_PARAM::crash_callback

This callback gets triggered at each target crash detected by AFL.

◆ ctxt

std::shared_ptr<ARION_CONTEXT> arion::ARION_AFL_PARAM::ctxt

The original context of the Arion instance, before fuzzing started.

◆ input_callback

ARION_AFL_INPUT_CALLBACK arion::ARION_AFL_PARAM::input_callback

This callback gets triggered at each input generation by AFL, allowing the user to inject the input in the Arion instance.

◆ mem_strategy

ARION_MEM_STRATEGY arion::ARION_AFL_PARAM::mem_strategy

The memory restoring strategy.

◆ user_data

void* arion::ARION_AFL_PARAM::user_data

Optional user-defined data passed to the hook.


The documentation for this struct was generated from the following file: