Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --resolve to target-query #485

Merged
merged 18 commits into from
Jan 3, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix modifier in target-query
Miauwkeru committed Jan 3, 2024
commit 9265bb07f5341d51bf5a007d2453cf828607b3ed
8 changes: 4 additions & 4 deletions dissect/target/tools/query.py
Original file line number Diff line number Diff line change
@@ -364,15 +364,15 @@ def main():
count = 0
break_out = False

modifier = None
modifier_type = None

if args.resolve:
modifier = modifier.Modifier.RESOLVE
modifier_type = modifier.Modifier.RESOLVE

if args.hash:
modifier = modifier.Modifier.HASH
modifier_type = modifier.Modifier.HASH

modifier_func = modifier.get_modify_function(modifier)
modifier_func = modifier.get_modify_function(modifier_type)

if not len(record_entries):
continue