Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
MyLog4Shell — 멀티스레딩을 사용하여 URL 목록에서 "Log4j" Java 라이브러리 취약점(CVE-2021-44228)을 탐지하는 간단한 Python 3 스크립트 | Kitploit
도구/GitHubGitHub/kal1gh0st/mylog4shell
ReconnaissanceVulnerability ScannersWeb Vulnerability ScannersExploitationInformation GatheringDNS Analysis
GitHubkal1gh0st/mylog4shell

MyLog4Shell

멀티스레딩을 사용하여 URL 목록에서 "Log4j" Java 라이브러리 취약점(CVE-2021-44228)을 탐지하는 간단한 Python 3 스크립트

저장소 보기
174년 전아직 검토되지 않음

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유

MyLog4Shell

log4j RCE 악용 탐지

이 명령어와 규칙을 사용하여 log4j RCE 취약점(CVE-2021-44228)에 대한 악용 시도를 검색할 수 있습니다.

Grep / Zgrep

이 명령어는 /var/log 및 /usr/var/log 폴더와 모든 하위 폴더에 있는 압축되지 않은 파일에서 악용 시도를 검색합니다.

root@kitploit:~
sudo egrep -I -i -r '\$(\{|%7B)jndi:(ldap[s]?|rmi|dns|nis|iiop|corba|nds|http):/[^\n]+' /var/log

이 명령어는 /var/log 폴더와 모든 하위 폴더에 있는 압축 파일에서 악용 시도를 검색합니다.

root@kitploit:~
sudo find /var/log -name \*.gz -print0 | xargs -0 zgrep -E -i '\$(\{|%7B)jndi:(ldap[s]?|rmi|dns|nis|iiop|corba|nds|http):/[^\n]+'

Grep / Zgrep - 난독화된 변종

이 명령어들은 난독화된 변종까지 다루지만 일치 항목에서 파일 이름이 누락됩니다.

이 명령어는 /var/log 폴더와 모든 하위 폴더에 있는 압축되지 않은 파일에서 악용 시도를 검색합니다.

root@kitploit:~
sudo find /var/log/ -type f -exec sh -c "cat {} | sed -e 's/\${lower://'g | tr -d '}' | egrep -I -i 'jndi:(ldap[s]?|rmi|dns|nis|iiop|corba|nds|http):'" \;

이 명령어는 /var/log 폴더와 모든 하위 폴더에 있는 압축 파일에서 악용 시도를 검색합니다.

root@kitploit:~
sudo find /var/log/ -name '*.gz' -type f -exec sh -c "zcat {} | sed -e 's/\${lower://'g | tr -d '}' | egrep -i 'jndi:(ldap[s]?|rmi|dns|nis|iiop|corba|nds|http):'" \;

Log4Shell-Rex

가장 난독화된 변종까지도 다루는 대규모 정규식: https://github.com/back2root/log4shell-rex

root@kitploit:~
(?:\$|%(?:25)*24|\\(?:0024|0{0,2}44))(?:{|%(?:25)*7[Bb]|\\(?:007[Bb]|0{0,2}173)).{0,30}?((?:[Jj]|%(?:25)*[46][Aa]|\\(?:00[46][Aa]|0{0,2}1[15]2)).{0,30}?(?:[Nn]|%(?:25)*[46][Ee]|\\(?:00[46][Ee]|0{0,2}1[15]6)).{0,30}?(?:[Dd]|%(?:25)*[46]4|\\(?:00[46]4|0{0,2}1[04]4)).{0,30}?(?:[Ii]|%(?:25)*[46]9|\\(?:00[46]9|0{0,2}1[15]1)|ı).{0,30}?(?::|%(?:25)*3[Aa]|\\(?:003[Aa]|0{0,2}72)).{0,30}?((?:[Ll]|%(?:25)*[46][Cc]|\\(?:00[46][Cc]|0{0,2}1[15]4)).{0,30}?(?:[Dd]|%(?:25)*[46]4|\\(?:00[46]4|0{0,2}1[04]4)).{0,30}?(?:[Aa]|%(?:25)*[46]1|\\(?:00[46]1|0{0,2}1[04]1)).{0,30}?(?:[Pp]|%(?:25)*[57]0|\\(?:00[57]0|0{0,2}1[26]0))(?:.{0,30}?(?:[Ss]|%(?:25)*[57]3|\\(?:00[57]3|0{0,2}1[26]3)))?|(?:[Rr]|%(?:25)*[57]2|\\(?:00[57]2|0{0,2}1[26]2)).{0,30}?(?:[Mm]|%(?:25)*[46][Dd]|\\(?:00[46][Dd]|0{0,2}1[15]5)).{0,30}?(?:[Ii]|%(?:25)*[46]9|\\(?:00[46]9|0{0,2}1[15]1)|ı)|(?:[Dd]|%(?:25)*[46]4|\\(?:00[46]4|0{0,2}1[04]4)).{0,30}?(?:[Nn]|%(?:25)*[46][Ee]|\\(?:00[46][Ee]|0{0,2}1[15]6)).{0,30}?(?:[Ss]|%(?:25)*[57]3|\\(?:00[57]3|0{0,2}1[26]3))|(?:[Nn]|%(?:25)*[46][Ee]|\\(?:00[46][Ee]|0{0,2}1[15]6)).{0,30}?(?:[Ii]|%(?:25)*[46]9|\\(?:00[46]9|0{0,2}1[15]1)|ı).{0,30}?(?:[Ss]|%(?:25)*[57]3|\\(?:00[57]3|0{0,2}1[26]3))|(?:.{0,30}?(?:[Ii]|%(?:25)*[46]9|\\(?:00[46]9|0{0,2}1[15]1)|ı)){2}.{0,30}?(?:[Oo]|%(?:25)*[46][Ff]|\\(?:00[46][Ff]|0{0,2}1[15]7)).{0,30}?(?:[Pp]|%(?:25)*[57]0|\\(?:00[57]0|0{0,2}1[26]0))|(?:[Cc]|%(?:25)*[46]3|\\(?:00[46]3|0{0,2}1[04]3)).{0,30}?(?:[Oo]|%(?:25)*[46][Ff]|\\(?:00[46][Ff]|0{0,2}1[15]7)).{0,30}?(?:[Rr]|%(?:25)*[57]2|\\(?:00[57]2|0{0,2}1[26]2)).{0,30}?(?:[Bb]|%(?:25)*[46]2|\\(?:00[46]2|0{0,2}1[04]2)).{0,30}?(?:[Aa]|%(?:25)*[46]1|\\(?:00[46]1|0{0,2}1[04]1))|(?:[Nn]|%(?:25)*[46][Ee]|\\(?:00[46][Ee]|0{0,2}1[15]6)).{0,30}?(?:[Dd]|%(?:25)*[46]4|\\(?:00[46]4|0{0,2}1[04]4)).{0,30}?(?:[Ss]|%(?:25)*[57]3|\\(?:00[57]3|0{0,2}1[26]3))|(?:[Hh]|%(?:25)*[46]8|\\(?:00[46]8|0{0,2}1[15]0))(?:.{0,30}?(?:[Tt]|%(?:25)*[57]4|\\(?:00[57]4|0{0,2}1[26]4))){2}.{0,30}?(?:[Pp]|%(?:25)*[57]0|\\(?:00[57]0|0{0,2}1[26]0))(?:.{0,30}?(?:[Ss]|%(?:25)*[57]3|\\(?:00[57]3|0{0,2}1[26]3)))?).{0,30}?(?::|%(?:25)*3[Aa]|\\(?:003[Aa]|0{0,2}72)).{0,30}?(?:\/|%(?:25)*2[Ff]|\\(?:002[Ff]|0{0,2}57)|\${)|(?:[Bb]|%(?:25)*[46]2|\\(?:00[46]2|0{0,2}1[04]2)).{0,30}?(?:[Aa]|%(?:25)*[46]1|\\(?:00[46]1|0{0,2}1[04]1)).{0,30}?(?:[Ss]|%(?:25)*[57]3|\\(?:00[57]3|0{0,2}1[26]3)).{0,30}?(?:[Ee]|%(?:25)*[46]5|\\(?:00[46]5|0{0,2}1[04]5)).{2,60}?(?::|%(?:25)*3[Aa]|\\(?:003[Aa]|0{0,2}72))(JH[s-v]|[\x2b\x2f-9A-Za-z][CSiy]R7|[\x2b\x2f-9A-Za-z]{2}[048AEIMQUYcgkosw]ke[\x2b\x2f-9w-z]))

Log4Shell Detector (Python)

악용 코드의 가장 난독화된 형태를 탐지하는 Python 기반 스캐너.

https://github.com/Neo23x0/log4shell-detector

Linux에서 Log4j 찾기

root@kitploit:~
ps aux | egrep '[l]og4j'
find / -iname "log4j*"
lsof | grep log4j
grep -r --include *.[wj]ar "JndiLookup.class" / 2>&1 | grep matches

Windows에서 취약한 Log4j 찾기

root@kitploit:~
gci 'C:\' -rec -force -include *.jar -ea 0 | foreach {select-string "JndiLookup.class" $_} | select -exp Path

작성자: @CyberRaiju

YARA

https://github.com/Neo23x0/signature-base/blob/master/yara/expl_log4j_cve_2021_44228.yar

모두 도움

이 탐지 시도로 확인되지 않은 발견 사항을 보고해 주세요.

Using setup.py


log4j-detect

멀티스레딩을 사용하여 URL 목록에 대해 "Log4j" Java 라이브러리 취약점 (CVE-2021-44228)을 탐지하는 간단한 Python 3 스크립트


Python 3로 개발된 "log4j-detect.py" 스크립트는 URL 목록이 CVE-2021-44228에 취약한지 탐지하는 역할을 합니다.

이를 위해 스레드(더 높은 성능)를 사용하여 지정된 목록의 각 URL에 GET 요청을 보냅니다. GET 요청에는 성공 시 Burp Collaborator / interactsh로 DNS 요청을 반환하는 페이로드가 포함됩니다. 이 페이로드는 테스트 매개변수와 "User-Agent" / "Referer" / "X-Forwarded-For" / "Authentication" 헤더로 전송됩니다.

마지막으로, 호스트가 취약한 경우 Burp Collaborator / interactsh 페이로드의 서브도메인 접두사와 스크립트 출력에 식별 번호가 나타나며, 이를 통해 DNS를 통해 응답한 호스트를 알 수 있습니다.

이 스크립트는 취약점의 DNS 탐지만 처리하며 원격 명령 실행을 테스트하지 않는다는 점에 유의해야 합니다.

log4j-detect.py 다운로드

root@kitploit:~
wget https://github.com/takito1812/log4j-detect/raw/main/log4j-detect.py

log4j-detect.py 실행

root@kitploit:~
python3 log4j-detect.py <urlFile> <collaboratorPayload>

imagen

도구 다운로드