logpresso / CVE-2021-44228-Scanner

Vulnerability scanner and mitigation patch for Log4j2 CVE-2021-44228
Apache License 2.0
851 stars 174 forks source link

Feature request: Print starting point of the scan in the output. #54

Closed jlellis closed 2 years ago

jlellis commented 2 years ago

If would be helpful to include the path where the scan was started.

Now:

jlellis@graylog-cmi-008:~$ java -jar scanner-1.3.2.jar /usr/share/java
Logpresso CVE-2021-44228 Vulnerability Scanner 1.3.2 (2021-12-15)

Scanned 1 directories and 2 files
Found 0 vulnerable files
Completed in 0.00 seconds

Suggested:

jlellis@graylog-cmi-008:~$ java -jar scanner-1.3.2.jar /usr/share/java
Logpresso CVE-2021-44228 Vulnerability Scanner 1.3.2 (2021-12-15)
Scanning /usr/share/java

Scanned 1 directories and 2 files
Found 0 vulnerable files
Completed in 0.00 seconds
xeraph commented 2 years ago

@jlellis Just released v1.4.0. Added scanning directory like this:

Logpresso CVE-2021-44228 Vulnerability Scanner 1.4.0 (2021-12-15)
Scanning directory: c:\
Running scan (9s): scanned 13382 directories, 106337 files, last visit: c:\Users\xeraph\AppData\Local\Yarn\Cache\v1\npm-es6-promise-2.3.0-96edb9f2fdb01995822b263dd8aadab6748181bc\dist\test
Running scan (20s): scanned 28502 directories, 187935 files, last visit: c:\Users\xeraph\AppData\Roaming\Zoom\data\Emojis
Running scan (30s): scanned 48179 directories, 231713 files, last visit: c:\windows\servicing\LCU\Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1348.1.7\amd64_microsoft-windows-peerdist_31bf3856ad364e35_10.0.19041.1151_none_91f4a96c9f464c76\r