command
module
Version:
v0.0.0-...-3112f42
Opens a new window with list of versions in this module.
Published: Dec 15, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
A tool to extract vmlinux/vmlinuz in golang
Inspired from the official script from linux extract-vmlinux
How to use
package main
import (
"log"
extract "github.com/rawdaGastan/go-extract-vmlinux"
)
func main() {
kernelImagePath := "<Enter your compressed kernel path>"
// decompress kernel
err := extract.TryDecompressKernel(kernelImagePath, kernelImagePath+"-decompressed")
if err != nil {
log.Fatal(err)
}
// compressed kernel
err = extract.IsValidELFKernel(kernelImagePath + "-decompressed")
if err != nil {
log.Fatal(err)
}
}
How to test
make test
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.