Message board for the users of flat assembler.
> Windows > patcher
kourin 04 Oct 2012, 21:19
I just made a program to generate a patcher executable on Win32. I suppose it's not very original but I needed one and wanted to practice fasm so I made one myself. Yet, it's more convenient and powerfull than most patchers I saw, since you can write a patch like this:
include 'patcher.inc' file "patchme.exe" at 0x100 db 0x25, 3, 12 db "hello world!", 0 dd 0x12345678 dw -1, 0x2289 at 23 mov eax, ecx push ecx jmp short 5 at 0x453 db 15 file "..\metoo.dll" at 1387 dw 1 done
As you can see, several files are patched, at several positions, and you can write code as well as data. For a single file, single position patch, you can use the alternative syntax:
include 'patcher.inc' patch "filename", offset, byte_1, byte_2..., byte_n
The zip file contains 'patcher.inc' and a 'readme.txt' providing syntax and examples. Have fun! Comments are welcome, regarding the program's functionnality or the code itself. =)
|04 Oct 2012, 21:19||
hopcode 05 Oct 2012, 18:09
hi kourin, i find it cool, especially because this snippet tells, to those who understand and all the list of bugreporters together with those who understand, 2 main things:
1) such quirkiness featured from space:address at 1.71.com syntax are perfectly avoidable
2) the fact that you needed to strenghten the AT using a macro... instead of using the quirkiness that apart for the LOAD directive has no other usefulness
thanks for sharing,
btw: please, no flaming intention eehh!!!
|05 Oct 2012, 18:09||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.