A small Rust CLI for looking inside Windows PE and Linux ELF files. It prints the file size, headers, sections and imports. For PE files, imports are grouped by DLL. For ELF files, it lists the shared libraries and imported symbols.
From the repo folder on Linux, with Rust 1.65 or newer:
cargo build --release --locked
./target/release/binary-inspector /bin/lsFor a PE file, give it the path to your file:
./target/release/binary-inspector ./sample.dll