Monitor

A Monitor tracks the state of the fuzzing campaign and displays information and statistics to the user. There are many options for Monitors from full-featured TUIs to basic loggers. We will just print out every message we see to the terminal, the simplest possible logger.

Add the use declaration:

#![allow(unused)]
fn main() {
use libafl::prelude::SimpleMonitor;
}

And create the monitor, wrapping a closure that prints its argument:

#![allow(unused)]
fn main() {
let mon = SimpleMonitor::new(|s| println!("{}", s));
}