Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and improve AFL fuzzing #1462

Merged
merged 3 commits into from
Mar 25, 2024
Merged

Fix and improve AFL fuzzing #1462

merged 3 commits into from
Mar 25, 2024

Conversation

elicn
Copy link
Member

@elicn elicn commented Mar 13, 2024

Highlights:

  • Revamped the AFL extension: cleaned unnecessary code and added more comments
  • Refreshed and fixed AFL linux example
  • Added QlFuzzer extension to simplify the implementation of Qiling-based custom fuzzers
    • The class is heavily documented to help demystifying fuzzing
    • Added a usage example

@elicn elicn requested review from wtdcode, xwings and kabeor March 13, 2024 10:00

return image.base + offset

def setup(self, infilename: str, entry: int, exits: Collection[int], crashes: Optional[Collection[int]] = None) -> None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better if infile can be multiple files though our cases always use single one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would you suggest to do that?
The uc_afl_fuzz_custom API in unicornafl takes just one filename.

@elicn elicn merged commit bdda8e8 into qilingframework:dev Mar 25, 2024
7 checks passed
@elicn elicn deleted the dev-fuzzing branch March 26, 2024 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants