无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 4625|回复: 7
打印 上一主题 下一主题

[求助] 求一个可以替换"二进制文件"的内容的程序

[复制链接]
1#
发表于 2006-12-13 00:51:20 | 显示全部楼层
我也找了很久,实在找不到,正准备自己用turbo C写一个.
功能预计如下:
binrep.exe /?
BinRep.exe  Binary file string replace program
Usage:
           BinRep.exe  <filename> <Position>  <length>  <string>
                <filename>:   The binary file.
                <position>:    The offset of string need to be replaced.
                  <length>:     The length of the string.
                   <string>:     The new string use to replace the old string in binary file.
有什么建议吗?

[ 本帖最后由 tintinbt 于 2006-12-13 12:56 AM 编辑 ]
回复

使用道具 举报

2#
发表于 2006-12-14 01:25:46 | 显示全部楼层
写好了一个,试试
<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 编辑 ]

BINREP.rar

9.64 KB, 下载次数: 86, 下载积分: 无忧币 -2

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-5-16 10:12

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表