https://github.com/1lann/log4shelldetect
Rapidly scan filesystems for Java programs potentially vulnerable to Log4Shell (CVE-2021-44228) or "that Log4j JNDI exploit" by inspecting the class paths inside files
https://github.com/1lann/log4shelldetect
cve-2021-44228 cve-2021-45046 log4j log4j2 log4shell scanner vulnerability-scanners
Last synced: 7 months ago
JSON representation
Rapidly scan filesystems for Java programs potentially vulnerable to Log4Shell (CVE-2021-44228) or "that Log4j JNDI exploit" by inspecting the class paths inside files
- Host: GitHub
- URL: https://github.com/1lann/log4shelldetect
- Owner: 1lann
- License: unlicense
- Created: 2021-12-11T01:08:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-05T23:07:50.000Z (about 4 years ago)
- Last Synced: 2025-03-05T00:01:51.432Z (10 months ago)
- Topics: cve-2021-44228, cve-2021-45046, log4j, log4j2, log4shell, scanner, vulnerability-scanners
- Language: Go
- Homepage:
- Size: 11.7 MB
- Stars: 45
- Watchers: 6
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# log4shelldetect
Scans a file or folder recursively for Java programs that may be vulnerable to:
- CVE-2021-44228 (Log4Shell) (v2.0.x - v2.14.x)
- CVE-2021-45046 (v2.15.x)
- CVE-2021-45105 (v2.16.x)[^*]
[^*]: 2.12.2 detection is not available yet pending 2.12.3's release which I will need to test. 2.12.2 will appear as patched.
by inspecting the class paths inside files.
If you only want possibly vulnerable files to be printed rather than all files, run with `-mode list`.

## Usage
```
Usage: log4shelldetect [options]
Options:
-include-zip
include zip files in the scan
-mode string
the output mode, either "report" (every java archive pretty printed) or "list" (list of potentially vulnerable files) (default "report")
```
## License
Code here is released to the public domain under [unlicense](/LICENSE).
With the exception of `velocity-1.1.9.jar` which is an example vulnerable `.jar` file part of [Velocity](https://github.com/PaperMC/Velocity) which is licensed under GPLv3.