Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions chpe_scanner/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ def is_chpe_type(bin_type: "BinType") -> bool:

@staticmethod
def has_metadata_pointer(load_config: lief.PE.LoadConfiguration) -> bool:
return (
type(load_config) == lief.PE.LoadConfigurationV4
or type(load_config) == lief.PE.LoadConfigurationV5
or type(load_config) == lief.PE.LoadConfigurationV6
or type(load_config) == lief.PE.LoadConfigurationV7
)
return type(load_config) == lief.PE.LoadConfigurationV4 or issubclass(type(load_config), lief.PE.LoadConfigurationV4)

@staticmethod
def get_chpe_bintype(bin_: lief.PE) -> "BinType":
Expand Down