3 ms·
Does anyone have a good writeup on getting started with afl-fuzz? I'm a Python developer and looked into it the other day for fuzzing Python programs, but gave
by StavrosK 12y ago
Does anyone have a good writeup on getting started with afl-fuzz? I'm a Python developer and looked into it the other day for fuzzing Python programs, but gave up after a bit because of the documentation (it seems geared towards lower-level languages).
- kkl 12y agoI'm sure you have checked out the official documentation (http://lcamtuf.coredump.cx/afl/README.txt http://lcamtuf.coredump.cx/afl/README.txt)? Fuzzing Python programs with AFL will be hard. AFL leverages a version of the GCC compiler to instrument (add additional code to) the resultant binaries. Because Python is not a compiled language this will be difficult. I'm sure there is something you could do to make it work.
- StavrosK 12y agoI did read the docs, and that's the conclusion I arrived at as well. I assumed there would be a layer that generated the inputs and checked the outputs, and that I could just use that, rather than use the full code checks, but it looks like that's not the case.
- gsnedders 12y agoThere's a wrapper for CPython to get it to implement the tracing code, afl-python[1]. Alex Gaynor did a basic intro to it a few days ago which is a better write-up that the project itself has! Of course, this doesn't work so well with mixed C/Python code. [1]: https://bitbucket.org/jwilk/python-afl https://bitbucket.org/jwilk/python-afl [2]: https://alexgaynor.net/2015/apr/13/introduction-to-fuzzing-in-python-with-afl/ https://alexgaynor.net/2015/apr/13/introduction-to-fuzzing-i...