diff --git a/log4j-scanner/pom.xml b/log4j-scanner/pom.xml index ddad0d6..cc85ec2 100644 --- a/log4j-scanner/pom.xml +++ b/log4j-scanner/pom.xml @@ -6,7 +6,7 @@ de.inett log4j-scanner - 2.4.1 + 2.5.3 jar CMK wrapper for Logpresso Log4j2 Scanner @@ -117,7 +117,7 @@ com.github.logpresso CVE-2021-44228-Scanner - ${project.version} + 2.5.3 diff --git a/log4j-scanner/src/main/java/de/inett/cmk/log4shell/CliCheck.java b/log4j-scanner/src/main/java/de/inett/cmk/log4shell/CliCheck.java index 97ed3d6..044ee07 100644 --- a/log4j-scanner/src/main/java/de/inett/cmk/log4shell/CliCheck.java +++ b/log4j-scanner/src/main/java/de/inett/cmk/log4shell/CliCheck.java @@ -35,7 +35,7 @@ public void run(String[] args) throws Exception { metrics.setAccessible(true); metrics.set(this, new Metrics()); - run(); + scanAndFix(); } private static String[] prepareArguments(String[] cargs) { @@ -54,10 +54,12 @@ private static String[] prepareArguments(String[] cargs) { default: List t_args = new LinkedList<>(); t_args.add("--scan-zip"); + t_args.add("--scan-log4j1"); t_args.add("--scan-logback"); for (String arg : cargs) { if ( ! ( arg.equals("--scan-zip") + || arg.equals("--scan-log4j1") || arg.equals("--scan-logback") )) { t_args.add(arg);