Sha256: eb86ed5b485e0b2c3976e1727044813c8a03f800c3022fccfced021aecd1182a

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

#!/usr/bin/env python3
import yaml
from pefile import ordlookup
#from PE import ordlookup

for dll, ord_names in ordlookup.ords.items():
    if isinstance(list(ord_names.keys())[0], bytes):
        ord_names = {k: v.decode("utf-8") for k, v in ord_names.items()}
    
    yaml_data = yaml.dump(ord_names, allow_unicode=True, default_flow_style=False)

    if isinstance(dll, bytes):
        dll = dll.decode("utf-8")
    file_name = dll + ".yml"
    with open(file_name, 'w', encoding='utf-8') as yaml_file:
        yaml_file.write(yaml_data)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pedump-0.6.9 data/ordlookup/pefile2json.py