Changeset 2344
- Timestamp:
- May 19, 2008, 1:25:01 PM (15 years ago)
- Location:
- zzuf/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/doc/zzuf.1
r2343 r2344 5 5 \fBzzuf\fR [\fB\-AcdimnqSvx\fR] [\fB\-s\fR \fIseed\fR|\fB\-s\fR \fIstart:stop\fR] [\fB\-r\fR \fIratio\fR|\fB\-r\fR \fImin:max\fR] 6 6 .br 7 [\fB\-f\fR \fIfuzzing\fR] [\fB\-D\fR \fIdelay\fR] [\fB\- F\fR \fIforks\fR] [\fB\-C\fR \fIcrashes\fR] [\fB\-B\fR \fIbytes\fR]7 [\fB\-f\fR \fIfuzzing\fR] [\fB\-D\fR \fIdelay\fR] [\fB\-j\fR \fIjobs\fR] [\fB\-C\fR \fIcrashes\fR] [\fB\-B\fR \fIbytes\fR] 8 8 .br 9 9 [\fB\-t\fR \fIseconds\fR] [\fB\-T\fR \fIseconds\fR] [\fB\-M\fR \fImegabytes\fR] [\fB\-b\fR \fIranges\fR] [\fB\-p\fR \fIports\fR] … … 92 92 \fB\-D\fR, \fB\-\-delay\fR=\fIdelay\fR 93 93 Do not launch more than one process every \fIdelay\fR seconds. This option 94 should be used together with \fB\- F\fR to avoid fork bombs.94 should be used together with \fB\-j\fR to avoid fork bombs. 95 95 .TP 96 96 \fB\-E\fR, \fB\-\-exclude\fR=\fIregex\fR … … 119 119 The default value for \fImode\fR is \fBxor\fR. 120 120 .TP 121 \fB\- F\fR, \fB\-\-max\-forks\fR=\fIforks\fR121 \fB\-j\fR, \fB\-\-jobs\fR=\fIjobs\fR 122 122 Specify the number of simultaneous children that can be run. By default, 123 123 \fBzzuf\fR only launches one process at a time. … … 351 351 by restricting fuzzing to offsets after 4 (\fB\-b4\-\fR), disabling its 352 352 standard output messages (\fB\-q\fR), launching up to five simultaneous child 353 processes (\fB\- F5\fR) but waiting at least half a second between launches353 processes (\fB\-j5\fR) but waiting at least half a second between launches 354 354 (\fB\-D0.5\fR), killing MPlayer if it takes more than one minute to 355 355 read the file (\fB\-T60\fR) and disabling its \fBSIGSEGV\fR signal handler 356 356 (\fB\-S\fR): 357 357 .PP 358 \fB zzuf \-c \-r0.001:0.02 \-s0:10000 \-b4\- \-q \- F5 \-D0.5 \-T60 \-S \\\fR358 \fB zzuf \-c \-r0.001:0.02 \-s0:10000 \-b4\- \-q \-j5 \-D0.5 \-T60 \-S \\\fR 359 359 .br 360 360 \fB mplayer \-benchmark \-vo null \-fps 1000 movie.avi\fR -
zzuf/trunk/src/zzuf.c
r2343 r2344 170 170 #endif 171 171 #define OPTSTR "+" OPTSTR_REGEX OPTSTR_RLIMIT_MEM OPTSTR_RLIMIT_CPU \ 172 "Ab:B:C:dD:f:F:i l:mnp:P:qr:R:s:St:vxhV"172 "Ab:B:C:dD:f:F:ij:l:mnp:P:qr:R:s:St:vxhV" 173 173 #define MOREINFO "Try `%s --help' for more information.\n" 174 174 int option_index = 0; … … 189 189 #endif 190 190 { "fuzzing", 1, NULL, 'f' }, 191 { "max-forks", 1, NULL, 'F' },192 191 { "stdin", 0, NULL, 'i' }, 193 192 #if defined HAVE_REGEX_H 194 193 { "include", 1, NULL, 'I' }, 195 194 #endif 195 { "jobs", 1, NULL, 'j' }, 196 196 { "list", 1, NULL, 'l' }, 197 197 { "md5", 0, NULL, 'm' }, … … 260 260 opts->fuzzing = myoptarg; 261 261 break; 262 case 'F': /* --max-forks */263 opts->maxchild = atoi(myoptarg) > 1 ? atoi(myoptarg) : 1;264 break;262 case 'F': 263 fprintf(stderr, "%s: `-F' is deprecated, use `-j'\n", argv[0]); 264 return EXIT_FAILURE; 265 265 case 'i': /* --stdin */ 266 266 setenv("ZZUF_STDIN", "1", 1); … … 278 278 break; 279 279 #endif 280 case 'j': /* --jobs */ 281 opts->maxchild = atoi(myoptarg) > 1 ? atoi(myoptarg) : 1; 282 break; 280 283 case 'l': /* --list */ 281 284 opts->list = myoptarg; … … 1161 1164 printf("Usage: zzuf [-AdimnqSvx] [-s seed|-s start:stop] [-r ratio|-r min:max]\n"); 1162 1165 #endif 1163 printf(" [-f fuzzing] [-D delay] [- F forks] [-C crashes] [-B bytes]\n");1166 printf(" [-f fuzzing] [-D delay] [-j jobs] [-C crashes] [-B bytes]\n"); 1164 1167 printf(" [-t seconds] "); 1165 1168 #if defined HAVE_SETRLIMIT && defined ZZUF_RLIMIT_CPU … … 1194 1197 #endif 1195 1198 printf(" -f, --fuzzing <mode> use fuzzing mode <mode> ([xor] set unset)\n"); 1196 printf(" -F, --max-forks <n> number of concurrent children (default 1)\n");1197 1199 printf(" -i, --stdin fuzz standard input\n"); 1198 1200 #if defined HAVE_REGEX_H 1199 1201 printf(" -I, --include <regex> only fuzz files matching <regex>\n"); 1200 1202 #endif 1203 printf(" -j, --jobs <n> number of simultaneous jobs (default 1)\n"); 1201 1204 printf(" -l, --list <list> only fuzz Nth descriptor with N in <list>\n"); 1202 1205 printf(" -m, --md5 compute the output's MD5 hash\n");
Note: See TracChangeset
for help on using the changeset viewer.