I am new to Python, and have an assignment to create a Python script that read any pe file whether .exe or .dll. The problem when I use the pefile reader located at https://github.com/erocarrera/pefile I am following the usage exactly as below:
import pefile
pe = pefile.PE(‘/path/to/pefile.exe’)
pe.OPTIONAL_HEADER.AddressOfEntryPoint
the first and second statement succeeded but the third one failed with: AttributeError: 'PE' object has no attribute OPTIONAL_HEADER
Can someone help on this please.