.NETZ is a free open source tool that compresses and packs the Microsoft .NET Framework executable (EXE, DLL) files in order to make them smaller. Smaller executables consume less disk space and load faster because of fewer disk accesses.

Today we are going to show you how to extract assemblies from them, so we can crack them!

First, we use reflector to save the resources to a folder. Right-click on the zip.dll and choose Save As… Then do the same for the guid resource.

image[1]

Then, in reflector, we find the unzip method. It’s in the namespace netz.NetzStarter.Unzip(data() as byte)

So we copy that code to the clipboard, and fire up Visual Studio and make a new console app.

Paste the unzip code to the module, and add namespaces at the top:

Code Snippet
using System.IO;
using ICSharpCode.SharpZipLib.Zip.Compression.Streams;

Then we add the following code to the Main() sub.

Code Snippet
public void Main()
{
    string folder = @"C:\\Cracked\\Files";
    // This is the name of the resource we took from
    // reflector.
    string bFile = System.IO.Path.Combine(folder, "A6C24BF5-3690-4982-887E-11E1B159B249");
    byte[] b = My.Computer.FileSystem.ReadAllBytes(bFile);

    // Attach a .exe to the end of the string
    bFile += ".exe";
    // write the bytes to the file.
    using (MemoryStream ms = UnZip(b))
    {
        byte[] outBytes = ms.GetBuffer;
        My.Computer.FileSystem.WriteAllBytes(bFile, outBytes, false);
    }
}

And run it. It should make an executable file in the same folder… Happy cracking!

Advertisements