Skip to content
Permalink
Browse files

Added a base address property on mapped section and added a formatter.

  • Loading branch information...
James Forshaw
James Forshaw committed Aug 19, 2019
1 parent f52e329 commit a0dc0c625ddc945b96cb30f8d44e30bdf04f92e3
Showing with 54 additions and 0 deletions.
  1. +5 −0 NtApiDotNet/NtMappedSection.cs
  2. +49 −0 NtObjectManager/Formatters.ps1xml
@@ -78,6 +78,11 @@ public MemoryAllocationProtect Protection
/// </summary>
public SigningLevel ImageSigningLevel => NtVirtualMemory.QueryImageInformation(Process.Handle, DangerousGetHandle().ToInt64()).ImageSigningLevel;

/// <summary>
/// Get the base address of the mapped section.
/// </summary>
public long BaseAddress => DangerousGetHandle().ToInt64();

#endregion

#region Constructors
@@ -1205,5 +1205,54 @@
</TableRowEntries>
</TableControl>
</View>
<View>
<Name>NtMappedSection</Name>
<ViewSelectedBy>
<TypeName>NtApiDotNet.NtMappedSection</TypeName>
</ViewSelectedBy>
<TableControl>
<TableHeaders>
<TableColumnHeader>
<Label>BaseAddress</Label>
<Width>18</Width>
<Alignment>left</Alignment>
</TableColumnHeader>
<TableColumnHeader>
<Label>Protection</Label>
<Width>11</Width>
<Alignment>left</Alignment>
</TableColumnHeader>
<TableColumnHeader>
<Label>Length</Label>
<Width>8</Width>
<Alignment>left</Alignment>
</TableColumnHeader>
<TableColumnHeader>
<Label>Path</Label>
<Width>40</Width>
<Alignment>left</Alignment>
</TableColumnHeader>
</TableHeaders>
<TableRowEntries>
<TableRowEntry>
<TableColumnItems>
<TableColumnItem>
<PropertyName>BaseAddress</PropertyName>
<FormatString>X016</FormatString>
</TableColumnItem>
<TableColumnItem>
<PropertyName>Protection</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>LongLength</PropertyName>
</TableColumnItem>
<TableColumnItem>
<PropertyName>FullPath</PropertyName>
</TableColumnItem>
</TableColumnItems>
</TableRowEntry>
</TableRowEntries>
</TableControl>
</View>
</ViewDefinitions>
</Configuration>

0 comments on commit a0dc0c6

Please sign in to comment.
You can’t perform that action at this time.