aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-06-14 22:58:08 +0200
committervanhauser-thc <vh@thc.org>2021-06-14 22:58:17 +0200
commit0c3feba3f6b3a517b21f9e96fa5e0758e959dec1 (patch)
tree2351608eb6f8827ed084be28c9c2ca62d99a7613
parentef5fd33120ca2b5a0a8a3e282224e67ac93f44a2 (diff)
downloadafl++-0c3feba3f6b3a517b21f9e96fa5e0758e959dec1.tar.gz
aflppdriver help output
-rw-r--r--utils/aflpp_driver/aflpp_driver.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/utils/aflpp_driver/aflpp_driver.c b/utils/aflpp_driver/aflpp_driver.c
index c094c425..ff42f3b9 100644
--- a/utils/aflpp_driver/aflpp_driver.c
+++ b/utils/aflpp_driver/aflpp_driver.c
@@ -204,21 +204,23 @@ static int ExecuteFilesOnyByOne(int argc, char **argv) {
int main(int argc, char **argv) {
- printf(
- "============================== INFO ================================\n"
- "This binary is built for afl++.\n"
- "To use with afl-cmin or afl-cmin.bash pass '-' as single command line "
- "option\n"
- "To run the target function on individual input(s) execute this:\n"
- " %s INPUT_FILE1 [INPUT_FILE2 ... ]\n"
- "To fuzz with afl-fuzz execute this:\n"
- " afl-fuzz [afl-flags] -- %s [-N]\n"
- "afl-fuzz will run N iterations before re-spawning the process (default: "
- "INT_MAX)\n"
- "For stdin input processing, pass '-' as single command line option.\n"
- "For file input processing, pass '@@' as single command line option.\n"
- "===================================================================\n",
- argv[0], argv[0]);
+ if (argc < 2 || strncmp(argv[1], "-h", 2) == 0)
+ printf(
+ "============================== INFO ================================\n"
+ "This binary is built for afl++.\n"
+ "To use with afl-cmin or afl-cmin.bash pass '-' as single command line "
+ "option\n"
+ "To run the target function on individual input(s) execute this:\n"
+ " %s INPUT_FILE1 [INPUT_FILE2 ... ]\n"
+ "To fuzz with afl-fuzz execute this:\n"
+ " afl-fuzz [afl-flags] -- %s [-N]\n"
+ "afl-fuzz will run N iterations before re-spawning the process "
+ "(default: "
+ "INT_MAX)\n"
+ "For stdin input processing, pass '-' as single command line option.\n"
+ "For file input processing, pass '@@' as single command line option.\n"
+ "===================================================================\n",
+ argv[0], argv[0]);
if (getenv("AFL_GDB")) {