Last change
on this file since 2272 was
1858,
checked in by Sam Hocevar, 15 years ago
|
- Network destination port choosing with -p/--ports.
- Renamed -p/--pick into -l/--list to avoid conflicts.
|
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Line | |
---|
1 | /* |
---|
2 | * zzuf - general purpose fuzzer |
---|
3 | * Copyright (c) 2002, 2007 Sam Hocevar <sam@zoy.org> |
---|
4 | * All Rights Reserved |
---|
5 | * |
---|
6 | * $Id: opts.h 1858 2007-11-02 22:45:54Z sam $ |
---|
7 | * |
---|
8 | * This program is free software. It comes without any warranty, to |
---|
9 | * the extent permitted by applicable law. You can redistribute it |
---|
10 | * and/or modify it under the terms of the Do What The Fuck You Want |
---|
11 | * To Public License, Version 2, as published by Sam Hocevar. See |
---|
12 | * http://sam.zoy.org/wtfpl/COPYING for more details. |
---|
13 | */ |
---|
14 | |
---|
15 | /* |
---|
16 | * opts.h: configuration handling |
---|
17 | */ |
---|
18 | |
---|
19 | struct opts |
---|
20 | { |
---|
21 | char **oldargv; |
---|
22 | char **newargv; |
---|
23 | char *fuzzing, *bytes, *list, *ports, *protect, *refuse; |
---|
24 | uint32_t seed; |
---|
25 | uint32_t endseed; |
---|
26 | double minratio; |
---|
27 | double maxratio; |
---|
28 | int quiet; |
---|
29 | int maxbytes; |
---|
30 | int maxcpu; |
---|
31 | int md5; |
---|
32 | int checkexit; |
---|
33 | int verbose; |
---|
34 | int maxmem; |
---|
35 | int64_t maxtime; |
---|
36 | int64_t delay; |
---|
37 | int64_t lastlaunch; |
---|
38 | |
---|
39 | int maxchild, nchild, maxcrashes, crashes; |
---|
40 | struct child |
---|
41 | { |
---|
42 | enum status |
---|
43 | { |
---|
44 | STATUS_FREE, |
---|
45 | STATUS_RUNNING, |
---|
46 | STATUS_SIGTERM, |
---|
47 | STATUS_SIGKILL, |
---|
48 | STATUS_EOF, |
---|
49 | } status; |
---|
50 | |
---|
51 | pid_t pid; |
---|
52 | int fd[3]; /* 0 is debug, 1 is stderr, 2 is stdout */ |
---|
53 | int bytes, seed; |
---|
54 | double ratio; |
---|
55 | int64_t date; |
---|
56 | struct md5 *ctx; |
---|
57 | } *child; |
---|
58 | }; |
---|
59 | |
---|
60 | void _zz_opts_init(struct opts *); |
---|
61 | void _zz_opts_fini(struct opts *); |
---|
62 | |
---|
Note: See
TracBrowser
for help on using the repository browser.