Open Kretikus opened 2 years ago
After 1 Minute of Code Review, I found this weird line.
Does nobody look at the code, before using it (with admin privilidges)?
I noticed that as well. It appears to be a harmless remnant of testing/debugging code that wasn't cleaned up. https://github.com/mergebase/log4j-detector/blob/8cb0604a2bcdcc29daf05a23ec4254112bece746/src/main/java/com/mergebase/log4j/Log4JDetector.java#L207-L214
There are other examples of code — for example, Strings.java — which seem 'strange', but make sense when you consider that this project was developed in a hurry and doesn't have any third-party dependencies.
There are several companies which use this tool to scan all computers of all employees. So my comment was not a critisism of the original authors, but more a call out to all the users of this software to make an own code review before using it! better would be a code contribution... , but I am not in charge of using this software on a corporate level.
Actually, I made a pull request for that in #77 already.
After 1 Minute of Code Review, I found this weird line.
Does nobody look at the code, before using it (with admin privilidges)?