Fuzzers are often perceived as complex pieces of software, but not all of them are really that complex. The following script has been created during one of our training courses in order to show our students how easy it is to code a simple random-based fuzzer in Python.

This scripts takes 2 arguments, a file and a number. The file is the initial sample that will be used to generate the test cases. It can be any file you want: mp3, pdf, exe, etc. The second argument is the number of files that we want to generate. For example, the following command takes a pdf and creates 15 malformed PDFs.

You can get the latest version here: randy.py.

Leave a Reply

Your email address will not be published. Required fields are marked *