发老兵及海洋VBS解包工具代码

所属分类: 脚本专栏 / vbs 阅读数: 1351
收藏 0 赞 0 分享

关于为什么提供打包程序和打包压缩文件.MDB的解压

2006.asp                海阳顶端网asp木马2006版文件  
unpack.vbs                打包文件"hytop.mdb"的解开器  
2006x.exe                海阳顶端网asp木马2006 c/s模式转换器  
2006x2.exe                海阳顶端网asp木马2006 专用短服务器端  
                        c/s模式转换器  
2006z.exe                海阳顶端网asp木马2006_lite版本组合器  
                        用来自定义生成相应功能的lite版木马  
hididi.ini                2006z.exe的配置文件  

问题一:  

就是你们写的小马那个文件打包/揭开。我想知道 文件打包后,我下载下来,是.mdb后缀的,那我来怎么恢复呢,比如说是将一个文件夹打包下载后,来怎么恢复呢?   

回答:  

请用海洋顶端asp木马2006正式版里的unpack.vbs文件进行解压!  
mdb的文件名必须为hytop.mdb(也就是默认的名字) 

VB解包工具中有三个VB文件。分别是三种马的解包工具
一个是海洋打包的解包工具。解HYTOP。MDB
一个是ADMIN(类似于海洋)。解PACKET。MDB
一个是老兵的解包工具。解TOMDB。TDB

注:你把VB脚本文件和MDB文件放在一个目录里,执行VB脚本就行了。要几分钟时间,稍等完成提示。(没有完成强行退出解的是不完整的包。)

unpack.vbs

Dim rs, ws, fso, conn, stream, connStr, theFolder 
Set rs = CreateObject("ADODB.RecordSet") 
Set stream = CreateObject("ADODB.Stream") 
Set conn = CreateObject("ADODB.Connection") 
Set fso = CreateObject("Scripting.FileSystemObject") 
connStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=HYTop.mdb;" 

conn.Open connStr 
rs.Open "FileData", conn, 1, 1 
stream.Open 
stream.Type = 1 

On Error Resume Next 

Do Until rs.Eof 
  theFolder = Left(rs("thePath"), InStrRev(rs("thePath"), "\")) 
  If fso.FolderExists(theFolder) = False Then 
    createFolder(theFolder) 
  End If 
  stream.SetEos() 
  stream.Write rs("fileContent") 
  stream.SaveToFile str & rs("thePath"), 2 
  rs.MoveNext 
Loop 

rs.Close 
conn.Close 
stream.Close 
Set ws = Nothing 
Set rs = Nothing 
Set stream = Nothing 
Set conn = Nothing 

Wscript.Echo "所有文件释放完毕!" 

Sub createFolder(thePath) 
  Dim i 
  i = Instr(thePath, "\") 
  Do While i > 0 
    If fso.FolderExists(Left(thePath, i)) = False Then 
      fso.CreateFolder(Left(thePath, i - 1)) 
    End If 
    If InStr(Mid(thePath, i + 1), "\") Then 
      i = i + Instr(Mid(thePath, i + 1), "\") 
     Else 
      i = 0 
    End If 
  Loop 
End Sub

打包基地老兵专用解压工具.vbs

Dim rs, ws, fso, conn, stream, connStr, theFolder 
Set rs = CreateObject("ADODB.RecordSet") 
Set stream = CreateObject("ADODB.Stream") 
Set conn = CreateObject("ADODB.Connection") 
Set fso = CreateObject("Scripting.FileSystemObject") 
connStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=ToMdb.mdb;" 

conn.Open connStr 
rs.Open "wz", conn, 1, 1 
stream.Open 
stream.Type = 1 

On Error Resume Next 

Do Until rs.Eof 
    thePath = rs("folder") & "\" 
    theFolder = Left(thePath, InStrRev(thePath, "\")) 
    If fso.FolderExists(theFolder) = False Then 
        createFolder(theFolder) 
    End If 
    stream.SetEos() 
    stream.Write rs("body") 
    stream.SaveToFile str & thepath & rs("file"), 2 
    rs.MoveNext 
Loop 

rs.Close 
conn.Close 
stream.Close 
Set ws = Nothing 
Set rs = Nothing 
Set stream = Nothing 
Set conn = Nothing 

Wscript.Echo "所有文件释放完毕!" 

Sub createFolder(thePath) 
    Dim i 
    i = Instr(thePath, "\") 
    Do While i > 0 
        If fso.FolderExists(Left(thePath, i)) = False Then 
            fso.CreateFolder(Left(thePath, i - 1)) 
        End If 
        If InStr(Mid(thePath, i + 1), "\") Then 
            i = i + Instr(Mid(thePath, i + 1), "\") 
         Else 
            i = 0 
        End If 
    Loop 
End Sub

海洋解压缩工具unpack.vbs

Dim rs, ws, fso, conn, stream, connStr, theFolder 
Set rs = CreateObject("ADODB.RecordSet") 
Set stream = CreateObject("ADODB.Stream") 
Set conn = CreateObject("ADODB.Connection") 
Set fso = CreateObject("Scripting.FileSystemObject") 
connStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Packet.mdb;" 

conn.Open connStr 
rs.Open "FileData", conn, 1, 1 
stream.Open 
stream.Type = 1 

On Error Resume Next 

Do Until rs.Eof 
  theFolder = Left(rs("thePath"), InStrRev(rs("thePath"), "\")) 
  If fso.FolderExists(theFolder) = False Then 
    createFolder(theFolder) 
  End If 
  stream.SetEos() 
  stream.Write rs("fileContent") 
  stream.SaveToFile str & rs("thePath"), 2 
  rs.MoveNext 
Loop 

rs.Close 
conn.Close 
stream.Close 
Set ws = Nothing 
Set rs = Nothing 
Set stream = Nothing 
Set conn = Nothing 

Wscript.Echo "所有文件释放完毕!" 

Sub createFolder(thePath) 
  Dim i 
  i = Instr(thePath, "\") 
  Do While i > 0 
    If fso.FolderExists(Left(thePath, i)) = False Then 
      fso.CreateFolder(Left(thePath, i - 1)) 
    End If 
    If InStr(Mid(thePath, i + 1), "\") Then 
      i = i + Instr(Mid(thePath, i + 1), "\") 
     Else 
      i = 0 
    End If 
  Loop 
End Sub
更多精彩内容其他人还在看

vbscript Split函数用法详解(字符串转数组函数)

本文详细介绍了vbscript中split函数的用法,有关split函数的一些实例,vbscript中split函数的语法介绍,有需要的朋友参考下
收藏 0 赞 0 分享

VBS实现将Excel表格保存为txt文本

希望能够找到个能给excel表另存为TXT的VBS代码,虽然另存为可以选择,但还是需要直接VBS执行这一步另存为TXT格式的,应该如何写代码呢
收藏 0 赞 0 分享

vbs解决处理TXT文本数据相关问题实现代码

使用vbs处理txt数据时,会遇到一些问题,本文将提供详细的解决方法,希望可以帮助你们
收藏 0 赞 0 分享

关于vbs 生成静态页面过程中出现的问题

访问某个aspx页面,然后把服务器返回的页面以filestream 的形式保存为html格式,接下来将介绍实现代码
收藏 0 赞 0 分享

dim函数第三个参数设置截取字符的长度问题

dim函数的第三个参数,也就是截取字符的长度,我在设置这个的时候,出了些问题,提示无效的过程调用或参数,本文详细介绍如何解决
收藏 0 赞 0 分享

邪恶的eval和new Function使用介绍

这些代码可以干什么?可以肯定的是可以干很多猥琐的事
收藏 0 赞 0 分享

WScript.Shell对象SpecialFolders属性未公开文档分享

WshShell对象的SpecialFolders属性返WshSpecialFolders 对象,该对象是一个特殊文件夹集合,其中包含整套Windows特殊文件夹
收藏 0 赞 0 分享

用VBS修改(设置)系统时间和日期的代码

用 VBS 把系统的时间修改到2038年1月19日3时14分07秒之后,这样某些依赖于 Unix 时间戳的程序就会出问题。那么怎样用 VBS 修改系统的时间呢
收藏 0 赞 0 分享

VBS For Next循环的一些细节

For Next 语句是 VBS 中常用的循环语句,你可能已经用过无数次 For Next 循环,但是你是否注意过它的一些细节呢
收藏 0 赞 0 分享

VBS For Next循环的陷阱分享

在《VBS For Next循环的一些细节》中说到了 For Next 循环的控制变量仅仅在循环开始前求值一次,但是其中存在一处陷阱
收藏 0 赞 0 分享
查看更多