/kernel-task-rs

An xtask to speed up Windows kernel driver development in rust.

Primary LanguageRustApache License 2.0Apache-2.0

kernel-task-rs

An xtask to speed up Windows kernel driver development in rust.

What is kernel-task?

kernel-task is an xtask script that speeds up Windows kernel driver development by completing the repetitive tasks, which are compiling, signing, and deploying the driver. It accomplishes those tasks by sending remote commands to the second system using SSH. kernel-task supports logging through a file.

Requirements

  1. Install xtask.
  2. A second system where the driver will run.
  3. Logging into a file, if you are using VMWare follow memn0ps instructions to setup serial logging.

Setup

  1. Setup an SSH server with key-based authentication.
  2. Enable testsigning in the second system.
  3. Follow xtask steps in order to get it working.
  4. Modify constants with "REQUIRED" to what they should be in your case in main.rs.

Commands

  • cargo task build builds the driver.
  • cargo task sign signs the driver with a testsigning certificate.
  • cargo task deploy deploys the built and signed driver in the second system.
  • cargo task bsd aka build, sign and deploy.

For release builds: add release at the end.

Extra

Open an issue if you are experiencing, make it detailed if possible. PRs are welcome.

Special thanks