aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-02-25 21:41:31 +0100
committerhexcoder- <heiko@hexco.de>2020-02-25 21:41:31 +0100
commit2d25662b814afea6943d2823c2df746e2f5b4a2d (patch)
tree975abcd2464bd18f0fa5afb0ab31f4ad4ec109a1
parent4bd736e1a79ada95ae4266be72c331106e580075 (diff)
downloadafl++-2d25662b814afea6943d2823c2df746e2f5b4a2d.tar.gz
man page tuning
-rwxr-xr-xafl-cmin9
-rw-r--r--src/afl-analyze.c8
-rw-r--r--src/afl-as.c8
3 files changed, 12 insertions, 13 deletions
diff --git a/afl-cmin b/afl-cmin
index fb588f4d..c7531221 100755
--- a/afl-cmin
+++ b/afl-cmin
@@ -94,15 +94,13 @@ function getopt(argc, argv, options, thisopt, i)
function usage() {
print \
-"Usage: afl-cmin [ options ] -- /path/to/target_app [ ... ]\n" \
+"afl-cmin [ options ] -- /path/to/target_app [ ... ]\n" \
"\n" \
"Required parameters:\n" \
-"\n" \
" -i dir - input directory with starting corpus\n" \
" -o dir - output directory for minimized files\n" \
"\n" \
"Execution control settings:\n" \
-"\n" \
" -f file - location read by the fuzzed program (stdin)\n" \
" -m megs - memory limit for child process ("mem_limit" MB)\n" \
" -t msec - run time limit for child process (none)\n" \
@@ -116,11 +114,10 @@ function usage() {
"For additional tips, please consult docs/README.md\n" \
"\n" \
"Environment variables used:\n" \
-"AFL_KEEP_TRACES: leave the temporary <out_dir>\.traces directory\n" \
+"AFL_KEEP_TRACES: leave the temporary <out_dir>/.traces directory\n" \
"AFL_PATH: path for the afl-showmap binary\n" \
"AFL_SKIP_BIN_CHECK: skip check for target binary\n" \
-"AFL_ALLOW_TMP: allow unsafe use of input/output directories under {/var}/tmp\n" \
- > "/dev/stderr"
+"AFL_ALLOW_TMP: allow unsafe use of input/output directories under {/var}/tmp\n"
exit 1
}
diff --git a/src/afl-analyze.c b/src/afl-analyze.c
index 2f9b0550..4b0b1a6a 100644
--- a/src/afl-analyze.c
+++ b/src/afl-analyze.c
@@ -780,11 +780,11 @@ static void usage(u8* argv0) {
SAYF(
"\n%s [ options ] -- /path/to/target_app [ ... ]\n\n"
- "Required parameters:\n\n"
+ "Required parameters:\n"
- " -i file - input test case to be analyzed by the tool\n"
+ " -i file - input test case to be analyzed by the tool\n\n"
- "Execution control settings:\n\n"
+ "Execution control settings:\n"
" -f file - input file read by the tested program (stdin)\n"
" -t msec - timeout for each run (%d ms)\n"
@@ -794,7 +794,7 @@ static void usage(u8* argv0) {
" -W - use qemu-based instrumentation with Wine (Wine "
"mode)\n\n"
- "Analysis settings:\n\n"
+ "Analysis settings:\n"
" -e - look for edge coverage only, ignore hit counts\n\n"
diff --git a/src/afl-as.c b/src/afl-as.c
index 98bd3ff5..914848df 100644
--- a/src/afl-as.c
+++ b/src/afl-as.c
@@ -520,8 +520,9 @@ int main(int argc, char** argv) {
if (argc < 2 || (argc == 2 && strcmp(argv[1], "-h") == 0)) {
- SAYF(
- "\n"
+ fprintf(stdout,
+ "afl-as" VERSION " by Michal Zalewski\n"
+ "\n%s [-h]\n\n"
"This is a helper application for afl-fuzz. It is a wrapper around GNU "
"'as',\n"
"executed by the toolchain whenever using afl-gcc or afl-clang. You "
@@ -545,7 +546,8 @@ int main(int argc, char** argv) {
"AFL_KEEP_ASSEMBLY: leave instrumented assembly files\n"
"AFL_AS_FORCE_INSTRUMENT: force instrumentation for asm sources\n"
"AFL_HARDEN, AFL_USE_ASAN, AFL_USE_MSAN, AFL_USE_UBSAN:\n"
- " used in the instrumentation summary message\n");
+ " used in the instrumentation summary message\n"
+ ,argv[0]);
exit(1);