refactored mutation functions to offer a generic toolkit for mutating data#37
Open
f0rki wants to merge 6 commits intoawslabs:devfrom
Open
refactored mutation functions to offer a generic toolkit for mutating data#37f0rki wants to merge 6 commits intoawslabs:devfrom
f0rki wants to merge 6 commits intoawslabs:devfrom
Conversation
… data. * Added a `TextInput` type that implements mutators useful only for text-based inputs. * Added several havoc mutation helper functions usable by custom mutators. * Added helper functions to mutate arrays/vec of numbers. * Generalized a couple of helper functions to be generic over all copy types, etc.
…ata.
Fixed some issues with the text-based mutator code along the way.
* The new example has two artificial vulnerabilities that can be triggered
using the right arguments to a JS function.
* Added some tweaks to the text-based mutations.
* In order to avoid breakpoints on longjump and similar functions, we
need to properly detach gdb. This requires a pattern of
```
__asm("int3");
sleep(1);
__asm("vmcall");
```
and also the `SNAPSHOT_GDB_MODE="detach"` definition. To allow
gdbsnapshot.py to do its thing, but then also to detach gdb before the
snapshot is triggered.
…n that can e.g., splice multiple lines of text from another corpus entry
…d more interesting values. * Previously those arrays contains `0, 1, 2, 3, 4` repeatedly, because they include `u8::MIN` and `u16::MIN`, which both is just `0`. * Now they also include the `::MAX` values for the signed integer types, which together with the unsigned `::MAX` covers the whole range of signed types too.
…tion. + some fixes and a `MockRng` type useful for tests.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
useful when writing custom input formats/mutators.
TextInputtype that does some mutations specific to.. well text input.havocmodule with several mutation functions usable by custom mutators, if you "just want to mutate a bunch of bytes".