extract

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package extract contains the extract commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DMG

func DMG(c *Config) ([]string, error)

DMG extracts the DMG from an IPSW

func DSC

func DSC(c *Config) ([]string, error)

DSC extracts the DSC file from an IPSW

func Kernelcache

func Kernelcache(c *Config) (map[string][]string, error)

Kernelcache extracts the kernelcache from an IPSW

func Keybags

func Keybags(c *Config) (fname string, err error)

Keybags extracts the keybags from an IPSW

func LaunchdConfig

func LaunchdConfig(path string) (string, error)

LaunchdConfig extracts launchd config from an IPSW

func SPTM

func SPTM(c *Config) ([]string, error)

SPTM extracts the SPTM firmware from an IPSW

func Search(c *Config) ([]string, error)

Search searches for files matching a pattern in an IPSW

Types

type Config

type Config struct {
	// path to the IPSW
	IPSW string `json:"ipsw,omitempty"`
	// url to the remote IPSW
	URL string `json:"url,omitempty"`
	// regex pattern to search for in the IPSW
	Pattern string `json:"pattern,omitempty"`
	// arches of the DSCs to extract
	Arches []string `json:"arches,omitempty"`
	// extract the DriverKit DSCs
	DriverKit bool `json:"driver_kit,omitempty"`
	// http proxy to use
	Proxy string `json:"proxy,omitempty"`
	// don't verify the certificate chain
	Insecure bool `json:"insecure,omitempty"`
	// search the DMGs for files
	DMGs bool `json:"dmgs,omitempty"`
	// type of DMG to extract
	// pattern: (app|sys|fs)
	DmgType string `json:"dmg_type,omitempty"`
	// flatten the extracted files paths (remove the folders)
	Flatten bool `json:"flatten,omitempty"`
	// show the progress bar (when using the CLI)
	Progress bool `json:"progress,omitempty"`
	// output directory to write extracted files to
	Output string `json:"output,omitempty"`
}

Config is the extract command configuration.

type SystemVersionPlist

type SystemVersionPlist struct {
	BuildID             string `json:"build_id,omitempty"`
	ProductBuildVersion string `json:"product_build_version,omitempty"`
	ProductCopyright    string `json:"product_copyright,omitempty"`
	ProductName         string `json:"product_name,omitempty"`
	ProductVersion      string `json:"product_version,omitempty"`
	ReleaseType         string `json:"release_type,omitempty"`
	SystemImageID       string `json:"system_image_id,omitempty"`
}

SystemVersionPlist is the SystemVersion.plist struct

func SystemVersion

func SystemVersion(path string) (*SystemVersionPlist, error)

SystemVersion extracts the system version info from an IPSW

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL