[리눅스] find - jar파일 내부 class 찾기(log4j2)


log4j 보안이슈와 관련한 영향도 파악을 진행하며 사용한 방법으로..

Jar파일안에 특정 class 파일이 존재하는 jar 파일을 찾는 방법을 정리한다.

방법1

grep 'JndiLookup.class' `find / -name "log4j*.jar"`

방법2

find . -type f -name 'log4j*.jar' | while read LINE; DO ECHO $LINE;jar tvf &LINE | grep "JndiLookup.class";done





© 2021. by tytybro

Powered by tytybro