From 56996b0617c499178b463eb27973e7b12a056ffc Mon Sep 17 00:00:00 2001 From: Cindy Xiao Date: Sat, 11 Feb 2023 11:25:38 -0800 Subject: Rust API : Add minidump example Squashed commit message history: Initial commit chore: Add files from cargo new, Binary Ninja Rust API template chore: Add README feat: Add basic plugin registration code feat: Add command to print memory information from minidump I can't believe this actually worked the first time feat: Set up registration of Minidump BinaryView type Also set architecture based on contents of MinidumpSystemInfo stream in the minidump. feat: Perform basic segment mapping from MinidumpMemoryList, MinidumpMemory64List feat: Read and apply memory segment protection info from MinidumpMemoryInfoList feat: Log action to add segments at info level docs: Update readme with build instructions, screenshot style: Minor cleanup of types refactor: Remove use of unwrap when parsing raw BaseRVA docs: Add doc comments to view module feat: More logging in print_memory_information command, remove unwrap refactor: Add struct for representing memory protection flags fix: Correct information about difference between MinidumpMemoryList, MinidumpMemory64List MinidumpMemory64List is always used for "full dumps", i.e. dumps which include the full process memory. It does not have to do with 64-bit segments specifically. docs: Clarify Windows-only support for now in README fix: First try to find full dump memory in MinidumpMemory64List before looking for partial dump memory in MinidumpMemoryList docs: Update README with examples of how to generate minidumps feat: Parse module information in MinidumpModuleList, and add modules as sections docs: Add information about unsupported features docs: Update README with screenshots, explanation of memory map docs: Update TODOs in BinaryViewBase impl Rust Minidump example : Clippy appeasements; remove network dependency --- rust/examples/minidump/Cargo.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rust/examples/minidump/Cargo.toml (limited to 'rust/examples/minidump/Cargo.toml') diff --git a/rust/examples/minidump/Cargo.toml b/rust/examples/minidump/Cargo.toml new file mode 100644 index 00000000..a1ff71ab --- /dev/null +++ b/rust/examples/minidump/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "minidump_bn" +version = "0.1.0" +edition = "2021" + +[lib] +crate-type = ["cdylib"] + +[dependencies] +binaryninja = {path="../../"} +log = "0.4.17" +minidump = "0.15.2" -- cgit v1.3.1