Giter Site home page Giter Site logo

please teach me about kdu HOT 3 CLOSED

hfiref0x avatar hfiref0x commented on July 24, 2024
please teach me

from kdu.

Comments (3)

hfiref0x avatar hfiref0x commented on July 24, 2024 1

PsSetCreateProcessNotifyRoutine now is just a wrapper for PspSetCreateProcessNotifyRoutine, the same as PsSetCreateProcessNotifyRoutineEx, previously in Vista/XP times AFAIR it wasn't implemented that way. Inside it calls MmVerifyCallbackFunctionCheckFlags which check if driver is loaded and code is compiled with /INTEGRITYCHECK linker setting. First check accomplished by walking loaded modules list (KLDR_DATA_TABLE_ENTRY) and looking for address of supplied notify routine to be in range of one of the loaded modules. If it found then KLDR_DATA_TABLE_ENTRY->Flag checked against 0x20 value. In case of any error STATUS_ACCESS_DENIED will be returned.

You need to manually set this flag for your DriverObject->DriverSection->Flags. To bypass loaded module list check just search in google for various solutions. Most of them advising to use trampoline jump set somewhere in the innocent legit driver, so MmVerifyCallbackFunctionCheckFlags will validate legit driver instead of your mapped one. For example you can load Process Explorer driver, overwrite it driver dispatch with your small trampoline which will just jump to your real notify handler and install notify routine by supplying address of ProcessExplorer ovewritten code.

from kdu.

xxTree avatar xxTree commented on July 24, 2024

Thank you for answering, there is another question, why do I use WskRegister() in ksocket to cause a BSOD? Thanks~

from kdu.

hfiref0x avatar hfiref0x commented on July 24, 2024

I've no idea since I don't know how do you call it and what is your environment. And this is not a KDU issue.

from kdu.

Related Issues (20)

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.