Windows Driver that can kill any process
- First, you need to install Visual Studio. I have used Visual Studio 2019 version 16.11.16. Other versions might work as well.
- In order to build the driver component, you also need to install the Windows Driver Kit (WDK). Here, I have used WDK for Windows 10, version 2004 (don't worry, it's not from the year 2004).
- Check out Microsoft's other-wdk-downloads page.
- Load the
driver.sln
solution in Visual Studio. - Set the configuration to
Release
and the platform tox64
. - Before building the solution, run
bcdedit.exe -set TESTSIGNING ON
in an elevated command prompt. This allows the driver to be loaded with a real signature, and is going to be automatically signed with a test certificate during the build process. In case you're using BitLocker, be sure to have your recovery key at hand before rebooting.
- Allow the loading of test-signed drivers
bcdedit.exe -set TESTSIGNING ON
. - In case you're using BitLocker, be sure to have your recovery key at hand before rebooting.
sc create pkill type=kernel binPath="path_to_your_driver.sys"
sc start pkill
python3 pkill.py 1234
python3 pkill.py Notepad.exe
sc stop pkill
sc delete pkill