diff --git a/log4j-finder.py b/log4j-finder.py index c2b6498..566c4bc 100755 --- a/log4j-finder.py +++ b/log4j-finder.py @@ -365,6 +365,8 @@ def main(): print_summary(stats) print(f"\nElapsed time: {elapsed:.2f} seconds") + # If we find vulnerabilities then exit with error code (True = 1) + return stats["vulnerable"] > 0 if __name__ == "__main__": try: