Coder Social home page Coder Social logo

zerolp / wdk.net Goto Github PK

View Code? Open in Web Editor NEW
62.0 3.0 1.0 45 KB

Windows Kernel Driver Development in C# with Windows Driver Kit (WDK)

License: GNU General Public License v3.0

C# 100.00%
csharp dotnet kernel kernel-driver naot native nativeaot net7 wdk windows

wdk.net's Introduction

Welcome to WDK.NET

This project provides you the core foundation to build a fully executable Windows kernel driver in C#. The primary backbone technologies of this project are NativeAOT and .NET 7.

Requirements

The requirements are as follows:

Building the sample driver

As of now, the project is set up to require few steps in order to have the driver build successfully. The steps are as follows:

  1. When you first open up the project solution, configure the build configuration to targets release mode rather than debug.
  2. Build the WDK.NET project (Assuming it is in release build mode).
  3. Publish the Sampleriver in Win-x64 and in Release profile.
  4. Currently, the ILC(NativeAOT compiler) will complain that it fails to produce a native executable for linking and the publish will result in a fail. Just simply disregard that error. You will nonetheless see a driver executable file (.sys) in the publish path.

Testing the sample driver

There are multiple ways you can test the driver in action.

  1. A Windows virtual machine with test sign mode on (Most safe and the officially supported method of testing)
  2. Kdmapper and a WinDbg or DbgView in a Windows virtual machine (Hacky and unreliable/unsafe, yet easier to do get-go testing)
  3. Whichever driver testing method you like

TODOs

  • Further port the WDK
  • Instead of having the WDK referenced as a local DLL, properly resolve it as a project dependency (There are some compile issues with this currently)
  • Etc. Please suggest via PR

Documentation

Currently there is no-limited documentation present. If you will, you are more than welcomed to contribute in writing the documentation.

How can I contribute?

You can contribute by creating issues if any, or suggest a fix or feature addition via PRs. When contributing by code, please follow the C# Coding Convention to keep the code organised.

wdk.net's People

Contributors

zerolp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

yuaom

wdk.net's Issues

[Help] Viewing the Sample `DbgPrintEx` output

Mind, I am a newbie to driver development, so bare with me ๐Ÿ˜„

How would you view the SampleDriver's DbgPrintEx ouput?
From my understanding you'd use the DebugView tool for it, but isn't the SampleDriver's output ran at startup...? ๐Ÿ˜…
It would seem that I wouldnt be able to view that, as DebugView isnt listening at that moment...?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.