Revert "pefixup: Add timestamps to PE fixup step"

This reverts commit 74a40b17aa.

To prevent people from running Destiny 2 so they won't get banned.
This commit is contained in:
Arkadiusz Hiler 2021-11-15 13:09:14 +02:00
parent f52e7c9cb1
commit 2a79f04f67

View file

@ -13,8 +13,6 @@ for path in sys.argv[1:]:
section.Characteristics &= ~pefile.SECTION_CHARACTERISTICS['IMAGE_SCN_CNT_INITIALIZED_DATA'] section.Characteristics &= ~pefile.SECTION_CHARACTERISTICS['IMAGE_SCN_CNT_INITIALIZED_DATA']
section.Characteristics &= ~pefile.SECTION_CHARACTERISTICS['IMAGE_SCN_ALIGN_MASK'] section.Characteristics &= ~pefile.SECTION_CHARACTERISTICS['IMAGE_SCN_ALIGN_MASK']
pe.FILE_HEADER.TimeDateStamp = 1622588288
pe.OPTIONAL_HEADER.CheckSum = pe.generate_checksum() pe.OPTIONAL_HEADER.CheckSum = pe.generate_checksum()
perm = stat.S_IMODE(os.stat(path).st_mode) perm = stat.S_IMODE(os.stat(path).st_mode)