Skip to content

Commit 6b18e51

Browse files
committed
Rework command line interface
Use subcommand instead of option arguments. This has the benefit of supporting shell wildcards. Old usage: checksec -f /bin/true --no-color checksec -d /bin --json --pretty checksec -p bash --maps checksec --pid 1,42 checksec -P New usage: checksec --no-color exe /bin/true checksec --format json-pretty exe /bin checksec proc-name --maps bash checksec proc-id 1 42 checksec proc-all checksec proc-id $(pidof firefox) checksec exe /bin/system* dpkg -L apt | checksec
1 parent b562f26 commit 6b18e51

File tree

4 files changed

+301
-208
lines changed

4 files changed

+301
-208
lines changed

Cargo.lock

+51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ opt-level = 'z' # Optimize for size
2525
panic = 'abort' # Abort on panic
2626

2727
[dependencies]
28-
clap = {version = "4.0.14", features = ["cargo"]}
28+
atty = "0.2.14"
29+
clap = {version = "4.0.14", features = ["cargo", "derive"]}
2930
colored = {version = "2.0.0", optional = true}
3031
colored_json = {version = "3.0.1", optional = true}
3132
goblin = "0.5.4"

0 commit comments

Comments
 (0)