Macrosยง
Staticsยง
- INTERESTING_
8 ๐ - INTERESTING_
16 ๐ - Interesting 16-bit values to inject.
- INTERESTING_
32 ๐ - Interesting 32-bit values to inject.
- THREE_
SIGMA_ ๐MULTIPLIERS - Multipliers used to define the 3 standard deviation range of a Gaussian-like curve. For example, a multiplier of 0.25 means the +/-3 standard deviation bounds are +/-25% of the original value.
Traitsยง
- BitMutator ๐
- Mutator that changes the current value by flipping a random bit.
- Bound
Mutator - Mutator that bounds the current value of an uint or int in the given range. The mutated value is always different from the current value.
- Gaussian
Noise ๐Mutator - Mutator that changes the current value of an uint or int by applying gaussian noise.
- Increment
Decrement ๐Mutator - Mutator that randomly increments or decrements an uint or int.
- Interesting
Word ๐Mutator - Mutator that changes the current value by randomly injecting interesting words (for uint, int, address and fixed bytes) - see https://github.com/AFLplusplus/LibAFL/blob/90cb9a2919faf386e0678870e52784070cdac4b6/crates/libafl/src/mutators/mutations.rs#L88-L123.
Functionsยง
- apply_
scale_ ๐to_ bytes - Applies a floating-point scale factor to a byte slice representing an unsigned or signed integer.
- flip_
random_ ๐bit_ in_ slice - Flips a random bit in the given mutable byte slice.
- mutate_
interesting_ ๐byte_ slice - Mutates a random byte in the given byte slice by replacing it with a randomly chosen interesting 8-bit value.
- mutate_
interesting_ ๐dword_ slice - Mutates a random 4-byte (32-bit) region in the byte slice with a randomly chosen interesting 32-bit value.
- mutate_
interesting_ ๐word_ slice - Mutates a random 2-byte (16-bit) region in the byte slice with a randomly chosen interesting 16-bit value.
- sample_
gaussian_ ๐scale - Samples a scale factor from a pseudo-Gaussian distribution centered around 1.0.
- validate_
int_ ๐mutation - Returns mutated int value if different from the original value and if it fits in the given size, otherwise None.
- validate_
uint_ ๐mutation - Returns mutated uint value if different from the original value and if it fits in the given size, otherwise None.