-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for --module-data
option in scan
command
#183
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
cli/src/commands/dump.rs
Outdated
@@ -22,6 +22,7 @@ enum SupportedModules { | |||
Elf, | |||
Pe, | |||
Dotnet, | |||
Eml, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This Eml
is an internal module?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, should not be there
--module-data
option in scan
command
Adds support for the `--module-data` option. This required some changes in the API, particularly the introduction of two new methods to `Scanner`. --------- Co-authored-by: Victor M. Alvarez <[email protected]>
The pre-existing code did not support the additional input (the -x flag input) necessary for some modules. Hence a modification of the relevant part of the code was made to enable passing a more complex struct to the
#[module_main]
function (as opposed to just a single_: &[u8]
input argument).The implementation itself should be in line with what was discussed with @TommYDeeee