emin_int11

Theoretical DKOM

Aug 17th, 2015
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.75 KB | None | 0 0
  1. #salam manislar#
  2.  
  3. *This head can be found by checking the PsActiveProcessHead symbol*
  4.  
  5. 00573 /* Get a reference to it */
  6. 00574 ObReferenceObjectByHandle(PspInitialSystemProcessHandle,
  7. 00575 0,
  8. 00576 PsProcessType,
  9. 00577 KernelMode,
  10. 00578 (PVOID*)&PsInitialSystemProcess,
  11. 00579 NULL);
  12. 00580
  13. 00581 /* Copy the process names */
  14. 00582 strcpy(PsIdleProcess->ImageFileName, "Idle");
  15. 00583 strcpy(PsInitialSystemProcess->ImageFileName, "System"); <==== set up System image
  16. 00584
  17. 00585 /* Allocate a structure for the audit name */
  18. 00586 PsInitialSystemProcess->SeAuditProcessCreationInfo.ImageFileName =
  19. 00587 ExAllocatePoolWithTag(PagedPool,
  20. 00588 sizeof(OBJECT_NAME_INFORMATION),
  21. 00589 TAG_SEPA);
  22. 00590 if (!PsInitialSystemProcess->SeAuditProcessCreationInfo.ImageFileName)
  23. 00591 {
  24. 00592 /* Allocation failed */
  25. 00593 return FALSE;
  26. 00594 }
  27. 00595
  28. 00596 /* Zero it */
  29. 00597 RtlZeroMemory(PsInitialSystemProcess->
  30. 00598 SeAuditProcessCreationInfo.ImageFileName,
  31. 00599 sizeof(OBJECT_NAME_INFORMATION));
  32.  
  33.  
  34. DKOM
  35.  
  36. lkd> dt nt!_eprocess poi(PsInitialSystemProcess)
  37. +0x000 Pcb : _KPROCESS
  38. +0x0a0 ProcessLock : _EX_PUSH_LOCK
  39. +0x0a8 CreateTime : _LARGE_INTEGER 0x01d0d8aa`285bd24e
  40. +0x0b0 RundownProtect : _EX_RUNDOWN_REF
  41. +0x0b4 UniqueProcessId : 0x00000004 Void
  42. +0x0b8 ActiveProcessLinks : _LIST_ENTRY [ 0x8933cd78 - 0x81003a58 ] <======== -- Linked List HEAD -- point to ACtive Process State (doubly linked list)
  43. +0x0c0 Flags2 : 0x2d000
  44. +0x0c0 JobNotReallyActive : 0y0
  45. +0x0c0 AccountingFolded : 0y0
  46. +0x0c0 NewProcessReported : 0y0
  47. +0x0c0 ExitProcessReported : 0y0
  48. +0x0c0 ReportCommitChanges : 0y0
  49. +0x0c0 LastReportMemory : 0y0
  50. +0x0c0 ForceWakeCharge : 0y0
  51. +0x0c0 CrossSessionCreate : 0y0
  52. +0x0c0 NeedsHandleRundown : 0y0
  53. +0x0c0 RefTraceEnabled : 0y0
  54. +0x0c0 DisableDynamicCode : 0y0
  55. +0x0c0 EmptyJobEvaluated : 0y0
  56. +0x0c0 DefaultPagePriority : 0y101
  57. +0x0c0 PrimaryTokenFrozen : 0y1
  58. +0x0c0 ProcessVerifierTarget : 0y0
  59. +0x0c0 StackRandomizationDisabled : 0y1
  60. +0x0c0 AffinityPermanent : 0y0
  61. +0x0c0 AffinityUpdateEnable : 0y0
  62. +0x0c0 PropagateNode : 0y0
  63. +0x0c0 ExplicitAffinity : 0y0
  64. +0x0c0 ProcessExecutionState : 0y00
  65. +0x0c0 DisallowStrippedImages : 0y0
  66. +0x0c0 HighEntropyASLREnabled : 0y0
  67. +0x0c0 ExtensionPointDisable : 0y0
  68. +0x0c0 ForceRelocateImages : 0y0
  69. +0x0c0 ProcessStateChangeRequest : 0y00
  70. +0x0c0 ProcessStateChangeInProgress : 0y0
  71. +0x0c0 DisallowWin32kSystemCalls : 0y0
  72. +0x0c4 Flags : 0x14040c00
  73. +0x0c4 CreateReported : 0y0
  74. +0x0c4 NoDebugInherit : 0y0
  75. +0x0c4 ProcessExiting : 0y0
  76. +0x0c4 ProcessDelete : 0y0
  77. +0x0c4 ControlFlowGuardEnabled : 0y0
  78. +0x0c4 VmDeleted : 0y0
  79. +0x0c4 OutswapEnabled : 0y0
  80. +0x0c4 Outswapped : 0y0
  81. +0x0c4 ForkFailed : 0y0
  82. +0x0c4 Wow64VaSpace4Gb : 0y0
  83. +0x0c4 AddressSpaceInitialized : 0y11
  84. +0x0c4 SetTimerResolution : 0y0
  85. +0x0c4 BreakOnTermination : 0y0
  86. +0x0c4 DeprioritizeViews : 0y0
  87. +0x0c4 WriteWatch : 0y0
  88. +0x0c4 ProcessInSession : 0y0
  89. +0x0c4 OverrideAddressSpace : 0y0
  90. +0x0c4 HasAddressSpace : 0y1
  91. +0x0c4 LaunchPrefetched : 0y0
  92. +0x0c4 Background : 0y0
  93. +0x0c4 VmTopDown : 0y0
  94. +0x0c4 ImageNotifyDone : 0y0
  95. +0x0c4 PdeUpdateNeeded : 0y0
  96. +0x0c4 VdmAllowed : 0y0
  97. +0x0c4 ProcessRundown : 0y0
  98. +0x0c4 ProcessInserted : 0y1
  99. +0x0c4 DefaultIoPriority : 0y010
  100. +0x0c4 ProcessSelfDelete : 0y0
  101. +0x0c4 SetTimerResolutionLink : 0y0
  102. +0x0c8 ProcessQuotaUsage : [2] 0
  103. +0x0d0 ProcessQuotaPeak : [2] 0
  104. +0x0d8 PeakVirtualSize : 0x34a9000
  105. +0x0dc VirtualSize : 0x2749000
  106. +0x0e0 SessionProcessLinks : _LIST_ENTRY [ 0x0 - 0x0 ]
  107. +0x0e8 ExceptionPortData : (null)
  108. +0x0e8 ExceptionPortValue : 0
  109. +0x0e8 ExceptionPortState : 0y000
  110. +0x0ec Token : _EX_FAST_REF
  111. +0x0f0 WorkingSetPage : 0
  112. +0x0f4 AddressCreationLock : _EX_PUSH_LOCK
  113. +0x0f8 PageTableCommitmentLock : _EX_PUSH_LOCK
  114. +0x0fc RotateInProgress : (null)
  115. +0x100 ForkInProgress : (null)
  116. +0x104 CommitChargeJob : (null)
  117. +0x108 CloneRoot : _RTL_AVL_TREE
  118. +0x10c NumberOfPrivatePages : 0x24a4
  119. +0x110 NumberOfLockedPages : 0x120
  120. +0x114 Win32Process : (null)
  121. +0x118 Job : (null)
  122. +0x11c SectionObject : (null)
  123. +0x120 SectionBaseAddress : (null)
  124. +0x124 Cookie : 0xf94c46cd
  125. +0x128 VdmObjects : (null)
  126. +0x12c WorkingSetWatch : (null)
  127. +0x130 Win32WindowStation : (null)
  128. +0x134 InheritedFromUniqueProcessId : (null)
  129. +0x138 LdtInformation : (null)
  130. +0x13c OwnerProcessId : 2
  131. +0x140 Peb : (null)
  132. +0x144 Session : (null)
  133. +0x148 AweInfo : (null)
  134. +0x14c QuotaBlock : 0x80ffc680 _EPROCESS_QUOTA_BLOCK
  135. +0x150 ObjectTable : 0x82203000 _HANDLE_TABLE
  136. +0x154 DebugPort : (null)
  137. +0x158 PaeTop : 0x82433000 Void
  138. +0x15c DeviceMap : 0x8220a6c0 Void
  139. +0x160 EtwDataSource : (null)
  140. +0x168 PageDirectoryPte : 0
  141. +0x170 ImageFileName : [15] "System"
  142. +0x17f PriorityClass : 0x2 ''
  143.  
  144. -----------------------------------------------------------
  145. during exploitation time
  146. FS:[0xCC] 216 NT, Wine Reserved for OS (NT), kernel32 private data (Wine)
  147. herein: FS:[0x124] 4 NT Pointer to KTHREAD (ETHREAD) structure = not affected :)
  148.  
  149.  
  150. 
Advertisement
Add Comment
Please, Sign In to add comment