-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Readme.md : Linked the grammar based fuzzer tutorial - docs/tutorial-grammar-based.md : Added the grammar based fuzzer tutorial for Dharma - fuzzer/fuzzer_list.py : Created a py file to have the fuzzer list there (easy config) - fuzzer/fuzzingiterationdata.py : Changes for issue 6 - fuzzer/fuzzingmaster.py : Changes for issue 6 - fuzzer/fuzzingslave.py : Changes for issue 6 - template/fuzzing.py : Added the grammars file to fuzzing.py
- Loading branch information
Showing
7 changed files
with
119 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
## Grammar base fuzzing | ||
|
||
These assume you have set up the directory structure as explained in tutorial-sample-project.md | ||
|
||
### Dharma | ||
|
||
Pull Dharma in ffw: | ||
|
||
git pull https://github.com/MozillaSecurity/dharma.git | ||
|
||
Open fuzzing.py and change the fuzzer variable: | ||
|
||
"fuzzer": "Dharma" | ||
|
||
Add your grammars to the grammars file in the project. For example from the ffw root folder: | ||
|
||
cp dharma/dharma/grammars/grammar.dg vulnserver/grammars | ||
|
||
|
||
You can specify a different grammars file in fuzzing.py | ||
|
||
Do not run the interceptor. Your testcases will be generated by the grammar fuzzer using the grammar you provided. | ||
|
||
To run the fuzzer: | ||
|
||
cd vulnserver | ||
./fuzzing.py --fuzz --debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
fuzzers = { | ||
"Dumb": | ||
{ | ||
"name": "Dumb", | ||
"file": "fuzzer_dumb.py", | ||
"args": '%(seed)s "%(input)s" %(output)s', | ||
"type": "mut" | ||
}, | ||
"Radamsa": | ||
{ | ||
"name": "Radamsa", | ||
"file": "radamsa/bin/radamsa", | ||
"args": '-s %(seed)s -o %(output)s "%(input)s"', | ||
"type": "mut" | ||
}, | ||
"Zzuf": | ||
{ | ||
"name": "Zzuf", | ||
"file": "zzuf/src/zzuf", | ||
"args": '-r 0.01 -s %(seed)s -v -d < "%(input)s" > %(output)s', | ||
"type": "mut" | ||
}, | ||
"Dharma": | ||
{ | ||
"name": "Dharma", | ||
"file": "dharma/dharma/dharma.py", | ||
"args": '-grammars %(grammar)s -seed %(seed)s > %(output)s', | ||
"type": "mut" | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters