Skip to content

Commit b973b2d

Browse files
committed
why, why, why?
1 parent 48726a1 commit b973b2d

3 files changed

Lines changed: 17 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ thiserror = "1.0.43"
2222
coolfindpattern = "0.1.6"
2323
binary-search = "0.1.2"
2424

25+
26+
# Due to a breaking change in the binaryninja crate, you will also need to uncomment the relevant portion of code in the entrypoint.
2527
# Dev
2628
# binaryninja = { git = "https://github.com/Vector35/binaryninja-api", branch = "dev" }
2729
# Stable

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# binja_coolsigmaker
22

3+
(**I apologize for the inconvenience, but due to a breaking change in the binaryninja crate, you will need to make a change to the entry point depending on which branch you build for.**)
4+
35
We all know signature scanning can be extremely useful. Sadly, the two public offerings for Binja are either very slow, or crash extremely often.
46

57
This is why I wrote this plugin. It's a signature scanning and creating plugin for x86 (more archs are planned!), written in Rust. It's extremely fast, supports multiple signature styles, and works like a charm.

src/lib.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -989,9 +989,19 @@ impl Command for SigFinderCommand {
989989

990990
#[no_mangle]
991991
pub extern "C" fn CorePluginInit() -> bool {
992-
binaryninja::logger::Logger::new("coolsigmaker")
993-
.with_level(log::LevelFilter::Info)
994-
.init();
992+
993+
// Due to a breaking change in binaryninja-api, you will need to edit this line depending on which version you are building for.
994+
995+
// For dev branch:
996+
// binaryninja::logger::Logger::new("coolsigmaker")
997+
// .with_level(log::LevelFilter::Info)
998+
// .init();
999+
1000+
// For stable branch:
1001+
// binaryninja::logger::init(log::LevelFilter::Info).unwrap();
1002+
1003+
// And uncomment this. Sorry for the inconvenience.
1004+
compile_error!("sadly, due to a breaking change in the api crate, you will need to make a change to the code above this error.");
9951005

9961006
// TODO: (maybe) if signature not found, maybe go back a few instructions and attempt to create a signature with an offset.
9971007
// TODO: introduce a setting for "dumb" searches, where we also search non-executable segments for uniqueness, incase the user doesn't want to check the segments before scanning them.

0 commit comments

Comments
 (0)