Skip to content

Windows: Allow windows.dlllist to report back DLLs from wow64 processes#1572

Merged
ikelos merged 9 commits intovolatilityfoundation:developfrom
hsarkey:hsarkey/wow64-dlllist
Feb 5, 2025
Merged

Windows: Allow windows.dlllist to report back DLLs from wow64 processes#1572
ikelos merged 9 commits intovolatilityfoundation:developfrom
hsarkey:hsarkey/wow64-dlllist

Conversation

@hsarkey
Copy link
Contributor

@hsarkey hsarkey commented Jan 24, 2025

Updates to allow windows.dlllist to report back DLLs from wow64 processes. Created a new get_peb32() function and created a new symbol table (framework/symbols/windows/wow64.json).

@hsarkey hsarkey force-pushed the hsarkey/wow64-dlllist branch from be26247 to af9bd53 Compare January 24, 2025 18:38
Copy link
Member

@ikelos ikelos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is really nice! I like the way you've handled dealing with both type of pebs irrespective of which what it actually is and you've handled all the corner cases I can think of, good work! Also, awesome comments, just what was needed when it was needed! 5:D

Just a couple of little points, I think it's probably better to check if the pointer's right, than check if it's specifically an unsigned long and then cast it. Really good though, thanks!

"""Constructs a PEB32 object"""
if constants.BANG not in self.vol.type_name:
raise ValueError(
f"Invalid symbol table name syntax (no {constants.BANG} found)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't recall if this is strictly true. I suspect it's true but I think it's possible you could ask the symbol table directly for this type, and it wouldn't necessarily include the table name. Were you running into errors or is this just defensive coding?

@ikelos ikelos added the awaiting-author-response This issue/pull request needs attention from the original author label Jan 25, 2025
@ikelos
Copy link
Member

ikelos commented Feb 5, 2025

Ok, looks good now, thanks. Still not sure the constants.BANG check is necessary, but it shouldn't hurt to leave it in... 5:)

@ikelos ikelos merged commit eadd6d2 into volatilityfoundation:develop Feb 5, 2025
13 checks passed
@hsarkey
Copy link
Contributor Author

hsarkey commented Feb 5, 2025

Thanks for the feedback and review! For what it's worth, I did run into errors without the constants.BANG check, so felt it was best to keep it in.

@ikelos
Copy link
Member

ikelos commented Feb 5, 2025

Thanks for the feedback and review! For what it's worth, I did run into errors without the constants.BANG check, so felt it was best to keep it in.

That's fair enough. We probably want to iron those out at some point, but good to know it was necessary at least. Thanks for reporting back! 5:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-author-response This issue/pull request needs attention from the original author parity-release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants