All Projects → LeanVel → iInject

LeanVel / iInject

Licence: GPL-3.0 license
Tool to automate the process of embedding dynamic libraries into iOS applications from GNU/Linux

Programming Languages

shell
77523 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to iInject

Fridacontainer
FridaContainer 整合了网上流行的和自己编写的常用的 frida 脚本,为逆向工作提效之用。 frida 脚本模块化,Java & Jni Trace。
Stars: ✭ 190 (+196.88%)
Mutual labels:  frida
SResigner
A macos application for ipa resign,dylib inject/delete and metadata modify.
Stars: ✭ 52 (-18.75%)
Mutual labels:  dylib
Learn-Frida
Modding Unity app with Frida tutorial.
Stars: ✭ 143 (+123.44%)
Mutual labels:  frida
Frida Skeleton
基于frida的安卓hook框架,提供了很多frida自身不支持的功能,将hook安卓变成简单便捷,人人都会的事情
Stars: ✭ 222 (+246.88%)
Mutual labels:  frida
dlib
Dynamic loading library for C/C++
Stars: ✭ 19 (-70.31%)
Mutual labels:  dylib
Wechatplugin Ios
No description or website provided.
Stars: ✭ 1,890 (+2853.13%)
Mutual labels:  dylib
Frida Boot
Frida Boot 👢- A binary instrumentation workshop, with Frida, for beginners!
Stars: ✭ 179 (+179.69%)
Mutual labels:  frida
frida-screenshot
Grab screenshots using Frida.
Stars: ✭ 35 (-45.31%)
Mutual labels:  frida
WeChatTweak
非越狱环境 Wechat 插件开发(Tweak)
Stars: ✭ 36 (-43.75%)
Mutual labels:  dylib
LibAFL
Advanced Fuzzing Library - Slot your Fuzzer together in Rust! Scales across cores and machines. For Windows, Android, MacOS, Linux, no_std, ...
Stars: ✭ 1,348 (+2006.25%)
Mutual labels:  frida
Awesome Reverse Engineering
Reverse Engineering Resources About All Platforms(Windows/Linux/macOS/Android/iOS/IoT) And Every Aspect! (More than 3500 open source tools and 2300 posts&videos)
Stars: ✭ 2,954 (+4515.63%)
Mutual labels:  frida
Strongr Frida Android
anti-detection version of frida-server for android.
Stars: ✭ 237 (+270.31%)
Mutual labels:  frida
Iosapphook
专注于非越狱环境下iOS应用逆向研究,从dylib注入,应用重签名到App Hook
Stars: ✭ 2,196 (+3331.25%)
Mutual labels:  dylib
Command Mobile Penetration Testing Cheatsheet
Mobile penetration testing android & iOS command cheatsheet
Stars: ✭ 221 (+245.31%)
Mutual labels:  frida
IPAPatch
Patch iOS Apps, The Easy Way, Without Jailbreak.
Stars: ✭ 301 (+370.31%)
Mutual labels:  frida
Luject
🍹A static injector of dynamic library for application (android, iphoneos, macOS, windows, linux)
Stars: ✭ 203 (+217.19%)
Mutual labels:  frida
macpack
Makes a macOS binary redistributable by searching the dependency tree and copying/patching non-system libraries.
Stars: ✭ 20 (-68.75%)
Mutual labels:  dylib
pymobiledevice3
Pure python3 implementation for working with iDevices (iPhone, etc...).
Stars: ✭ 259 (+304.69%)
Mutual labels:  libimobiledevice
idevicekit
NodeJs wrapper for libimobiledevice
Stars: ✭ 29 (-54.69%)
Mutual labels:  libimobiledevice
demuxusb
A program and toolset to analyze iDevice USB sessions
Stars: ✭ 25 (-60.94%)
Mutual labels:  libimobiledevice

iInject

Tool to automate the process of embedding dynamic libraries into iOS applications from GNU/Linux. The tool should work for non-jailbroken iOS devices running iOS 9 or higher.

This command line tool takes as an input an iOS application (.ipa) file and a dynamic library file (.dylib). It then implements the executable modification, code signing, and application deployment in an automated fashion.

Requirements

  • IPA files without encryption nor Fairplay protection
  • ZIP/UNZIP
  • gcc
  • Python
  • insert_dylib
  • iSign
  • curl
  • libimobiledevice / ideviceinstaller
  • Valid provisioning profile - See Helper Scripts for more info.

libimobiledevice / ideviceinstaller

#From Source https://github.com/libimobiledevice/libimobiledevice

#RPM

  $ sudo dnf install libimobiledevice libimobiledevice-utils

#DEB

  $ sudo apt install libimobiledevice libimobiledevice-utils

More info @ http://www.libimobiledevice.org/

insert_dylib

Since the master repository (https://github.com/Tyilo/insert_dylib) does not support Linux directly, we have forked it and made the modifications needed in order to port it to Linux. Our version of insert_dylib can be found in https://github.com/LeanVel/insert_dylib.

  $ git https://github.com/LeanVel/insert_dylib
  $ cd insert_dylib
  $ ./Install.sh

isign

To successfully sign the iOS binaries after inserting the dylib, the signer needs to support signing from scrach. Since the master repository for iSign (https://github.com/saucelabs/isign) does not support this feature, iInject uses the version implemented by ryu2 (https://github.com/ryu2/isign).

  $ git clone https://github.com/ryu2/isign
  $ cd isign
  $ sudo  python setup.py install

iInject was tested using the version of iSign backed up in this repository https://github.com/LeanVel/isign

iInject Usage

  $ ./iInject.sh <IPA File> <Dylib File>

Helper Scripts

In this project we also include two scripts that automates the generation of the provisioning profile required in the code signing step. These helper scripts require the AppleID and password of the user, in combination with the UUID of the device. Depending on the type of account one of these scripts should be used.

Individual/Enterprise Developer Accounts

For this type of account, the script genProvisioningProfileDev.rb should be used. This script uses the library spaceship provided by the project Fastlane to contact the Apple Developer Portal API and generate a provisioning profile.

Requirements

  • ruby
  • gem
  • fastlane

Ruby and Gem installation

#RPM

  $ sudo dnf install ruby gem

#DEB

  $ sudo apt install ruby gem

Fastlane installation

  $ sudo gem install fastlane

Usage

  $ ./genProvisioningProfileDev.rb <user> <password> <iDevice UUID>

Free Apple Accounts

For this type of account, the script ./genProvisioningProfileFree.sh should be used. This script uses the curl and xmllint to contact the Apple Developer Portal API and generate a provisioning profile.

Requirements

  • curl
  • xmllint

Curl and xmllint installation

#RPM

  $ sudo dnf install curl xmllint

#DEB

  $sudo apt install curl xmllint

Usage

  $ ./genProvisioningProfileFree.sh <AppleID> <Password> <Device UUID>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].