MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / get_string

Function get_string

windows/pe_parse.py:98–101  ·  view source on GitHub ↗
(target, addr)

Source from the content-addressed store, hash-verified

96
97
98def get_string(target, addr):
99 if target is None:
100 return ctypes.c_char_p(addr).value.decode("latin1")
101 return target.read_string(addr)
102
103
104class PESection(IMAGE_SECTION_HEADER):

Callers 6

nameMethod · 0.85
get_INTMethod · 0.85
get_exportsMethod · 0.85
exportsMethod · 0.85
export_nameMethod · 0.85
importsMethod · 0.85

Calls 2

decodeMethod · 0.80
read_stringMethod · 0.45

Tested by

no test coverage detected