windows - NtQueryObject hangs on object type number 30 with specific access mask -


i have seen ntqueryobject hang duplicated handles these granted access values (handle.grantedaccess access_mask type):

1179785 (integer) --> 0b100100000000010001001 (binary) 1180063 (integer) --> 0b100100000000110011111 (binary) 1180041 (integer) --> 0b100100000000110001001 (binary) 2032127 (integer) --> 0b111110000000111111111 (binary)                              ||||||| |   |                              ||||||| |   |                              ||||||| |   |                              ^^^^^^^ ^   ^  possible culprit bits seem 3rd , 7th bit, 9th 15th bit. 

always, handle.objecttypenumber 30. object type number, , how can list of specific rights of type? experiments have kind of shown must bits 0-15 causing hang on object type number of 30 (integer). handle system_handle type defined as:

typedef struct _system_handle {     ulong processid;     byte objecttypenumber;     byte flags;     ushort handle;     pvoid object;     access_mask grantedaccess; } system_handle, *psystem_handle; 

i writing forensic tool enumerate open file handles using method described here.

i'm little late, if you're interested in disk-based files, can this:

if(getfiletype(handle) == file_type_disk) {     ... } 

the hang happens non-disk files (such pipes). technique, don't need worry handle.grantedaccess @ all.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -