Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sydp committed Jul 2, 2024
1 parent 7c1468a commit 8ef7460
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dftimewolf/lib/collectors/osquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,16 @@ def SetUp(
The GRR osquery flow can also be set up to use a custom osquery
configuration on invocation (see
https://osquery.readthedocs.io/en/stable/deployment/configuration/).
https://osquery.readthedocs.io/en/stable/deployment/configuration/)
either:
* as an existing file on the GRR client using remote_configuration_path
* as a temporary file on the GRR client where the content can come from
a file, using local_cofiguration_path, on the user's local machine or a
string value, using configuration_content.
GRR can also collect files based on the results of an Osquery flow using the
file_collection_columns argument.
Args:
query: osquery query.
paths: osquery filepaths.
Expand Down Expand Up @@ -198,7 +201,7 @@ def SetUp(
if configuration_content:
try:
content = json.loads(configuration_content)
except json.JSONDecodeError as err:
except json.JSONDecodeError:
self.ModuleError(
'Osquery configuration does not contain valid JSON.',
critical=True)
Expand Down

0 comments on commit 8ef7460

Please sign in to comment.