IPSW-IMG4-IM4P-EXTRACT(1)

NAME
ipsw-img4-im4p-extract - Extract IM4P data

SYNOPSIS
ipsw img4 im4p extract [flags]

DESCRIPTION
Extract IM4P payload data or extra metadata.

OPTIONS
-e, --extra[=false]
    Extract extra data

-h, --help[=false]
    help for extract

-i, --iv=""
    AES iv for decryption

--iv-key=""
    AES iv+key for decryption

-b, --kbag[=false]
    Extract keybags as JSON

-k, --key=""
    AES key for decryption

--lookup[=false]
    Auto-lookup IV/key on theapplewiki.com

--lookup-build=""
    Build number for key lookup (e.g., 20H71)

--lookup-device=""
    Device identifier for key lookup (e.g., iPhone14,2)

-o, --output=""
    Output file path

-r, --raw[=false]
    Extract raw data (compressed/encrypted)

OPTIONS INHERITED FROM PARENT COMMANDS
--color[=false]
    colorize output

--config=""
    config file (default is $HOME/.config/ipsw/config.yaml)

--no-color[=false]
    disable colorize output

-V, --verbose[=false]
    verbose output

EXAMPLE
    # Extract decompressed payload data
    ❯ ipsw img4 im4p extract kernelcache.im4p
    # Extract extra data (if present)
    ❯ ipsw img4 im4p extract --extra kernelcache.im4p
    # Extract keybags as JSON
    ❯ ipsw img4 im4p extract --kbag encrypted.im4p
    # Decrypt and extract payload
    ❯ ipsw img4 im4p extract --iv 1234... --key 5678... encrypted.im4p
    # Auto-lookup key and decrypt
    ❯ ipsw img4 im4p extract --lookup --lookup-device iPhone14,2 --lookup-build 20H71 RestoreRamDisk.im4p
    # Auto-detect device/build from folder structure (e.g., 22F76__iPhone11,8/...)
    ❯ ipsw img4 im4p extract --lookup /path/to/22F76__iPhone11,8/sep-firmware.n841.RELEASE.im4p
    # Extract to specific output file
    ❯ ipsw img4 im4p extract --output kernel.bin kernelcache.im4p

SEE ALSO
ipsw-img4-im4p(1)

HISTORY
24-Oct-2025 Auto generated by spf13/cobra