This is a quick (but hopefully not dirty) implementation of a primitive hex alterer. Usage is very simple:
Either hexalter will alter file directly or with the -i option will create an ips file for patching.
For example:
Changes:
| Address | New Value |
|---|---|
| 4 | 1 |
| 5 | 2 |
| 6 | 3 |
| 32 | 160 |
| 255 | 4 |
| 8589934591 | 32 |
Or:
Creates foo.ips, which can be used to make most of the above mentioned changes.
Addresses may not overlap. If address is out of range or byte values are too high/low or address or byte values aren't entered in decimal or hexademical, hexalter should refuse to patch. IPS files are bound to 16MiB, due to a limitation in IPS's ability to only store 24-bit addresses.
If during the actual apply phase some error happens, only some changes might be applied.
Kuwanger.net - Sort of like stag beetles in tubes.