From 1c24253d9a8a98cddc73f2c6049d16bbd1be1314 Mon Sep 17 00:00:00 2001 From: Thomas Chopitea Date: Sun, 24 Mar 2024 10:29:33 +0000 Subject: [PATCH] Adjust parameters, add logging --- dftimewolf/lib/collectors/grr_hosts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dftimewolf/lib/collectors/grr_hosts.py b/dftimewolf/lib/collectors/grr_hosts.py index 4d4840ab5..a36ea91c6 100644 --- a/dftimewolf/lib/collectors/grr_hosts.py +++ b/dftimewolf/lib/collectors/grr_hosts.py @@ -361,6 +361,7 @@ def _DownloadFiles(self, client: Client, flow_id: str) -> Optional[str]: os.makedirs(flow_output_dir, exist_ok=True) if grr_flow.Get().data.name == "TimelineFlow": + self.logger.info("Downloading timeline from GRR") self._DownloadTimeline(grr_flow, flow_output_dir) return flow_output_dir @@ -378,8 +379,9 @@ def _DownloadFiles(self, client: Client, flow_id: str) -> Optional[str]: self.logger.warning( "Large files detected, downloading blobs instead of archive..." ) - self._DownloadBlobs(grr_flow, flow_output_dir) + self._DownloadBlobs(client, files, flow_output_dir) else: + self.logger.info("Downloading file archive from GRR") self._DownloadArchive(grr_flow, flow_output_dir) return flow_output_dir