# Module

The Module table contains various information about the module. All Common Intermediate Language (CIL) files are referred to as modules.

# Get module name

Module.get_module_name() -> str

Get the module name of the assembly

Parameters:

-

Return value:

Module name

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 "Module" table exists and print out the module name
if dotnet_file.metadata_table_exists('Module'):
    print(f'Module name: {dotnet_file.Module.get_module_name()}')