Open Haeckli opened 2 years ago
Yes, the tool now prints zero bytes to STDOUT if no bad log4j versions are found. And exits with exit-code zero (success).
You can use "--json" mode if you'd like to see output in this "no vulns found" case:
$ java -jar log4j-detector-2021.12.20.jar --json /tmp > hits.json
$ cat hits.json
{"hits":[
{"_THE_END_":true}]}
It seems like the latest version (2021.12.20) does not redirect the output anmore. Instead all output goes to the screen and the output file has 0 bytes length.... Did I miss anything? (it works as expected in vers: 2021.12.17)
See sample screen output below:
C:\log4j>dir 21.12.2021 15:12