找到&替换“.DLL”上的十六进制值。用VB.Net文件 [英] Find & Replace Hex values on ".DLL" file with VB.Net

查看:95
本文介绍了找到&替换“.DLL”上的十六进制值。用VB.Net文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



正如标题所说,我需要寻找和替换十六进制值的帮助。



我有这个代码很棒!!

Hello,

As the title says I need help with Finding and replacing hex values.

I have this code which is awesome !!

Public Class MainForm
    Dim FP = "C:\AlMnara.dll"
    Dim FS As System.IO.FileStream
    Dim BW As System.IO.BinaryWriter
  Private Sub Replace_Click(sender As Object, e As EventArgs) Handles Replace.Click
      FS = New System.IO.FileStream(FP & ".Replaced", IO.FileMode.OpenOrCreate)
      BW = New System.IO.BinaryWriter(FS)
      FS.Position = &H10D4
      BW.Write(&H8838)
      FS.Close()
      BW.Close()
  End Sub
End Class





但我的问题是,我不能总是打开.dll并搜索Offset然后复制粘贴它并对我的应用程序进行更新。



那么是否有代码可以搜索并替换十六进制值而不给出偏移量?



原始十六进制值=& H9939

新的十六进制值=& H8838



在此先感谢:D



But my problem is that i cant always open the ".dll" and search for the Offset then "copy-Paste" it and make an update to my Application.

So is there a code that it could search and replace the hex values without giving the "Offset" ?

Original hex value = &H9939
New hex value = &H8838

Thanks in Advance :D

推荐答案

我找到了它。



http://g4p.ucoz.com/forum/6-45-1 [ ^ ]


这篇关于找到&替换“.DLL”上的十六进制值。用VB.Net文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆