google / AFL

american fuzzy lop - a security-oriented fuzzer
https://lcamtuf.coredump.cx/afl/
Apache License 2.0
3.56k stars 625 forks source link

Fuzz with multiple input file #145

Open 2raghu opened 3 years ago

2raghu commented 3 years ago

My program takes multiple inputs at different stages. I pass the inputs via file. The file(say inputfile.data) contents look as below format example. 123 root/abc.xml 0 15 12 0 0 22 33 11 345 7890 Example execution of my program: ./myprog < inputfile.data

Now when I tried to fuzz my program I copied the inputfile.data into the inputs directory and ran below command afl-fuzz -i inputs -o testprog -m none -- ./myprog < @@ When I looked into the generated inputs, I think AFL is taking only the first line of inputfile.data i.e 123 from above example. How can I make AFL to consider all the inputs in the file in order to fuzz my program ? Is it possible to skip few inputs from file(say root/abc.xml from above example) and consider only other inputs of inputfile.data ? Please help. Thanks