rmusser01 / pefile

Automatically exported from code.google.com/p/pefile
Other
0 stars 1 forks source link

Backtrace parsing exports of a DLL #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When using pefile through peframe I get the following backtrace:

$ peframe.py --export tmp/module.1136.9c90da0.2df0000.dll 
Traceback (most recent call last):
  File "/usr/local/bin/peframe.py", line 380, in <module>
    show_exported_functions(filename); sys.exit(0)
  File "/usr/local/bin/peframe.py", line 193, in show_exported_functions
    exported = pecore.get_exported_functions(filename)
  File "/usr/local/bin/modules/pecore.py", line 405, in get_exported_functions
    for exp in pe.DIRECTORY_ENTRY_EXPORT.symbols:
AttributeError: PE instance has no attribute 'DIRECTORY_ENTRY_EXPORT'

---

For reference, LordPE can parse the export table of this DLL. I can provide the 
DLL if needed. 

System info:

$ python -V
Python 2.7.3

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.2 LTS
Release:    12.04
Codename:   precise

Original issue reported on code.google.com by atc...@gmail.com on 11 Dec 2014 at 7:55