the following command detect log4j vulnerability in Linux systems:
sudo grep -r --include "*.jar" JndiLookup.class /
but it is not working for Solaris systems .
is there any alternatives for Solaris ?
java -jar log4j-detector-2021.12.16.jar
Usage: java -jar log4j-detector-2021.12.16.jar [--verbose] [paths to scan...]
java -jar logpresso-log4j2-scan-1.7.0.jar [--fix] target_path
I'm not familiar with Solaris, but while some Linux Distro's use sudo by default to perform commands that should only be done by root, others haven't even installed sudo or set it up... In those cases you have to login as root & then enter your command without sudo, or install sudo from your repository then set it up...