Generation

generate functionSun, 07 May 2023

reading windows dll

def read_dll(filename): import pefile import sys pe = pefile.PE(filename) dll = pe.DIRECTORY_ENTRY_EXPORT.symbols for i in dll: name = i.name address = hex(i.address) print("[+] DLL Name: {0} \t\t[+] DLL Address: {1}".format(name.decode("utf-8"), address)) read_dll("C:/Windows/System32/kernel32.dll")

Questions about programming?Chat with your personal AI assistant