ex0dus-0x / fuzzable

Framework for Automating Fuzzable Target Discovery with Static Analysis.
MIT License
507 stars 53 forks source link

Arguments for harness generation #10

Closed mimicria closed 2 years ago

mimicria commented 2 years ago

Hello! I got the results of the analysis and now I would like to automatically generate the harness for this functions screen_fuzzable

I tried to call like this:

# generate harness from a candidate
$ fuzzable create-harness ~/nDPI/src/lib/ndpi_main.c --symbol-name=ndpi_set_bitmask_protocol_detection

But I get an error

Unknown format
[37m[41mfuzzable error:[0m [31mWrong filetype, or does not support synthesizing harnesses for C/C++ source code yet.
ex0dus-0x commented 2 years ago

I have not yet added support to synthesizing harnesses for source code targets yet, given that the template for generation (templates/linux_source_harness.cpp) is quite rudimentary, and that generation would just be copy-pasting that specific harness for use.

If this is a feature that you believe should be prioritized let me know! Will create a separate issue documenting how this might be rolled out.

mimicria commented 2 years ago

@ex0dus-0x It would be nice, since I would like to use this utility in CI pipeline for automatic fuzzing some small targets