MCPcopy Create free account
hub / github.com/qilingframework/qiling / directory_exists

Method directory_exists

qiling/loader/pe.py:611–614  ·  view source on GitHub ↗
(pe: pefile.PE, entry: str)

Source from the content-addressed store, hash-verified

609
610 @staticmethod
611 def directory_exists(pe: pefile.PE, entry: str) -> bool:
612 ent = pefile.DIRECTORY_ENTRY[entry]
613
614 return pe.OPTIONAL_HEADER.DATA_DIRECTORY[ent].VirtualAddress != 0
615
616 def init_imports(self, pe: pefile.PE, is_driver: bool):
617 if not Process.directory_exists(pe, 'IMAGE_DIRECTORY_ENTRY_IMPORT'):

Callers 3

init_importsMethod · 0.80
init_exportsMethod · 0.80
init_security_cookieMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected