Skip to content

Commit 20d2946

Browse files
authored
Add collection of SharePoint Server logs (#257)
1 parent 884e5fd commit 20d2946

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

acquire/acquire.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,24 @@ def get_spec_additions(cls, target: Target, cli_args: argparse.Namespace) -> Ite
859859
return spec
860860

861861

862+
@register_module("--sharepoint")
863+
class SharePoint(Module):
864+
DESC = "Windows SharePoint Server logs"
865+
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\\*\\WSS"
870+
871+
for reg_key in target.registry.glob_ext(key):
872+
try:
873+
spec.add(("path", reg_key.value("LogDir").value))
874+
except Exception: # noqa: PERF203
875+
pass
876+
877+
return spec
878+
879+
862880
@register_module("--prefetch")
863881
class Prefetch(Module):
864882
DESC = "Windows Prefetch files"
@@ -2113,6 +2131,7 @@ class WindowsProfile:
21132131
WindowsNotifications,
21142132
SSH,
21152133
IIS,
2134+
SharePoint,
21162135
TextEditor,
21172136
Docker,
21182137
MSSQL,

0 commit comments

Comments
 (0)