winafl
winafl copied to clipboard
Fuzzing FreeCAD
I would like to make some first steps in to fuzzing for the FreeCAD project. I am able to start the fuzzer for the test.exe but for the program the following command is however always giving me timeouts (I have also tried some variations of the timers -t and -I). Any help would be great :)
afl-fuzz.exe -i in -o out -D C:\Users\user\Desktop\DynamoRIO-Windows-7.0.0-RC1\bin64 -t 20000 -- -coverage_module FreeCADCmd.exe -fuzz_iterations 5000 -target_module FreeCADCmd.exe -target_offset 0x34F0 -nargs 2 -- FreeCADCmd.exe @@
https://github.com/FreeCAD/FreeCAD/releases
Hey, please use the debug mode first and check the log to see if the instrumentation is working correctly before attempting to run afl-fuzz. See the readme for more details.
Thanks, got it working with the target_offset 0x1000 :) Next step is to get the first crash... Any tips? :)
Depends on the target (with which I am fully unfamiliar). In general, a good input file corpus can help. And if the target uses a text format or contains some magic values, then using a dictionary might be a good idea.