Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 1.09 KB

README.md

File metadata and controls

28 lines (24 loc) · 1.09 KB

mlinject

A simple python tool for injecting a dylib into an IPA, everyone can understand what's going on behind the scenes
Because this tool simply perform the following steps

  1. Save the entitlements of the app's main bundle executable using ldid
  2. Remove the code signature of the app's main bundle executable using ldid
  3. Insert tweak dylib into the executable's LC_LOAD_DYLIB
  4. Recover the entitlements using ldid
  5. Remove the code signature of the tweak dylib using ldid
  6. Change LC_ID_DYLIB of the tweak
  7. Change LC_LOAD_DYLIB of the tweak with our hooking library
  8. Move the modified items(executable, tweak, hooking lib) into the zip

Prerequisite

Python > 3.8.0

Usage

git clone https://github.com/hackcatml/mlinject.git
cd mlinject
pip install -r requirements.txt
python main.py

follow the instruction prompts
It will inject ellekit or CydiaSubstrate as a hooking library

Credits

Azule
ldid
LIEF