MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / main

Function main

rust/examples/flowgraph.rs:41–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41fn main() {
42 println!("Starting session...");
43 // This loads all the core architecture, platform, etc plugins
44 let headless_session =
45 binaryninja::headless::Session::new().expect("Failed to initialize session");
46
47 println!("Loading binary...");
48 let bv = headless_session
49 .load("/bin/cat")
50 .expect("Couldn't open `/bin/cat`");
51
52 // TODO: Register BNInteractionHandlerCallbacks with showGraphReport pointing at our function
53 // TODO: Idea: register showGraphReport that dumps a dotgraph to stdin
54
55 test_graph(&bv);
56}

Callers

nothing calls this directly

Calls 2

test_graphFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected