Event Manager
The EventManager
handles events that occur during fuzzing and takes action as needed. For a single-core
local fuzzer, this handling is simple, it primarily passes events to the Monitor
to
be displayed, but there are complex event managers that handle synchronization across
machines, restart the fuzzer on specific events, and more.
We'll use the SimpleEventmanager
. Add the use
declaration:
#![allow(unused)] fn main() { use libafl::prelude::SimpleEventManager; }
And create the manager:
#![allow(unused)] fn main() { let mut mgr = SimpleEventManager::new(mon); }