packer-tutorial icon indicating copy to clipboard operation
packer-tutorial copied to clipboard

[fix] Section Characteristics

Open aiymka99 opened this issue 1 year ago • 0 comments

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 )

aiymka99 avatar Jan 15 '25 19:01 aiymka99