Skip to main content

Static mach-o/img4 analysis tool.

Project description

Logo

MachO/ObjC Analysis + Editing toolkit.



Installation

# Installing
pip3 install k2l

# Updating
pip3 install --upgrade k2l

Usage

> $ ktool
Usage: ktool [command] <flags> [filename]

Commands:

GUI (Still in active development) ---
    ktool open [filename] - Open the ktool command line GUI and browse a file

MachO Analysis ---
    dump - Tools to reconstruct headers and TBDs from compiled MachOs
    list - Print various lists (Classlist, etc.)
    symbols - Print various tables (Symbols, imports, exports)
    info - Print misc info about the target mach-o

MachO Editing ---
    insert - Utils for inserting load commands into MachO Binaries
    edit - Utils for editing MachO Binaries
    lipo - Utilities for combining/separating slices in fat MachO files.

Misc Utilities ---
    file - Print very basic info about the MachO
    img4 - IMG4 Utilities
    

Run `ktool [command]` for info/examples on using that command

written in pure, 100% python for the sake of platform independence when operating on static binaries and libraries. this should run on any and all implementations of python3.

Tested on:

  • Windows/Windows on ARM64
  • MacOS x86/arm64
  • Linux/Linux ARM64
  • iOS (iSH, ssh)
  • Android (Termux)
  • WebAssembly
  • Brython

Special thanks to

JLevin and *OS Internals for existing

arandomdev for guidance + code

Blacktop for their amazing ipsw project: https://github.com/blacktop/ipsw

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

k2l-0.18.0.tar.gz (60.0 kB view details)

Uploaded Source

Built Distribution

k2l-0.18.0-py3-none-any.whl (66.3 kB view details)

Uploaded Python 3

File details

Details for the file k2l-0.18.0.tar.gz.

File metadata

  • Download URL: k2l-0.18.0.tar.gz
  • Upload date:
  • Size: 60.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for k2l-0.18.0.tar.gz
Algorithm Hash digest
SHA256 f1fc796421e6963c7db89733783708d131e55433db81ae33d3902ae000141b7a
MD5 93227d6653307ee090f95f7ae4b82181
BLAKE2b-256 dd268a5a6e3258a06507dc6afc94e28bb0ff94ff0552d05e2c195f4aaf49d387

See more details on using hashes here.

File details

Details for the file k2l-0.18.0-py3-none-any.whl.

File metadata

  • Download URL: k2l-0.18.0-py3-none-any.whl
  • Upload date:
  • Size: 66.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

File hashes

Hashes for k2l-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f02ce4f67fb4fa6285bdc3152f3265e85f6449d4e6ccb88cb8a63dc0a28554fc
MD5 4b3c1c2ade06c3a9b91822c784a7bba3
BLAKE2b-256 a98f49ea252d33cb9fd12c1db64617b811d89ead2f498e2247ef818f11e2c5ac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page