updated version of the binwalk firmware analysis tool, re-written in Rust

This commit is contained in:
purplerain 2025-01-10 04:49:32 +00:00
parent 89dd255c74
commit 15bd75493d
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
7 changed files with 527 additions and 0 deletions

View file

@ -0,0 +1,15 @@
Index: src/cliparser.rs
--- src/cliparser.rs.orig
+++ src/cliparser.rs
@@ -56,5 +56,11 @@ pub struct CliArgs {
}
pub fn parse() -> CliArgs {
+ let args = std::env::args().collect::<Vec<String>>();
+
+ if args.len() == 1 {
+ CliArgs::parse_from(["", "--help"]);
+ }
+
CliArgs::parse()
}