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

Function CorePluginInit

plugins/warp/src/plugin.rs:182–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180#[no_mangle]
181#[allow(non_snake_case)]
182pub extern "C" fn CorePluginInit() -> bool {
183 Logger::new("WARP").with_level(LevelFilter::Debug).init();
184
185 // Register our matcher settings.
186 MatcherSettings::register();
187
188 // Make sure caches are flushed when the views get destructed.
189 register_cache_destructor();
190
191 workflow::insert_workflow();
192
193 binaryninja::command::register_command(
194 "WARP\\Run Matcher",
195 "Run the matcher manually",
196 workflow::RunMatcher {},
197 );
198
199 binaryninja::command::register_command(
200 "WARP\\Debug\\Cache",
201 "Debug cache sizes... because...",
202 DebugCache {},
203 );
204
205 binaryninja::command::register_command(
206 "WARP\\Debug\\Invalidate Caches",
207 "Invalidate all WARP caches",
208 DebugInvalidateCache {},
209 );
210
211 binaryninja::command::register_command_for_function(
212 "WARP\\Debug\\Function Signature",
213 "Print the entire signature for the function",
214 DebugFunction {},
215 );
216
217 binaryninja::command::register_command_for_function(
218 "WARP\\Debug\\Function Matcher",
219 "Print all possible matches for the function",
220 DebugMatcher {},
221 );
222
223 binaryninja::command::register_command(
224 "WARP\\Debug\\Apply Signature File Types",
225 "Load all types from a signature file and ignore functions",
226 types::LoadTypes {},
227 );
228
229 binaryninja::command::register_command(
230 "WARP\\Load Signature File",
231 "Load file into the matcher, this does NOT kick off matcher analysis",
232 load::LoadSignatureFile {},
233 );
234
235 binaryninja::command::register_command_for_function(
236 "WARP\\Copy Function GUID",
237 "Copy the computed GUID for the function",
238 copy::CopyFunctionGUID {},
239 );

Callers

nothing calls this directly

Calls 6

insert_workflowFunction · 0.85
register_commandFunction · 0.85
with_levelMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected