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
enum_applications shows many (but not all) doubled entries #12066
Comments
yup getting the same sort of thing funny how OneDrive only showed up once though, everything else is doubled, wonder if that could help point us in the right direction on what the root of the issue is |
It looks like the crux of this issue is from applications either being installed for all users or for the current user, if it's only installed for the current user (like OneDrive is from my limited googling) it'll show up once, but if it's installed for all users it'll show up twice we seem to pick out the installed applications from these keys:
HKLM vs HKCU, all users vs current EDIT:
No changes to the module that is, this is the same VM I was using earlier but with a few more applications installed, notably VMware Tools @jeffmcjunkin do you have anymore information you can give us? like the target you were running the module against? was it a VM? what windows version? |
It was a VM, at the time Windows 10 x64 Enterprise 1903, now 1909. I see the same fixed behavior now. Maybe it was gremlins? Or some separate fix resolved this as well? |
@jeffmcjunkin thanks for getting back, I'm gonna go ahead and close this issue out since it seems to be working(?) now, if it crops up again let us know and we can take another crack at figuring out how to reproduce it |
I'm sad to say I see this issue again, this time on Windows 10 20H2 with the latest omnibus installer: Windows 10 Enterprise x64 20H2:
Debian 10 x64:
|
Ah! It does matter whether you're in a native architecture process or not. Maybe it's the 32-bit translation layer? Excerpt after
|
Beep boop, I think this issue should've been re-opened, as shown above it may be related to 32-bit translation layers. |
@jeffmcjunkin I haven't looked into this yet, but if the output duplication is caused by the issue you're suggesting - would you want the table to reflect that, or just skip duplicates? |
Personally, I'd either skip duplicates (probably easiest) or avoid the 32-bit registry translation layer (which may be worth solving, to be a template for other modules, if this affects other modules). |
Steps to reproduce
How'd you do it?
meterpreter > run post/windows/gather/enum_applications
Expected behavior
See one entry per application, like the following mockup:
Current behavior
Most applications are listed twice:
System stuff
Metasploit version
I installed Metasploit with:
OS
Running Metasploit on Ubuntu 16.04.6 x64.
Interestingly, this doesn't seem to be due to x86 and x64 (WOW6432Node) entries in the registry. With Notepad++, for example, I searched the entire registry for
Notepad++ (32-bit x86)
and only found one entry, underHKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Notepad++
The text was updated successfully, but these errors were encountered: