idakit 0.2.0

Idiomatic Rust bindings for IDA Pro's idalib kernel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Record EULA acceptance into `$HOME/.idapro`, once. Headless `idalib` refuses to open a
//! database until the agreement is accepted, so a fresh home needs this run before tests.
//!
//!   cargo run -p idakit --example accept_eula

use idakit::kernel::Ida;

fn main() {
    let idb = Ida::here().expect("kernel init failed");
    if idb.accept_eula() {
        println!("EULA accepted for this $HOME");
    } else {
        eprintln!("failed to record EULA acceptance");
        std::process::exit(1);
    }
}