packer-tutorial
packer-tutorial copied to clipboard
[fix] Section Characteristics
https://github.com/jeremybeaume/packer-tutorial/blob/b2e90acac3f6376c37f872321ac1ae897af2069a/part3/packer.py#L49-L51
This part of the code raises this error: "AttributeError: module lief._lief.PE has no attribute 'SECTION_CHARACTERISTICS'". I fixed it with the following code and it works.
packed_section.characteristics = ( 0x40000000 | # MEM_READ 0x80000000 | # MEM_WRITE 0x00000040 # CNT_INITIALIZED_DATA )