byte-mutator
byte-mutator
is a crate for defining a set of rules by which to mutate byte arrays. It's intented to be used as part
of a fuzzing workflow to configure how you want your input mutated. For example, you might want to do one pass where
you don't mess with the header of your message, and you only mutate the body -- or you could mutate them differently.
Example
This is an example of a mutator configured to flip bits forever.
[[]]
# Iteration count at which to start the loop (useful for starting over from a future state)
= 0
# Optional range to limit the number of times that this stage runs
= "Unlimited"
# A list of mutations to perform on this stage
[[]]
# Must be a variant of the MutatorTypes enum
= { = { = 1 }}
let mut bytes = new_from_config;
for _ in 0..20
Release History
- 0.1.0
- Initial release
Meta
Ryan Ragona – @ryanragona – https://github.com/ragona
Distributed under the MTT license. See LICENSE
for more information.
Contributing
Always happy to see PRs or Issues.
To contribute:
- Fork it (https://github.com/ragona/yourproject/byte-mutator)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Requesti