Script Templates

Script Details of This linux custom script is to mitigate CVE-2021-44228 and CVE-2021-45046 by following apache's recommended ways.
Script Name Linux_Log_4j_Mitigation.sh
Description This linux custom script is to mitigate CVE-2021-44228 and CVE-2021-45046 by following apache's recommended ways.
Script Arguments Usage 1 : sh Linux-Log-4j-Mitigation.sh "" To find and remove class in vulnerable log4j jar from root path, then restart the specified services (Don't forget to wrap the arguments with double quotes) Usage 2 : sh Linux-Log-4j-Mitigation.sh "" "" To find and remove class in vulnerable log4j jar from the specified paths, then restart the specified services (Don't forget to wrap the arguments with double quotes) Example 1 : sh Linux-Log-4j-Mitigation.sh "tomcat9" Example 2 : sh Linux-Log-4j-Mitigation.sh "tomcat9,apache2" "/var/lib/tomcat9,/etc/apache2"
Exit Code 0
Added Date Dec 22, 2021
Script type sh
Category Vulnerability Mitigation
Platform Linux
Script

Disclaimer: This webpage is intended to provide you information about executing about execting custom script for computers. The information is provided "As Is" without warranty of any kind.