Skip to content

Commit 99fff67

Browse files
author
InvokeStatic (Brendan Heinonen)
authored
Init security cookie for manual mapped drivers
1 parent 3ab54e0 commit 99fff67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/BlackBoneDrv/Loader.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,10 @@ NTSTATUS BBMapWorker( IN PVOID pArg )
787787
RtlInsertInvertedFunctionTable((PUCHAR)GetKernelBase( NULL ) + 0x1ED450, imageSection, pNTHeader->OptionalHeader.SizeOfImage );
788788
}*/
789789

790+
// Initialize kernel security cookie
791+
if (NT_SUCCESS( status ))
792+
BBCreateCookie( imageSection );
793+
790794
// Call entry point
791795
if (NT_SUCCESS( status ) && pNTHeader->OptionalHeader.AddressOfEntryPoint)
792796
{

0 commit comments

Comments
 (0)