We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
glob_ext
1 parent 8f2bb24 commit 11a1ebcCopy full SHA for 11a1ebc
acquire/acquire.py
@@ -866,10 +866,13 @@ class SPSE(Module):
866
@classmethod
867
def get_spec_additions(cls, target: Target, cli_args: argparse.Namespace) -> Iterator[tuple]:
868
spec = set()
869
- key = "HKLM\\SOFTWARE\\Microsoft\\Shared Tools\\Web Server Extensions\\16.0\\WSS"
+ key = "HKLM\\SOFTWARE\\Microsoft\\Shared Tools\\Web Server Extensions\\*\\WSS*"
870
871
- for reg_key in target.registry.keys(key):
872
- spec.add(("path", reg_key.value("LogDir").value))
+ for reg_key in target.registry.glob_ext(key):
+ try:
873
+ spec.add(("path", reg_key.value("LogDir").value))
874
+ except Exception:
875
+ pass
876
877
return spec
878
0 commit comments