MCPcopy Create free account
hub / github.com/lief-project/LIEF / print_export

Function print_export

api/python/examples/pe_reader.py:243–253  ·  view source on GitHub ↗
(binary)

Source from the content-addressed store, hash-verified

241
242@exceptions_handler(Exception)
243def print_export(binary):
244 print("== Exports ==")
245 exports = binary.get_export()
246 entries = exports.entries
247 f_value = "{:<20} 0x{:<10x} 0x{:<10x} 0x{:<6x} 0x{:<6x} 0x{:<10x}"
248 print(f_value.format(exports.name, exports.export_flags, exports.timestamp, exports.major_version, exports.minor_version, exports.ordinal_base))
249 entries = sorted(entries, key=lambda e : e.ordinal)
250 for entry in entries:
251 extern = "[EXTERN]" if entry.is_extern else ""
252 print(" {:<20} {:d} 0x{:<10x} {:<13}".format(entry.name[:20], entry.ordinal, entry.address, extern))
253 print("")
254
255
256@exceptions_handler(Exception)

Callers 1

mainFunction · 0.85

Calls 3

get_exportMethod · 0.80
printFunction · 0.50
formatMethod · 0.45

Tested by

no test coverage detected