Crates.io | binper |
lib.rs | binper |
version | 0.1.4 |
source | src |
created_at | 2020-05-21 17:18:19.387087 |
updated_at | 2020-05-31 13:26:42.985673 |
description | BINPER is a binary parser library in Rust. |
homepage | |
repository | https://github.com/abaghinyan/binper |
max_upload_size | |
id | 244219 |
size | 123,819 |
BINPER is a binary parser library in Rust.
🔒 Implemented using 100% safe rust and works on all platforms supported by rust
cargo install binper
binper [BIN_FILE_PATH]
Currently, only PE file parsing is implemented
use std::fs::File;
use std::io::Read;
use binper::pe::pe::PE;
fn main() -> binper::error::Result<()> {
let mut f = File::open("samples/pe.exe")?;
let mut data = Vec::new();
f.read_to_end(&mut data)?;
let pe:PE = PE::new(&data)?;
println!("{}", pe);
Ok(())
}
Windows binary PE
Linux binary ELF
If you want to add some features, fix bugs or improve the code as defined in the MIT license, without any additional terms or conditions, I will gladly accept.
This is an alpha version.
I don't recommend you to use in your production applications.
The structure of objects can change.
binper
is distributed under the terms of the MIT license.
See LICENSE for details.
This project has been inspired by goblin project.