enum_proxy: Cleanup and support non-Meterpreter sessions #17332
Merged
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.
Notes
module meta information.With a few small changes, this module now works for local sessions on non-Meterpreter sessions (shell, powershell).
Support for non-Meterpreter session with the Registry library has been improved recently. Unfortunately the Registry libraries do not support reading from a remote registry on non-Meterpreter sessions. For non-Meterpreter sessions, this module will fail with
BadConfig
ifrhost
is set. Given that this is apost/gather
module I expect that gathering from the local system is the primary expected use case. I'm not too concerned about remote registry functionality.For what it's worth, the remote registry functionality didn't work for me (both before and after this change). Possibly user error, but also outside my use case. Unless I've overlooked something silly, the changes in this module should preserve the existing logic for remote registry functionality.