|
写好了一个,试试
<position>就是字符串开始位置
Binrep.exe V1.00 by Figer (tintinbt@gmail.com) Dec,2006
This program replace a string in a binary file.
Usage: Binrep.exe <filename> <startfrom> <length> <string> [/Y]
<filenae> - The name of the binary file. 文件名
<startfrom> - The offset of the old string in binary file. 字符串起始位置
<length> - The length of the old string. 字符串长度
<string> - The new string. (length must less or equal the old string) 新字符串
[/Y] - No prompt to confirm the string replacement /y参数不需确认,直接替换
Example: replace string from bios.bin, from the 120th byte, length 10 bytes
BinRep bios.bin 120 10 CAC63602UA
Replace string "CAC6360S1K" to "CAC63602UA" (Y/N)?y
The string "CAC6360S1K" has been replaced to "CAC63602UA"
[ 本帖最后由 tintinbt 于 2006-12-14 01:31 AM 编辑 ] |
|