Changeset 1640 for zzuf


Ignore:
Timestamp:
Jan 10, 2007, 4:22:09 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Changed -M to -m (for --md5).
Location:
zzuf/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/doc/zzuf.1

    r1634 r1640  
    9696of the regular expressions will be fuzzed. See also the \fB\-c\fR flag.
    9797.TP
    98 \fB\-M\fR, \fB\-\-md5\fR
     98\fB\-m\fR, \fB\-\-md5\fR
    9999Instead of displaying the program's standard output, just print the MD5 digest
    100100of that output. The standard error channel is left untouched.
  • zzuf/trunk/src/zzuf.c

    r1634 r1640  
    119119            { "stdin",       0, NULL, 'i' },
    120120            { "include",     1, NULL, 'I' },
    121             { "md5",         0, NULL, 'M' },
     121            { "md5",         0, NULL, 'm' },
    122122            { "network",     0, NULL, 'n' },
    123123            { "protect",     1, NULL, 'P' },
     
    132132            { "version",     0, NULL, 'v' },
    133133        };
    134         int c = getopt_long(argc, argv, "B:cC:dE:F:iI:MnP:qr:R:s:ST:xhv",
     134        int c = getopt_long(argc, argv, "B:cC:dE:F:iI:mnP:qr:R:s:ST:xhv",
    135135                            long_options, &option_index);
    136136#   else
    137137#       define MOREINFO "Try `%s -h' for more information.\n"
    138         int c = getopt(argc, argv, "B:cC:dE:F:iI:MnP:qr:R:s:ST:xhv");
     138        int c = getopt(argc, argv, "B:cC:dE:F:iI:mnP:qr:R:s:ST:xhv");
    139139#   endif
    140140        if(c == -1)
     
    179179            }
    180180            break;
    181         case 'M': /* --md5 */
     181        case 'm': /* --md5 */
    182182            md5 = 1;
    183183            break;
     
    665665static void usage(void)
    666666{
    667     printf("Usage: zzuf [-cdiMnqSx] [-r ratio] [-s seed | -s start:stop]\n");
     667    printf("Usage: zzuf [-cdimnqSx] [-r ratio] [-s seed | -s start:stop]\n");
    668668    printf("                        [-F forks] [-C crashes] [-B bytes] [-T seconds]\n");
    669669    printf("                        [-P protect] [-R refuse]\n");
     
    688688    printf("  -i, --stdin              fuzz standard input\n");
    689689    printf("  -I, --include <regex>    only fuzz files matching <regex>\n");
    690     printf("  -M, --md5                compute the output's MD5 hash\n");
     690    printf("  -m, --md5                compute the output's MD5 hash\n");
    691691    printf("  -n, --network            fuzz network input\n");
    692692    printf("  -P, --protect <list>     protect bytes and characters in <list>\n");
     
    710710    printf("  -i               fuzz standard input\n");
    711711    printf("  -I <regex>       only fuzz files matching <regex>\n");
    712     printf("  -M               compute the output's MD5 hash\n");
     712    printf("  -m               compute the output's MD5 hash\n");
    713713    printf("  -n               fuzz network input\n");
    714714    printf("  -P <list>        protect bytes and characters in <list>\n");
  • zzuf/trunk/test/testsuite.sh

    r1630 r1640  
    2020    ALIAS="$3"
    2121    echo -n " $(echo "$ALIAS .............." | cut -b1-18) "
    22     MD5="$(eval "$ZZUF -M $ZZOPTS $CMD" 2>/dev/null | cut -f2 -d' ')"
     22    MD5="$(eval "$ZZUF -m $ZZOPTS $CMD" 2>/dev/null | cut -f2 -d' ')"
    2323    if [ -z "$REFMD5" ]; then
    2424        REFMD5="$MD5"
Note: See TracChangeset for help on using the changeset viewer.