0

A client creates or opens a file, I'm injecting into the client and getting a handle of the file. From the handle can I get "desired access" the client provided to "CreateFile" function when calling CreateFile or OpenFile functions?

I want to open another file with exactly same access?

I tried NtQueryObject but could not find a class which returns handle access values

Melina Golez
  • 164
  • 2
  • 10
  • *ObjectBasicInformation* - look in `PUBLIC_OBJECT_BASIC_INFORMATION.GrantedAccess` – RbMm Jul 03 '19 at 21:13
  • I check this but the value of .GrantedAccess is different than what we see in Process Explorer or Process Hacker – Melina Golez Jul 03 '19 at 21:58
  • and so what ? what value view you and what Process Explorer ? faster of all you make mistake somewhere. really *PUBLIC_OBJECT_BASIC_INFORMATION.GrantedAccess* containing correct infformation always – RbMm Jul 03 '19 at 22:37

0 Answers0