Skip to main content

Static MachO/ObjC Reverse Engineering Toolkit

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

Credits

Chained fixup processing is currently entirely based on https://github.com/xpcmdshell/bn-chained-fixups

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-1.0.0rc2.tar.gz (71.6 kB view details)

Uploaded Source

Built Distribution

k2l-1.0.0rc2-py3-none-any.whl (79.2 kB view details)

Uploaded Python 3

File details

Details for the file k2l-1.0.0rc2.tar.gz.

File metadata

  • Download URL: k2l-1.0.0rc2.tar.gz
  • Upload date:
  • Size: 71.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.0rc1 Linux/4.4.0-22543-Microsoft

File hashes

Hashes for k2l-1.0.0rc2.tar.gz
Algorithm Hash digest
SHA256 56848615c83bb8def6025f372689e6f175caea0daafb5c2825cf24343abc8d71
MD5 4983c34b59b82f7fe30040c92e466b0f
BLAKE2b-256 9181c1a695cdd6f3ee94d0a0653c9072505837c30dd9fd0725e4733e9ebdec7b

See more details on using hashes here.

File details

Details for the file k2l-1.0.0rc2-py3-none-any.whl.

File metadata

  • Download URL: k2l-1.0.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 79.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.0rc1 Linux/4.4.0-22543-Microsoft

File hashes

Hashes for k2l-1.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 2a0275eba59cc3a8e90126fdf69505a0d3766244acfd271349bc69047d09c893
MD5 44e35a6f4f06b91b978e387ebf09bce4
BLAKE2b-256 4809ba3b2cc9acc73972db37b1974b5515e9946caa4a1c737bb9104cb2b2bad3

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