Documentation
¶
Overview ¶
Package extract contains the extract commands.
Index ¶
- func DMG(c *Config) ([]string, error)
- func DSC(c *Config) ([]string, error)
- func Kernelcache(c *Config) (map[string][]string, error)
- func Keybags(c *Config) (fname string, err error)
- func LaunchdConfig(path string) (string, error)
- func SPTM(c *Config) ([]string, error)
- func Search(c *Config) ([]string, error)
- type Config
- type SystemVersionPlist
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Kernelcache ¶
Kernelcache extracts the kernelcache from an IPSW
func LaunchdConfig ¶
LaunchdConfig extracts launchd config from 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
Click to show internal directories.
Click to hide internal directories.