Giter Club home page Giter Club logo

dxgkrnl_hook's People

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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dxgkrnl_hook's Issues

Is the incomplete code on purpose?

First of all, I appreciate this release, I was thinking about doing something like this for a while now.

// GET CONTEXT
const auto ctx = NtUserGetDc(0x00);

// DRAW TO GAME WINDOW BUFFER
NtGdiPatBlt(ctx, 15, 15, 5, 5, PATCOPY);

Are these left out of the project for any specific reason, or am I missing something?

user mode crashes

2024-05-16-19-29-34_uuBEiE7t.mp4

in usermode every time i call the kernel hooked function the usermode program crashes triying to read 2A0 address, the kenel function is hooked and when i call the function the function does not receive the call, sometimes work and other times dont, idk what is happening

BSOD when trying to hook (KERNEL_SECURITY_CHECK_FAILURE)

This is my source: https://github.com/BadPlayer555/DxgkrnlHook
I have tried to start the driver with kdmapper in both my Vmware vm and my host PC and same result. This only happens when I am trying to replace the pointer.

Window version 1903
This is my output of my Driver from my VM:
[+] Hello from kernel mode!
[+] Found w module_base FFFFF33E17000000.
[+] NtGdiDdDDISubmitCommand: FFFFF33E17260B92
[+] submit_command_address: FFFFF33E17260B92
[+] instruction: FFFFF33E17267044
[+] delta: 00000000FFFA8DB5
[+] DxgkSubmitCommand: FFFFF33E1720FE00
[+] original_entry: FFFFF33E1720FE00
[+] original_submit_command: 00007102DBA82318
[+] hooked original_entry: FFFFF33E1720FE00
[+] Hooked DxgkSubmitCommand!

I have resolved the NtGdiDdDDISubmitCommand symbol in windbg and it is the same as the Driver.
fffff33e`17260b92 win32kbase!NtGdiDdDDISubmitCommand =

And I have checked the instruction Address in Windbg:
Screenshot (410)

I have also checked the DxgkSubmitCommand Address in Windbg:
Screenshot (411)

This is the dump of the VM.
Dump.zip

I just can't figure out what I was wrong about.

Find address of win32kbase!NtGdiDdDDISubmitCommand

Yo,

i just was wondering, on how i should obtain the address of win32kbase!NtGdiDdDDISubmitCommand. I tried with RtlFindExportedRoutineByName(), but that didnt work^^ So do i have to reverse it myself? (find the entry from some exported table in win32kbase). sry if im stupid, but im really no specialist at this.

greeds!

Hook not working on full-screen games

I have implemented a new working version of the NtGdiDdDDISubmitCommand hook in my driver, and am submitting GDI Commands in it like in this example. However I was disappointed to find out that the rendering only works when I am in borderless windowed mode and not in true full screen.

I am wondering, was it like this for you in your original version? I'm not sure if it is something I did, or something with my specific testing game (csgo) or if this hook was only ever for desktop environment rendering. To that end I'm wondering if there is any documentation on this internal side of things or where any of you even learned it.

Additional questions for anyone kind enough to help a noob out:

  • If anyone knows of any documentation or reading materials on the internals of the Gdi system I'm sure many people including me would find that very useful
  • Anyone know of any other functions to hook that might be more suited to full screen?

PS. Thanks for your awesome write ups vmcall, you do some cool shit bro ๐Ÿ‘

Could you please...

Premising that I'm not a newbie, I tried to run the project but I'm experiencing a lot of issues and errors.

Could someone post (or share in private, if you want) a working example?

I've wasted already some hours but fixing one thing, two more breaks up

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.