----------------------------------------- Hacker's Patcher version 0.04 ----------------------------------------- plz, excuse my english ;) ====- Description -========================================================== Universal patcher generator for files and processes from a simple script. It can create very small GUI patches and loaders. ====- Script Language -====================================================== The script language is very simple (like assembler):
<command> [argument,[...]] ; comment
Commands are:
silence disable GUI. This command is useful for loader creating. open "file" open <file>. If argument is '?', then will show choose file dialog box. The file will close automatically on exit or open other file.
run "program" run <program> (suspended). If argument is '?', then will show choose file dialog box.The process will resume automatically on exit or run other program. kill kill latest running process.
resume resume latest running process. Recommended resume process after run when you patch a packed / protected program.
suspend suspend latest running process. writef address, bytes write in the opened file at address <address> bytes <bytes>.
writep address, bytes write in the running file at address <address> bytes <bytes>. Recommand
patchf address, original, bytes check in the opened file at address <address> bytes with <original>, if ok then write at same address bytes <bytes>.
patchp address, original, bytes check in the running process at address <address> bytes with <original>, if ok then write at same address bytes <bytes>.
snr <start-addr>, <end-addr>, <original>, <bytes>, <count> search in the opened file, in an interval of addresses from <start-addr> to <end-addr> ('*' = end of file), bytes <original> and replace it to <bytes>, <count> times ('*' = no limit). Masks '??' (= any byte) is allowed in the <original> and <bytes> arguments. For example:
snr 0,*,5E83C9??0A????90,B41E??67??00,*
try number number of tries to patch process. Default 5000.
wait ms wait <ms> milliseconds. It call WinAPI Sleep fucnction, which suspends the execution of the current thread for a specified interval. See MSDN. Argument is decimal value.
shell "string" shell (command.com/cmd.exe) execute command line <string>.
backup <-|+|?> backup on ('+'), off ('-') or ask user ('?'). Default off. title "string" set patch's window title to <string>. GUI mode (= not silence).
header set top header of GUI patch.
print "string" print <string> in the patch's information box. GUI mode.
cls clear patch's information box. GUI mode.
init ... endi any commands in this block will be executed on start patch. All other commands will be executed when user press "Patch" button. Block must be in the begin file. GUI mode.
See examples scripts in the /examples directory ====- Contacts -============================================================= Author: Veacheslav Patkov E-mail: [EMAIL="patkov-mail@mail.ru"]patkov-mail@mail.ru[/EMAIL] Web-site: http://patkov-site.narod.ru/eng.html Improvements, bug reports are welcomed.