winafl icon indicating copy to clipboard operation
winafl copied to clipboard

Fail to fuzz imagemagick convert

Open fuzzyushi opened this issue 9 years ago • 2 comments

Hi, ivan, When I fuzzed the iamgemagick convert with using the command afl-fuzz -i input_dir -o output_dir -D path/to/Dynamorio/bin32 -t 20000 -- coverage_module convert.exe -fuzz_iterations 5000 -target_module convert.exe -target_offset 0xa291e -nargs 3 -- convert.exe @@ out.ipg I got an error that PROGRAM ABORT: test case result in a hang when perform_dry_run().

0xa291e is the export entry of main() function, I got it from IDA pro.

I wonder whether the command is correct or not? When I typed the command convert a.png a.jpg in the console, I got the correct result. So I need your help.

fuzzyushi avatar Dec 08 '16 12:12 fuzzyushi

Hi, the best way to check if your command is correct or not is to use the WinAFL debug mode before attempting a fuzzing run. Please see the readme for details.

ivanfratric avatar Dec 09 '16 13:12 ivanfratric

Indeed, as the readme sais, the next step is to generate a debug log and analyze the output. I suggest looking at the other issues for help. Off the bat, i do see an error that could cause that output, your coverage_module does not have a dash in front of it.

mrpeppels avatar Dec 13 '16 12:12 mrpeppels