-
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a05f732
feat: support for more complex argument in module main fn
chudicek 4a5413d
refactor: removed commented code
chudicek b9a6140
feat: support for per-module metadata
chudicek 6718dd4
feat: provided separate function
chudicek cca5adf
refactor: cleanup of previous commit
chudicek f5c4d7e
refactor: removed metadata support from `invoke_all` (had not been used)
chudicek b699aa0
refactor: redo of the api for specifying the module metadata
chudicek 1ed2ec7
perf: allowed passing `None` to `scan_with_options_impl` -> no extra …
chudicek 4eea8c3
Merge branch 'main' into module-main-arg
plusvic 8460b90
style: minor style changes.
plusvic 7cfc9e9
docs: reformat and reword help text for the `--module-data` option
plusvic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ enum SupportedModules { | |
Elf, | ||
Pe, | ||
Dotnet, | ||
Eml, | ||
} | ||
|
||
#[derive(Debug, Clone, ValueEnum)] | ||
|
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
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 |
---|---|---|
@@ -1,31 +1,31 @@ | ||
// File generated automatically by build.rs. Do not edit. | ||
{ | ||
#[cfg(feature = "string-module")] | ||
add_module!(modules, "string", string, "string.String", Some("string"), Some(string::__main__ as MainFn)); | ||
#[cfg(feature = "macho-module")] | ||
add_module!(modules, "macho", macho, "macho.Macho", Some("macho"), Some(macho::__main__ as MainFn)); | ||
#[cfg(feature = "pe-module")] | ||
add_module!(modules, "pe", pe, "pe.PE", Some("pe"), Some(pe::__main__ as MainFn)); | ||
#[cfg(feature = "elf-module")] | ||
add_module!(modules, "elf", elf, "elf.ELF", Some("elf"), Some(elf::__main__ as MainFn)); | ||
#[cfg(feature = "text-module")] | ||
add_module!(modules, "text", text, "text.Text", Some("text"), Some(text::__main__ as MainFn)); | ||
#[cfg(feature = "console-module")] | ||
add_module!(modules, "console", console, "console.Console", Some("console"), Some(console::__main__ as MainFn)); | ||
#[cfg(feature = "dotnet-module")] | ||
add_module!(modules, "dotnet", dotnet, "dotnet.Dotnet", Some("dotnet"), Some(dotnet::__main__ as MainFn)); | ||
#[cfg(feature = "lnk-module")] | ||
add_module!(modules, "lnk", lnk, "lnk.Lnk", Some("lnk"), Some(lnk::__main__ as MainFn)); | ||
#[cfg(feature = "elf-module")] | ||
add_module!(modules, "elf", elf, "elf.ELF", Some("elf"), Some(elf::__main__ as MainFn)); | ||
#[cfg(feature = "hash-module")] | ||
add_module!(modules, "hash", hash, "hash.Hash", Some("hash"), Some(hash::__main__ as MainFn)); | ||
#[cfg(feature = "lnk-module")] | ||
add_module!(modules, "lnk", lnk, "lnk.Lnk", Some("lnk"), Some(lnk::__main__ as MainFn)); | ||
#[cfg(feature = "macho-module")] | ||
add_module!(modules, "macho", macho, "macho.Macho", Some("macho"), Some(macho::__main__ as MainFn)); | ||
#[cfg(feature = "magic-module")] | ||
add_module!(modules, "magic", magic, "magic.Magic", Some("magic"), Some(magic::__main__ as MainFn)); | ||
#[cfg(feature = "math-module")] | ||
add_module!(modules, "math", math, "math.Math", Some("math"), Some(math::__main__ as MainFn)); | ||
#[cfg(feature = "pe-module")] | ||
add_module!(modules, "pe", pe, "pe.PE", Some("pe"), Some(pe::__main__ as MainFn)); | ||
#[cfg(feature = "string-module")] | ||
add_module!(modules, "string", string, "string.String", Some("string"), Some(string::__main__ as MainFn)); | ||
#[cfg(feature = "test_proto2-module")] | ||
add_module!(modules, "test_proto2", test_proto2, "test_proto2.TestProto2", Some("test_proto2"), Some(test_proto2::__main__ as MainFn)); | ||
#[cfg(feature = "time-module")] | ||
add_module!(modules, "time", time, "time.Time", Some("time"), Some(time::__main__ as MainFn)); | ||
#[cfg(feature = "test_proto3-module")] | ||
add_module!(modules, "test_proto3", test_proto3, "test_proto3.TestProto3", Some("test_proto3"), Some(test_proto3::__main__ as MainFn)); | ||
#[cfg(feature = "console-module")] | ||
add_module!(modules, "console", console, "console.Console", Some("console"), Some(console::__main__ as MainFn)); | ||
#[cfg(feature = "text-module")] | ||
add_module!(modules, "text", text, "text.Text", Some("text"), Some(text::__main__ as MainFn)); | ||
#[cfg(feature = "time-module")] | ||
add_module!(modules, "time", time, "time.Time", Some("time"), Some(time::__main__ as MainFn)); | ||
} |
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
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
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 |
---|---|---|
@@ -1,29 +1,29 @@ | ||
// File generated automatically by build.rs. Do not edit. | ||
#[cfg(feature = "string-module")] | ||
mod string; | ||
#[cfg(feature = "macho-module")] | ||
mod macho; | ||
#[cfg(feature = "pe-module")] | ||
mod pe; | ||
#[cfg(feature = "elf-module")] | ||
mod elf; | ||
#[cfg(feature = "text-module")] | ||
mod text; | ||
#[cfg(feature = "console-module")] | ||
mod console; | ||
#[cfg(feature = "dotnet-module")] | ||
mod dotnet; | ||
#[cfg(feature = "lnk-module")] | ||
mod lnk; | ||
#[cfg(feature = "elf-module")] | ||
mod elf; | ||
#[cfg(feature = "hash-module")] | ||
mod hash; | ||
#[cfg(feature = "lnk-module")] | ||
mod lnk; | ||
#[cfg(feature = "macho-module")] | ||
mod macho; | ||
#[cfg(feature = "magic-module")] | ||
mod magic; | ||
#[cfg(feature = "math-module")] | ||
mod math; | ||
#[cfg(feature = "pe-module")] | ||
mod pe; | ||
#[cfg(feature = "string-module")] | ||
mod string; | ||
#[cfg(feature = "test_proto2-module")] | ||
mod test_proto2; | ||
#[cfg(feature = "time-module")] | ||
mod time; | ||
#[cfg(feature = "test_proto3-module")] | ||
mod test_proto3; | ||
#[cfg(feature = "console-module")] | ||
mod console; | ||
#[cfg(feature = "text-module")] | ||
mod text; | ||
#[cfg(feature = "time-module")] | ||
mod time; |
Oops, something went wrong.
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.
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