#
ManifestResource
The ManifestResource
table contains various information about .NET resources.
#
Get resource names
ManifestResource.get_resource_names() -> List[str]
Get a list of resource names.
Parameters:
-
Return value:
A list with resource names
Example:
# Import class DotNetPE from module dotnetfile
from dotnetfile import DotNetPE
# Create an instance of DotNetPE with the file path as a parameter
dotnet_file = DotNetPE('/Users/<username>/my_dotnet_assembly.exe')
# Check if the "ManifestResource" table exists
if dotnet_file.metadata_table_exists('ManifestResource'):
# Get resource names
resource_names = dotnet_file.ManifestResource.get_resource_names()
# Print out resource names
for resource_name in resource_names:
print(f'{resource_name}')