man page tuning

This commit is contained in:
hexcoder-
2020-02-25 21:41:31 +01:00
parent 4bd736e1a7
commit 2d25662b81
3 changed files with 12 additions and 13 deletions

View File

@ -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
}

View File

@ -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"

View File

@ -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);