
This powershell script is intended to be used by anyone looking to remediate the Log4j Vulnerability within their environment. It can target multiple machines and run remotely as a job on all or only affected devices.
project_description
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
This powershell script is intended to be used by anyone looking to remediate the Log4j Vulnerability within their environment. It can target multiple machines and run remotely as a job on all or only affected devices.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
You must have the appropriate rights in your environment to run administrative powershell scripts on remote machines.
Clone the repo or download the PowerShell script Clone:
git clone https://github.com/digital-dev/Log4j-CVE-2021-44228-Remediation.git
Download Script:
wget https://raw.githubusercontent.com/digital-dev/Log4j-Remediation/main/Log4j-CVE-2021-44228-Remediation.ps1
Open the script within PowerShell ISE
Set the execution policy to allow script execution.
Set-ExecutionPolicy Bypass -Scope CurrentUser
Add affected computers to the computer array by editing the "Vulnerable Computers" array.
$vulnerable_computers = @"
computer-1
computer-2
computer-n
"@
Update the location where 7z.exe and 7z.dll are located on an accessible network share within the script.
$7zip_download_location = "\\accessible_networkshare"
Once all of your variables have been set, executing the script will launch a job to automatically go through all listed computers, and remove the jndilookup.class from all found jar files.
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Distributed under the GPLv3 License. See LICENSE.txt for more information.
Project Link: https://github.com/digital-dev/Log4j-CVE-2021-44228-Remediation