Skip to content

Commit

Permalink
Merge pull request #1617 from volatilityfoundation/dgmcdona/windows_e…
Browse files Browse the repository at this point in the history
…nvars_silent_vars

Windows Envars: Remove extra config check
  • Loading branch information
ikelos authored Feb 13, 2025
2 parents 8dceeb2 + 4712caf commit 4172a57
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions volatility3/framework/plugins/windows/envars.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,13 @@ def _get_silent_vars(self) -> List[str]:
return values

def _generator(self, data):
silent_vars = []
if self.config.get("SILENT", None):
silent_vars = self._get_silent_vars()
silent_vars = self._get_silent_vars() if self.config.get("SILENT") else []

for task in data:
for var, val in task.environment_variables():
if self.config.get("silent", None):
if var in silent_vars:
continue
if var in silent_vars:
continue

yield (
0,
(
Expand Down

0 comments on commit 4172a57

Please sign in to comment.