1. What does yololib do?
yololib can inject framework into mach-o files
You can use machOView software to view the injected framework
2. Use
- Download the project from github and compile the yololib executable file.
- Copy yololib to /usr/local/bin.
- Unzip the ipa to get the Payload, and copy the lyk.framework generated from xcode ( must be compiled with a real machine ) to the Frameworks folder of WeChat.app.
- Execute
yololib /Users/LYK/Desktop/go/Payload/WeChat.app/WeChat Frameworks/lyk.framework/lyk
, the first parameter is the mach-o file, and the second parameter is the framework executable file - Compress the payload and modify the suffix to get the .ipa file.
- Use codesign to re-sign and install ipa.
+(void)load
Print a fixed string in the framework method to verify whether the framework is successfully injected.