This program is a scriptable file patcher. If you like making hacks/patches for programs and stuff then you should consider trying this. To use this program, you create a script in notepad (or np equivalent). Then you send the people your patch and they can apply it to the program they select. This way you don't have to send the whole modified file, you just send the patch script. The script language is very small and simple. I plan on adding more functions later. I will probably add a function to check for file version so that the appropiate patch can be automatically applied. Currently this scripting language does not contain any conditional statements. This is another thing I will add in future versions to make "smart" patch files. The script currently consists of three commands (sounds pitiful, but there is alot you can do with this). The three commands are step, length, and text. Each patch file has two sections. The first section is the offsets section and the seccond section is the data. When you create a patch file, the offsets can be set by typing them in directly or by using the step command to step through consecutive offsets. The step command is the only command you can use in the offsets section. In the data section, you can use length and text or directly type in the bytes. Length is the equivalent of step except it does not increase the value of the data byte, it just makes multiple bytes. It is obvious what text does.
Here is how to use the commands:
*only in offsets section
{step
[insert start offset (inclusive)]
[insert end offset (inclusive)]
}
{length
[insert amount of duplicate bytes]
[insert the byte to duplicate]
}
{text
[Just type stuff here]
[here too]
[and if you want, here also]
}
Here is an example patch:
;This is an example patch
;It has some comments
{offsets
{step
0
2
}
{step
3
5
}
{step
6
8
}
}
{data
{length
3
1
}
{length
3
2
}
{length
3
3
}
}
Here is a real patch for notepad.exe:
;This patch will remove notepad's "do you want to save?"
;confirmation dialog.
{offsets
1370
1371
{step
1372
13E7
}
}
{data
; Inserts a jump to the end
EB
76
{length
31
20
}
{text
Hacked By
}
{length
8
20
}
{text
Paul !!!!
}
{length
2B
20
}
}
Download:
Binary - The exe file and two example scripts
Source Code - The Visual Basic 6 code

No comments:
Post a Comment