反编译 .NETZ 混淆过的 exe

Saving resource from reflector

Imports System.IO

Imports ICSharpCode.SharpZipLib.Zip.Compression.Streams

 Sub Main()

    Dim folder As String = "C:\Cracked\Files"
    ' This is the name of the resource we took from
    ' reflector.
    Dim bFile As String = _
    	System.IO.Path.Combine(folder, "A6C24BF5-3690-4982-887E-11E1B159B249")
    Dim b() As Byte = My.Computer.FileSystem.ReadAllBytes(bFile)

    ' Attach a .exe to the end of the string
    bFile += ".exe"
    ' write the bytes to the file.
    Using ms As MemoryStream = UnZip(b)
        Dim outBytes() As Byte = ms.GetBuffer
        My.Computer.FileSystem.WriteAllBytes(bFile, outBytes, False)
    End Using 

End Sub

转自:http://blogs.compdj.com/post/Cracking-NETZ-executables.aspx 

原文地址:https://www.cnblogs.com/hubj/p/1591927.html