pub fn script_helper(func: fn())
Expand description
Prelued-postlued helper function (calls init
and shutdown
for you)
binaryninja::headless::script_helper(|| {
let cat = binaryninja::load("/bin/cat").expect("Couldn't open `/bin/cat`");
for function in cat.functions().iter() {
println!(" `{}`", function.symbol().full_name());
}
});