jwilk / python-afl

American Fuzzy Lop fork server and instrumentation for pure-Python code
https://jwilk.net/software/python-afl
MIT License
350 stars 33 forks source link

WIP: Opcode tracing #18

Open maage opened 3 years ago

maage commented 3 years ago

Implemented opcode tracing.

This version updates hash until we do something else. So my tests/target.py generates different maps. Without this feature same ops generate just increased count and I felt it was not enough.

You can test this with suite of: '0' '\0' 'zero' 'zero\n' and compare

py-afl-showmap -o out -i in -- python tests/target.py

This is tested with python 3.9 and afl-fuzz++ 3.00a. You need separate patch to support afl-fuzz++.

I tries to implement https://github.com/jwilk/python-afl/issues/15