FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

CommandBox Log4j Detect

v1.0.2 CommandBox Modules

This module is a simple wrapper for the Log4j Detect project found here:

https://github.com/whitesource/log4j-detect-distribution

The Log4j Detect project is a native Go binary which will scan any folder of jars for vulnerable files. This module will download the latest binary for your OS and run it.

Installation

Install the module like so:

CommandBox> install commandbox-log4j-detect

On first run, the module will download the latest version of the 3rd party library based on your OS and CPU arch. It will not check or download again on subsequent runs. You can use the --forceBinaryDownload flag when scanning to force it to re-download the latest 3rd party library if you wish.

CommandBox> log4j-detect C:/websites/ --forceBinaryDownload

Usage

Scan the current directory by running the command:

CommandBox> log4j-detect

Scan another directory by specying it as a parameter

CommandBox> log4j-detect C:/ColdFusion2021
CommandBox> log4j-detect /path/to/folder

Scan a list of directories for vulnerable Log4j jars

CommandBox> log4j-detect C:/foo,C:/bar,D:/baz

Scan a all drives on your machine. This can take a very long time.

CommandBox> log4j-detect --scanAllDrives

$ box install commandbox-log4j-detect

No collaborators yet.
 
  • {{ getFullDate("2022-02-25T00:34:56Z") }}
  • {{ getFullDate("2022-03-11T15:11:04Z") }}
  • 1,468
  • 97