Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # softdenchi_remove.py
- # Yes, really.
- # Usage: Drag game.exe onto softdenchi_remove.py
- # 4D 5A 90 = exe magic bytes, second occurrence since the first is the wrapper's own magic bytes.
- import sys
- import os
- in_filename = sys.argv[1]
- out_filename = a[:-4] + "-nodrm.exe"
- with open(in_filename, "rb") as original_exe, open(out_filename, "wb") as patched_exe:
- data = original_exe.read()
- patched_exe.write(data[data.find(b'\x4D\x5A\x90', 1):])
Advertisement
Add Comment
Please, Sign In to add comment