You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description='Compute the mutation chain of AFL crash files to visulise the mutation history from seed files to crash'+
86
+
'This tool just dump json data to the CLI, it is advised to echo them into a file for further analysis (i.e. [command] >> your_file.json)',
87
+
epilog='Greetings from old zealand'
88
+
)
89
+
90
+
parser.add_argument(
91
+
"-m", "--mode",
92
+
choices= ['single', 'all'],
93
+
help='compute chain for one file or all crash files in supplied directory. In single mode the -f argument is required',
94
+
required=True
95
+
)
96
+
97
+
parser.add_argument(
98
+
"-i", "--input",
99
+
action='store',
100
+
help='Input directory for the mutation chain tool (the fuzzer\'s output directory)',
101
+
required=True
102
+
)
103
+
104
+
parser.add_argument(
105
+
"-n", "--node",
106
+
action='store',
107
+
help='[Only used in single mode; optinal] name of the fuzzer node that contains the crash file supplied in the --file argument (e.g. \'fuzzer03\'). Defaults to \'fuzzer01\' if not supplied',
108
+
required=False
109
+
)
110
+
111
+
parser.add_argument(
112
+
"-f", "--file",
113
+
action='store',
114
+
help='[Only used in single mode; required] filename of specific crash file (e.g. \'id:000008,sig:06,src:000005,op:havoc,rep:8\')',
115
+
required=False
116
+
)
117
+
118
+
args=parser.parse_args()
119
+
120
+
ifargs.mode=="single":
121
+
122
+
ifargs.node==None:
123
+
args.node="fuzzer01"
124
+
125
+
ifargs.file==None:
126
+
parser.error("'--mode single' requires the '--file' argument.")
0 commit comments