源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

去掉RAR右键解压菜单的VBS代码

  • 时间:2022-08-08 00:30 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:去掉RAR右键解压菜单的VBS代码
原理: [url=http://demon.tw/programming/vbs-binary-file-another.html]http://demon.tw/programming/vbs-binary-file-another.html[/url]
[u]复制代码[/u] 代码如下:
Public ReadBinary ReadBinaryDat(".\1.exe") BinaryDat = Replace(Replace(ReadBinary, "526172211a07", "522172211a07"), "807a0161", "807a0121") WriteBinaryDat "new.exe", BinaryDat Function ReadBinaryDat(FileName)  Const adTypeBinary = 1  Dim stream, xmldom, node  Set xmldom = CreateObject("Microsoft.XMLDOM")  Set node = xmldom.CreateElement("binary")  node.DataType = "bin.hex"  Set stream = CreateObject("ADODB.Stream")  stream.Type = adTypeBinary  stream.Open  stream.LoadFromFile FileName  node.NodeTypedValue = stream.Read  stream.Close  Set stream = Nothing  ReadBinary = node.Text  Set node = Nothing  Set xmldom = Nothing End Function Sub WriteBinaryDat(FileName, Buf)  Const adTypeBinary = 1  Const adSaveCreateOverWrite = 2  Dim stream, xmldom, node  Set xmldom = CreateObject("Microsoft.XMLDOM")  Set node = xmldom.CreateElement("binary")  node.DataType = "bin.hex"  node.Text = Buf  Set stream = CreateObject("ADODB.Stream")  stream.Type = adTypeBinary  stream.Open  stream.write node.NodeTypedValue  stream.saveToFile FileName, adSaveCreateOverWrite  stream.Close  Set stream = Nothing  Set node = Nothing  Set xmldom = Nothing End Sub
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部