HowTo: ExploitDev Fuzzing

This is a short usage guide which should explain my simple wrapper for the spike fuzzer, which you can find here.

For this example i used the well known vulnserver 😉

0x01 Determine possible commands

A simple nc && HELP command revealing all possible commands.

0x02 Create Text File containing commands

Just Copy&Paste 😉

0x03 Fire Up my First helper and choose your variables for Fuzzing

Just type:

python -f [yourCommandFile]
After that you will find a fuzz.spk file which contains all your requests in the valid spike syntax. The next step is to choose your variables which should be fuzzed. Just alter s_string(„Var1“); into s_string_variable(„Var“);

You can also fuzz http services. For this purpose you can capture the request via wireshark, follow the tcp stream and copy it into yourCommandFile. After executing my script just delete all lines containing //New requestLine: except the first one.

original code altered code

0x04 Let’s break Things!

Time to Fuzz! -f fuzz.spk -p 9999 $ip

This wrapper will create single spike config files for each request from your fuzz.spk template. You can also submit another file which contains an auth request (for example: user user \n pass pass)
At the next stage it will fuzz through all config files and you only have to wait for your crash;-)

0x05 Find the Crashing Variable

You can choose several ways to find the right config file.

Ctrl + C last_spk file in your pwd

0x06 Retest the crash with the config file and start your exploitDev

Start your spike fuzzer manually and check the config while for the crash. After that you can proceed to develop your evil && fancy exploit (another tutorial for this will follow, at first you can look at this example 😉

I hope this small wrapper will help you and maybe you follow me on Github or Twitter 😉

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht.

Ein Gedanke zu “HowTo: ExploitDev Fuzzing