Static MachO/ObjC Reverse Engineering Toolkit
Project description
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
json - Dump image metadata as json
cs - Codesigning info
kcache - Kernel cache specific tools
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.3.0.tar.gz
(90.0 kB
view details)
Built Distribution
k2l-1.3.0-py3-none-any.whl
(100.1 kB
view details)
File details
Details for the file k2l-1.3.0.tar.gz
.
File metadata
- Download URL: k2l-1.3.0.tar.gz
- Upload date:
- Size: 90.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ac560563754d3194a262b2fc604633c70e933620e3155752f6466bf4bc87162 |
|
MD5 | f097ea97ac162c7f4b8be1c3485b1873 |
|
BLAKE2b-256 | c7c683dcd43119686286296278267183088824b6a330225831f6d045a2090ca9 |
File details
Details for the file k2l-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: k2l-1.3.0-py3-none-any.whl
- Upload date:
- Size: 100.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.12 Darwin/21.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d2a5e3d5d121531457feb5f8cac5a4ef7335dff8f6bf80cba5960bd96a228ec |
|
MD5 | 8ac4860f73d5d1efcbe43da8bc85364f |
|
BLAKE2b-256 | b1c1e1f8362a378af0a873076ca856c7c8a91bf649a9e6ce923158de42478b9e |