Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions acquire/acquire.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,24 @@ def get_spec_additions(cls, target: Target, cli_args: argparse.Namespace) -> Ite
return spec


@register_module("--sharepoint")
class SharePoint(Module):
DESC = "Windows SharePoint Server logs"

@classmethod
def get_spec_additions(cls, target: Target, cli_args: argparse.Namespace) -> Iterator[tuple]:
spec = set()
key = "HKLM\\SOFTWARE\\Microsoft\\Shared Tools\\Web Server Extensions\\*\\WSS"

for reg_key in target.registry.glob_ext(key):
try:
spec.add(("path", reg_key.value("LogDir").value))
except Exception: # noqa: PERF203
pass

return spec


@register_module("--prefetch")
class Prefetch(Module):
DESC = "Windows Prefetch files"
Expand Down Expand Up @@ -2113,6 +2131,7 @@ class WindowsProfile:
WindowsNotifications,
SSH,
IIS,
SharePoint,
TextEditor,
Docker,
MSSQL,
Expand Down
Loading