Skip to content

hackcatml/mlinject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages