This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
2,533 additions
and
1,537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,79 +5,111 @@ pub fn generate() -> App<'static, 'static> { | |
.version(crate_version!()) | ||
.author("SUPER Team <[email protected]>") | ||
.about("Audits Android apps (.apk files) for vulnerabilities") | ||
.arg(Arg::with_name("package") | ||
.help("The package string of the application to test") | ||
.value_name("package") | ||
.required_unless("test-all") | ||
.conflicts_with("test-all") | ||
.takes_value(true)) | ||
.arg(Arg::with_name("test-all") | ||
.short("a") | ||
.long("test-all") | ||
.conflicts_with("package") | ||
.conflicts_with("open") | ||
.help("Test all .apk files in the downloads directory")) | ||
.arg(Arg::with_name("verbose") | ||
.short("v") | ||
.long("verbose") | ||
.conflicts_with("quiet") | ||
.help("If you'd like the auditor to talk more than necessary")) | ||
.arg(Arg::with_name("force") | ||
.long("force") | ||
.help("If you'd like to force the auditor to do everything from the beginning")) | ||
.arg(Arg::with_name("bench") | ||
.long("bench") | ||
.help("Show benchmarks for the analysis")) | ||
.arg(Arg::with_name("quiet") | ||
.short("q") | ||
.long("quiet") | ||
.conflicts_with("verbose") | ||
.help("If you'd like a zen auditor that won't output anything in stdout")) | ||
.arg(Arg::with_name("open") | ||
.long("open") | ||
.conflicts_with("test-all") | ||
.help("Open the report in a browser once it is complete")) | ||
.arg(Arg::with_name("json") | ||
.long("json") | ||
.help("Generates the reults in JSON format")) | ||
.arg(Arg::with_name("html") | ||
.long("html") | ||
.help("Generates the reults in HTML format")) | ||
.arg(Arg::with_name("min_criticality") | ||
.long("min-criticality") | ||
.help("Set a minimum criticality to analyze (Critical, High, Medium, Low)") | ||
.takes_value(true)) | ||
.arg(Arg::with_name("threads") | ||
.short("t") | ||
.long("threads") | ||
.help("Number of threads to use") | ||
.takes_value(true)) | ||
.arg(Arg::with_name("downloads") | ||
.long("downloads") | ||
.help("Folder where the downloads are stored") | ||
.takes_value(true)) | ||
.arg(Arg::with_name("dist") | ||
.long("dist") | ||
.help("Folder where distribution files will be extracted") | ||
.takes_value(true)) | ||
.arg(Arg::with_name("results") | ||
.long("results") | ||
.help("Folder where to store the results") | ||
.takes_value(true)) | ||
.arg(Arg::with_name("dex2jar") | ||
.long("dex2jar") | ||
.help("Where to store the jar files") | ||
.takes_value(true)) | ||
.arg(Arg::with_name("jd-cmd") | ||
.long("jd-cmd") | ||
.help("Path to the jd-cmd file") | ||
.takes_value(true)) | ||
.arg(Arg::with_name("template") | ||
.long("template") | ||
.help("Path to a results template file") | ||
.takes_value(true)) | ||
.arg(Arg::with_name("rules") | ||
.long("rules") | ||
.help("Path to a JSON rules file") | ||
.takes_value(true)) | ||
.arg( | ||
Arg::with_name("package") | ||
.help("The package string of the application to test") | ||
.value_name("package") | ||
.required_unless("test-all") | ||
.conflicts_with("test-all") | ||
.takes_value(true), | ||
) | ||
.arg( | ||
Arg::with_name("test-all") | ||
.short("a") | ||
.long("test-all") | ||
.conflicts_with("package") | ||
.conflicts_with("open") | ||
.help("Test all .apk files in the downloads directory"), | ||
) | ||
.arg( | ||
Arg::with_name("verbose") | ||
.short("v") | ||
.long("verbose") | ||
.conflicts_with("quiet") | ||
.help("If you'd like the auditor to talk more than necessary"), | ||
) | ||
.arg(Arg::with_name("force").long("force").help( | ||
"If you'd like to force the auditor to do everything from the beginning", | ||
)) | ||
.arg(Arg::with_name("bench").long("bench").help( | ||
"Show benchmarks for the analysis", | ||
)) | ||
.arg( | ||
Arg::with_name("quiet") | ||
.short("q") | ||
.long("quiet") | ||
.conflicts_with("verbose") | ||
.help( | ||
"If you'd like a zen auditor that won't output anything in stdout", | ||
), | ||
) | ||
.arg( | ||
Arg::with_name("open") | ||
.long("open") | ||
.conflicts_with("test-all") | ||
.help("Open the report in a browser once it is complete"), | ||
) | ||
.arg(Arg::with_name("json").long("json").help( | ||
"Generates the reults in JSON format", | ||
)) | ||
.arg(Arg::with_name("html").long("html").help( | ||
"Generates the reults in HTML format", | ||
)) | ||
.arg( | ||
Arg::with_name("min_criticality") | ||
.long("min-criticality") | ||
.help( | ||
"Set a minimum criticality to analyze (Critical, High, Medium, Low)", | ||
) | ||
.takes_value(true), | ||
) | ||
.arg( | ||
Arg::with_name("threads") | ||
.short("t") | ||
.long("threads") | ||
.help("Number of threads to use") | ||
.takes_value(true), | ||
) | ||
.arg( | ||
Arg::with_name("downloads") | ||
.long("downloads") | ||
.help("Folder where the downloads are stored") | ||
.takes_value(true), | ||
) | ||
.arg( | ||
Arg::with_name("dist") | ||
.long("dist") | ||
.help("Folder where distribution files will be extracted") | ||
.takes_value(true), | ||
) | ||
.arg( | ||
Arg::with_name("results") | ||
.long("results") | ||
.help("Folder where to store the results") | ||
.takes_value(true), | ||
) | ||
.arg( | ||
Arg::with_name("dex2jar") | ||
.long("dex2jar") | ||
.help("Where to store the jar files") | ||
.takes_value(true), | ||
) | ||
.arg( | ||
Arg::with_name("jd-cmd") | ||
.long("jd-cmd") | ||
.help("Path to the jd-cmd file") | ||
.takes_value(true), | ||
) | ||
.arg( | ||
Arg::with_name("template") | ||
.long("template") | ||
.help("Path to a results template file") | ||
.takes_value(true), | ||
) | ||
.arg( | ||
Arg::with_name("rules") | ||
.long("rules") | ||
.help("Path to a JSON rules file") | ||
.takes_value(true), | ||
) | ||
} |
Oops, something went wrong.