-
-
Save zdi-team/1b190468184dc571a02bdd0c70a1dd4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
attributes = OBJ_CASE_INSENSITIVE; | |
ObjectAttributes.Length = 48; | |
if ( !LdrpUseImpersonatedDeviceMap ) // Note how Microsoft left legacy | |
// vulnerable behavior available | |
// via configuration | |
attributes = OBJ_IGNORE_IMPERSONATED_DEVICEMAP|OBJ_CASE_INSENSITIVE; | |
ObjectAttributes.RootDirectory = 0i64; | |
ObjectAttributes.Attributes = attributes; | |
ObjectAttributes.ObjectName = a2; | |
*(_OWORD *)&ObjectAttributes.SecurityDescriptor = 0i64; | |
... | |
ntStatus = NtOpenFile( | |
&FileHandle, | |
SYNCHRONIZE|FILE_TRAVERSE|FILE_LIST_DIRECTORY, | |
&ObjectAttributes, | |
&IoStatusBlock, | |
FILE_SHARE_DELETE|FILE_SHARE_READ, | |
FILE_NON_DIRECTORY_FILE|FILE_SYNCHRONOUS_IO_NONALERT); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment