mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-13 05:35:24 +00:00
Add PE attribute certificate table printing
This commit is contained in:
@@ -741,7 +741,30 @@ namespace ExecutableTest
|
||||
Console.WriteLine();
|
||||
|
||||
// TODO: COFFStringTable (Only if COFFSymbolTable?)
|
||||
// TODO: AttributeCertificateTable
|
||||
|
||||
Console.WriteLine(" Attribute Certificate Table Information:");
|
||||
Console.WriteLine(" -------------------------");
|
||||
if (executable.OptionalHeader?.CertificateTable == null
|
||||
|| executable.OptionalHeader.CertificateTable.VirtualAddress == 0
|
||||
|| executable.AttributeCertificateTable.Length == 0)
|
||||
{
|
||||
Console.WriteLine(" No attribute certificate table items");
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < executable.AttributeCertificateTable.Length; i++)
|
||||
{
|
||||
var entry = executable.AttributeCertificateTable[i];
|
||||
Console.WriteLine($" Attribute Certificate Table Entry {i}");
|
||||
Console.WriteLine($" Length = {entry.Length}");
|
||||
Console.WriteLine($" Revision = {entry.Revision}");
|
||||
Console.WriteLine($" Certificate type = {entry.CertificateType}");
|
||||
Console.WriteLine($" Certificate = {BitConverter.ToString(entry.Certificate).Replace("-", string.Empty)}");
|
||||
// TODO: Add certificate type parsing
|
||||
}
|
||||
}
|
||||
Console.WriteLine();
|
||||
|
||||
// TODO: DelayLoadDirectoryTable
|
||||
|
||||
Console.WriteLine(" Resource Directory Table Information:");
|
||||
|
||||
Reference in New Issue
Block a user