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

Gate output when in json mode #119

Merged

Conversation

DocEmmetBrown
Copy link
Contributor

When running a local scan with wraith scanLocalPath --local-paths $HOME/some/random/dir/ --scan-tests --json --signature-path "$HOME/.wraith/signatures", the output was :

Enumerating Paths
{
  properly formed json
}
Webserver:  false

In order to be able to properly deal with the command output with a regular JSON parser, and to not have to pre-process it, It felt interesting to prevent the first and last output lines to be printed when outputting in CSV or JSON format.

@codeclimate
Copy link

codeclimate bot commented Oct 22, 2021

Code Climate has analyzed commit bd66229 and detected 0 issues on this pull request.

View more on Code Climate.

@mattyjones
Copy link
Collaborator

mattyjones commented Jun 22, 2022

@DocEmmetBrown Thanks for this. No idea how I missed it before!

@mattyjones mattyjones merged commit 57fea83 into N0MoreSecr3ts:master Jun 22, 2022
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

Successfully merging this pull request may close these issues.

2 participants