How do you feel about adding an extra field with the module name to the objects representing Import and Export table items?
Maybe Importer and Exporter? Or ImportingModule and ExportingModule?
It would make it easer to process them in a pipeline.
Ex:
Get-PEHeader *.dll | % Imports | where FunctionName -eq realloc | where ModuleName -eq msvcrt.dll | foreach Importer
Get-PEHeader *.dll | % Exports | where FunctionName -eq realloc | where ModuleName -eq msvcrt.dll | foreach Exporter
I'd be happy to send you a pull request if you like the idea.
How do you feel about adding an extra field with the module name to the objects representing Import and Export table items?
Maybe Importer and Exporter? Or ImportingModule and ExportingModule?
It would make it easer to process them in a pipeline. Ex: Get-PEHeader *.dll | % Imports | where FunctionName -eq realloc | where ModuleName -eq msvcrt.dll | foreach Importer
Get-PEHeader *.dll | % Exports | where FunctionName -eq realloc | where ModuleName -eq msvcrt.dll | foreach Exporter
I'd be happy to send you a pull request if you like the idea.