Source code for CVE-2017-16245 (Avecto Defendpoint bypass originally disclosed by Nettitude)
The PowerShell implementation of CVE-2017-16245 can (and should) be copied and pasted straight into PowerShell. If PowerShell is blocked, try to execute powershell.exe from the command prompt.
For more information, refer to https://labs.nettitude.com/blog/cve-2017-16245-cve-2017-16246-avecto-defendpoint-multiple-vulnerabilities/.