mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-11 13:45:25 +00:00
Add PE COFF string table printing
This commit is contained in:
@@ -740,11 +740,29 @@ namespace ExecutableTest
|
||||
if (auxSymbolsRemaining == 0)
|
||||
currentSymbolType = 0;
|
||||
}
|
||||
|
||||
Console.WriteLine();
|
||||
Console.WriteLine(" COFF String Table Information:");
|
||||
Console.WriteLine(" -------------------------");
|
||||
if (executable.COFFStringTable == null
|
||||
|| executable.COFFStringTable.Strings == null
|
||||
|| executable.COFFStringTable.Strings.Length == 0)
|
||||
{
|
||||
Console.WriteLine(" No COFF string table items");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine($" Total size: {executable.COFFStringTable.TotalSize}");
|
||||
for (int i = 0; i < executable.COFFStringTable.Strings.Length; i++)
|
||||
{
|
||||
string entry = executable.COFFStringTable.Strings[i];
|
||||
Console.WriteLine($" COFF String Table Entry {i})");
|
||||
Console.WriteLine($" Value = {entry}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Console.WriteLine();
|
||||
|
||||
// TODO: COFFStringTable (Only if COFFSymbolTable?)
|
||||
|
||||
Console.WriteLine(" Attribute Certificate Table Information:");
|
||||
Console.WriteLine(" -------------------------");
|
||||
if (executable.OptionalHeader?.CertificateTable == null
|
||||
|
||||
Reference in New Issue
Block a user