Skip to content

Latest commit

 

History

History

02-dictionary

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Lesson 02 - Improve code coverage using dictionary

Add a dictionary

echo '"ABC"' > dictionary.dict

Pass the roadblock

afl-fuzz -i input -o output -x dictionary.dict -- ./program

Divide and conquer: split comparison statement

#ifndef SPLIT

    if (!strcmp(input, "ABC")) {

        BUG();

#else

    if (input[0] == 'A') {
        if (input[1] == 'B')
             if (input[2] == 'C')
                BUG();

#endif
    }
afl-fuzz -i input -o output -- ./program_split

AFL++ dictionaries

AFLplusplus/dictionaries/
/usr/local/share/afl/dictionaries/