![]() |
|
|
|
#1
|
|||
|
|||
|
You're passing UserMode on a buffer that comes from Kernel-Mode.
|
|
#2
|
|||
|
|||
|
How am I passing anything from UserMode? I am creating my own handle in kernel-mode to pass on to the original ZwCreateFile. Absolutely touching nothing coming from user-mode. The address of my kernel-mode allocated handle that I am passing is _valid_ for kernel-mode and not a user-mode buffer.
|
|
#3
|
|||
|
|||
|
If i understand you right you want to pass a File-Handle created by your Kernel-Mode Process to a User-Mode Process, so you could edit the File-Object and change its owner.
(ObObjectRefferenceByHandle or smth.) |
|
#4
|
|||
|
|||
|
Actually no. I am hooking ZwCreateFile, within the hooked function for ZwCreateFile that I created I am trying to call the original ZwCreateFile with all attributes allocated IN kernel-space and utilized IN kernel space. Absolutely NOTHING to do with user-mode other than interceding in the middle of a user-mode application attempting to open a file. Not in anyway shape or form attempting to pass anything back to user-mode.
|
|
#5
|
|||
|
|||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows Hook | user1 | Source Code | 0 | 04-24-2021 05:23 |
| SYSENTER hook | niom | General Discussion | 13 | 08-12-2004 02:50 |
| DriverStudio 3.1 Viaagp.sys Bluescreen | bgrimm | General Discussion | 1 | 02-19-2004 02:37 |