Giter Club home page Giter Club logo

notify-routine-poc's Introduction

notify-routine-poc

PsSetCreateProcessNotifyRoutine bypass proof-of-concept for manual mapped drivers

Why

If you ever tried to use PsSetCreateThreadNotifyRoutine in a manual mapped driver (without creating a driver object) they you must know the call fails and returns STATUS_ACCESS_DENIED. This is because the function calls MmVerifyCallbackFunctionCheckFlags which checks that the address of the notify routine you want to register is in the range of a legit module. Which will fail if you don't create a driver object (or load your driver right way!).

How

That being said, PsSetCreateThreadNotifyRoutine will succeed if NotifyRoutine is in ANY legit module. This proof-of-concept will iterate loaded drivers and scan for a code cave where we can write a trampoline to our real routine (located in our manual mapped driver).

Pros

  • You can very easily port this code to work with other similar functions such as PsSetLoadImageNotifyRoutine and PsSetCreateThreadNotifyRoutine.
  • This will not trigger patch guard as the notify routine start address will be in a legit module

Cons

  • We are writing a trampoline in the .text section of a legit driver, this will get you banned or at the very least flagged on ring-0 anti cheats such as BattlEye and EasyAntiCheat.

notify-routine-poc's People

Contributors

patrickcjk avatar

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.