[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#792317: ITP: python-afl -- American fuzzy lop for Python



I've got the package ready [1].

The wrapper works fine. If want to try out,

<bildinfo.py>
#!/usr/bin/python
# _*_ coding: utf-8 _*_

import sys
import Image
import os
import afl
afl.start()

kommandozeile = sys.argv[1:]

for dateiname in kommandozeile:
    print ("Datei: %s" % dateiname)
    try:
        bild = Image.open(dateiname)
        print ("Format: %s" % bild.format)
        print ("Größe: %s x %s" % (bild.size[0], bild.size[1]))
        print ("Modus: %s" % bild.mode)
        print (" ")
    except IOError:
        print ("Kann %s nicht lesen" % dateiname)

os._exit(0)
</bildinfo.py>

$ py-afl-fuzz -n -i /usr/share/afl/testcases/images/jpeg -o afl -- ./bildinfo.py
fires up the fuzzying (full processing takes a long time)

DS

[1] https://bugs.debian.org/792447
RFS: python-afl/0.2.1-1 -- American Fuzzy Lop fuzzy testing for Python code [ITP]

-- 
-- 
http://www.danielstender.com/blog/
4096R/DF5182C8
46CB 1CA8 9EA3 B743 7676 1DB9 15E0 9AF4 DF51 82C8


Reply to: