Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Edits PE files header. Allows to force compatibility of a file to Windows XP if it is really compatible, but broken toolchain wrote misinformation !!! Migrated to Codeberg 🏔️ !!!

License

Notifications You must be signed in to change notification settings

KOLANICH-tools/PEHeaderFixer.py

Repository files navigation

PEHeaderEditor.py Unlicensed work

wheel (GitLab) wheel (GHA via nightly.link) GitLab Build Status GitLab Coverage GitHub Actions Libraries.io Status Code style: antiflash

We have moved to https://codeberg.org/KOLANICH-tools/PEHeaderEditor.py, grab new versions there.

Under the disguise of "better security" Micro$oft-owned GitHub has discriminated users of 1FA passwords while having commercial interest in success of FIDO 1FA specifications and Windows Hello implementation which it promotes as a replacement for passwords. It will result in dire consequencies and is competely inacceptable, read why.

If you don't want to participate in harming yourself, it is recommended to follow the lead and migrate somewhere away of GitHub and Micro$oft. Here is the list of alternatives and rationales to do it. If they delete the discussion, there are certain well-known places where you can get a copy of it. Read why you should also leave GitHub.


Allows you to patch PE files headers.

The main focus was to allow Windows XP recognize PE files produced by CLang.

MinGW-w64 standard library is compatible to Windows XP, and it used to have a special flag for it, but CLang when introduced the optional header, it was set by default to the values allowing usage of the generated binaries since Vista.

How to use

PEHeaderEditor --preset=winxp *.exe *.dll

Pretty simple, right?

echo '{"MajorOperatingSystemVersion": 5, "MinorOperatingSystemVersion": 1, "MajorSubsystemVersion": 5, "MinorSubsystemVersion": 1}' | PEHeaderEditor --json=- *.exe *.dll
echo '{"MajorOperatingSystemVersion": 5, "MinorOperatingSystemVersion": 1, "MajorSubsystemVersion": 5, "MinorSubsystemVersion": 1}' > ./headerPatch.json;
PEHeaderEditor --json=./headerPatch.json *.exe *.dll

About

Edits PE files header. Allows to force compatibility of a file to Windows XP if it is really compatible, but broken toolchain wrote misinformation !!! Migrated to Codeberg 🏔️ !!!

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages