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

Processing Json output #3

Open
agibbons27 opened this issue Mar 3, 2022 · 0 comments
Open

Processing Json output #3

agibbons27 opened this issue Mar 3, 2022 · 0 comments

Comments

@agibbons27
Copy link

The current json output is not formatted to allow for easy processing of BitsParser output in additional tools. There is a small change that can make the output easier to process.

https://github.com/fireeye/BitsParser/blob/master/BitsParser.py#L341

Current output code:

# Output unique jobs
if job.hash not in self.visited_jobs:
    formatted_job = json.dumps(job.job_dict, indent=4)
    print(formatted_job)

Potential change:

# Output unique jobs
if job.hash not in self.visited_jobs:
    json.dump(job.job_dict, sys.stdout)
    print()

The print() call is needed to ensure each result in the output file is on a separate line.

Maybe an option could be added to specify output type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant