You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's more safe and proper to actually iterate the files in the JAR files instead of scanning through their binary contents:
if unzip -l $jarfile | grep -q JndiLookup.class; then
Should also be faster than the current implementation because the unzip utility knows how to quickly find the class names within the ZIP file dictionary without having to scan/read the entire file.
The text was updated successfully, but these errors were encountered:
belugabehr
changed the title
Unzip JAR Files When Looking for Class
Iterator File List for JAR Files When Looking for Class
Dec 14, 2021
cloudera-scripts-for-log4j/hdp_support_scripts/delete_jndi.sh
Line 31 in 7e37650
I think it's more safe and proper to actually iterate the files in the JAR files instead of scanning through their binary contents:
Should also be faster than the current implementation because the unzip utility knows how to quickly find the class names within the ZIP file dictionary without having to scan/read the entire file.
The text was updated successfully, but these errors were encountered: