This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Based on https://cyberwatch.fr/cve/cve-2021-44228-log4shell-comment-detecter-et-corriger-cette-vulnerabilite-sur-log4j/ | |
| ## Added "deep" function to scan for the problematic class in each JAR file | |
| ## | |
| ## WARNING: the scan is pretty CPU/disk intensive (beware if you scan huge disks), especially the "deep" function. | |
| ## For critical servers, run it off-hours or in maintenace window | |
| $param1=$args[0] | |
| Write-Output "Starting..." | |
| $jar = @() |