07-24-2025, 03:36 AM
(07-24-2025, 02:20 AM)checkpoint10 Wrote:(07-23-2025, 08:53 PM)sharangad Wrote: How do you save or export an exe once it's been modified? I don't see any option to export patched bytes.
[EDIT] There is an option to save as a PE (EXE) binary but it fails because Ghidra doesn't know how to export to an LE/LX PE.
[EDIT2] Or some way to work out the file offset at the instruction.
I've never tried to modify and save an EXE with Ghidra. I just look for the same hex sequences using HxD and edit it there. It works fine for me since I'm just looking for hardcoded values and changing them, but probably not suitable for anything more complicated.
I guess that's what I'll have to do as well.

