N0MoreSecr3ts / wraith

Uncover forgotten secrets and bring them back to life, haunting security and operations teams.
MIT License
206 stars 42 forks source link

Gate output when in json mode #119

Closed DocEmmetBrown closed 2 years ago

DocEmmetBrown commented 2 years ago

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[bot] commented 2 years ago

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

View more on Code Climate.

mattyjones commented 2 years ago

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