logpresso / CVE-2021-44228-Scanner

Vulnerability scanner and mitigation patch for Log4j2 CVE-2021-44228
Apache License 2.0
850 stars 174 forks source link

Undo the fix #242

Closed desiklolan closed 2 years ago

desiklolan commented 2 years ago

Hi,

Can you please develop a method to undo the fix option? so it puts back JNDI class or any class it removed? without the path.

xeraph commented 2 years ago

@desiklolan Use --restore option. If you --fix any file, log4j2_scan_backup_yyyyMMdd_HHmmss.zip file will be generated. You can undo the fix for all files using --restore log4j2_scan_backup_yyyyMMdd_HHmmss.zip. See also https://github.com/logpresso/CVE-2021-44228-Scanner/issues/150