Unpacks bzImage file to get uncompressed vmlinux kernel.
This is small tool to unpack bzImage file. In fact it does same thing as this script (and script even does more!). It may be useful if you want to run it inside your c/c++/c# code or unpack the file on Windows.
Make sure zlib package installed (it is on many popular distros by default), otherwise it will not work.
In terminal or command line enter following.
./unpack-bzimage <path_to_file>
Make sure .Net Framework 2.0 and newer installed.
In command line enter following.
bzImageUnpacker.exe <path_to_file>
To understand it please read about bzImage file format. Here is wiki page. In few words it contains the gzipped vmlinux file inside, which starts with GZIP magic bytes 1F 8B and compression method 08. This tool finds such signature and tries to unpack compressed content until success or writes it fails.
On Linux prerequirments are:
- zlib
- gcc or g++
- make
When you done just make it =)
On Windows there is project for MSVS 2015, but you can build it on almost any version (or even without it, there just two .cs files). It should be fine for .Net Framework 2.0 and newer.