diff options
Diffstat (limited to 'docs/python_mutators.txt')
-rw-r--r-- | docs/python_mutators.txt | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/docs/python_mutators.txt b/docs/python_mutators.txt index 0d4eef1e..e20a6f58 100644 --- a/docs/python_mutators.txt +++ b/docs/python_mutators.txt @@ -9,8 +9,9 @@ Adding custom mutators to AFL using Python modules Implemented by Christian Holler (:decoder) <choller@mozilla.com>. - NOTE: This is for Python 2.7 ! - Anyone who wants to add Python 3.7 support is happily welcome :) + NOTE: Python 3.7 and 2.7 are supported so far (3.8 upcomming). + Depending on with which version afl-fuzz was compiled, you must use + python2 or python3 syntax in your scripts! For an example and a template see ../python_mutators/ @@ -56,16 +57,19 @@ further information about this feature. 3) How to compile AFLFuzz with Python support --------------------------------------------- -You must install the python 2.7 development package of your Linux distribution -before this will work. On Debian/Ubuntu/Kali this can be done with: +You must install the python 3.7 or 2.7 development package of your Linux +distribution before this will work. On Debian/Ubuntu/Kali this can be done +with either: + apt install python3.7-dev +pr apt install python2.7-dev A prerequisite for using this mode is to compile AFLFuzz with Python support. -The afl Makefile performs some magic and detects Python 2.7 if it is in the -default path and compiles afl-fuzz with the feature if available (which is -/usr/include/python2.7 for the Python.h include and /usr/lib/x86_64-linux-gnu -for the libpython2.7.a library) +The afl Makefile performs some magic and detects Python 3.7 and 2.7 if it is +in the default path and compiles afl-fuzz with the feature if available (which +is /usr/include/python2.7 for the Python.h include and +/usr/lib/x86_64-linux-gnu for the libpython2.7.a library) In case your setup is different set the necessary variables like this: PYTHON_INCLUDE=/path/to/python2.7/include LDFLAGS=-L/path/to/python2.7/lib make |