Zurück zum Ranking

Naituw/IPAPatch

Objective-C

Patch iOS Apps, The Easy Way, Without Jailbreak.

ipahackinghacking-toolreverse-engineeringxcodepatchingios
Sterne-Wachstum
Sterne
5.3k
Forks
762
Wochenwachstum
Issues
40
2k4k
März 2017Apr. 2020Juni 2023Juli 2026
README

IPAPatch Logo

IPAPatch provide a simple way to patch iOS Apps, without needing to jailbreak.

[ FeaturesInstructionsExampleFAQLicense ]

Features

IPAPatch includes an template Xcode project, that provides following features:

  • Build & Run third-party ipa with your code injected

    You can run your own code inside ipa file as a dynamic library. So you can change behavior of that app by utilizing Objective-C runtime.

    Presented an custom alert in Youtube app

    Youtube Hacked

  • Step-by-step Debugging with lldb

    You can debug third-party apps like your own. For example:

    • Step-by-Step debug your code inside other app
    • Set Breakpoints
    • Print objects in Xcode console with lldb

    Debugging Youtube with Xcode

    Youtube Debugging

  • Link external frameworks

    By linking existing frameworks, you can integrate third-party services to apps very easily, such as Reveal.

    Inspect Youtube by linking RevealServer.framework

    Youtube Integrated Reveal

  • Generate distributable .ipa files

    You can distribute your patch/work to your friends very easily, with IPAPatch generated modified version of .ipa files

    Modified version of Facebook.ipa created by IPAPatch

    687474703a2f2f7778312e73696e61696d672e636e2f6c617267652f62656265646262356c7931666979617775357133366a32306774303766676d722e6a7067

Instructions

  1. Clone or Download This Project

    Download this project to your local disk

  2. Prepare Decrypted IPA File

    The IPA file you use need to be decrypted, you can get a decrypted ipa from a jailbroken device or download it directly from an ipa download site, such as http://www.iphonecake.com

  3. Replace Placeholder IPA

    Replace the IPA file located at IPAPatch/Assets/app.ipa with yours, this is a placeholder file. The filename should remain app.ipa after replacing.

  4. Place External Resources/Frameworks (Optional)

    Follow types of external file are supported:

    • Frameworks:
      • External frameworks can be placed at IPAPatch/Assets/Frameworks folder.
      • Frameworks will be linked automatically.
      • For example IPAPatch/Assets/Frameworks/RevealServer.framework
    • Dynamic Libraries:
      • External dynamic libraries can be placed at IPAPatch/Assets/Dylibs folder.
      • Libraries will be linked automatically
    • Resources/Bundles:
      • Other resources or bundles can be placed at IPAPatch/Assets/Resources
      • Resources will be copied directly to the main bundle of original app
  5. Configure Build Settings

    • Open IPAPatch.xcodeproj
    • In the Project Editor, Select Target IPAPatch-DummyApp
    • Display Name defaults to "💊", this is used as prefix of the final display name.
    • Change Bundle Identifier to match your provisioning profiles
    • Fix signing issues if any.
  6. Configure IPPatch Options

    • You can config IPAPatch's behavior with Tools/options.plist

      Name Description Default
      RESTORE_SYMBOLS When YES, IPAPatch will try to restore symbol table from Mach-O for debugging propose (with tools from https://github.com/tobefuturer/restore-symbol, also thanks to @henrayluo and @dannion) NO
      CREATE_IPA_FILE When YES, IPAPatch will generate a ipa file on each build. Genrated file is located at SRCROOT/Product NO
      IGNORE_UI_SUPPORTED_DEVICES When YES, IPAPatch will delete UISupportedDevices from source app's Info.plist NO
      REMOVE_WATCHPLACEHOLDER When YES, IPAPatch will remove com.apple.WatchPlaceholder folder from source app's bundle YES
      USE_ORIGINAL_ENTITLEMENTS When YES, IPAPatch will use source app's entitlements to resign, you need to make sure your Provisioning Profile matches the entitlements, or you need to disable AMFI on target device NO
  7. Code Your Patch

    The entry is at +[IPAPatchEntry load], you can write code start from here. To change apps' behavior, You may need to use some method swizzling library, such as steipete/Aspects.

  8. Build and Run

    Select a real device, and hit the "Run" button at the top-left corner of Xcode. The code your wrote and external frameworks you placed will inject to the ipa file automatically.

Example

I created some demo project, which shows you how to use IPAPatch:

FAQ

  • Q: Library not loaded with reason: mach-o, but wrong architecture ?

    • A: Try set IPAPatch target's Valid Architectures to match your ipa binary's architecture.
  • Q: process launch failed: Unspecified (Disabled) ?

    • A: The ipa file use with IPAPatch must be decrypted, See step.2 of Instructions.
  • Q: dyld: Symbol not found: XXX, Referenced from: XXX, Expected in: XXX/libswiftXXX.dylib

    • The swift version the framework you injecting use, is incompatible with the version of your Xcode

License

IPAPatch

   IPAPatch is licensed under the MIT license.

Copyright (c) 2017-present Wu Tian <wutian@me.com>.
  
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
  
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
  
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

OPTOOL

Copyright (c) 2014, Alex Zielenski
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

fishhook

Copyright (c) 2013, Facebook, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
  * Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimer.
  * Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.
  * Neither the name Facebook nor the names of its contributors may be used to
    endorse or promote products derived from this software without specific
    prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Ähnliche Repositories
majd/ipatool

Command-line tool that allows searching and downloading app packages (known as ipa files) from the iOS App Store

GoGo ModulesMIT Licenseiosappstore
9.7k831
Sjj1024/PakePlus-iOS

Turn any webpage/HTML/Vue/React and so on into desktop and mobile app under 5M with easy in few minutes. 轻松将任意网站/HTML/Vue/React等项目构建为轻量级(小于5M)多端桌面应用和手机应用仅需几分钟. https://ppofficial.netlify.app

SwiftMIT Licenseipapake
pakeplus.com
8.4k5.6k
shidahuilang/shuyuan

阅读书源-香色闺阁+阅读3.0书源+源阅读+爱阅书香+千阅+花火阅读+读不舍手+番茄+喜马拉雅+漫画+听书+书源+IPTV源+IPA巨魔应用=自动更新

PythonPyPIGNU General Public License v3.0xiangsegigereader
6.9k412
AloneMonkey/MonkeyDev

CaptainHook Tweak、Logos Tweak and Command-line Tool、Patch iOS Apps, Without Jailbreak.

Objective-CGNU General Public License v3.0theosxcode
6.8k1.2k
claration/Feather

Free on-device iOS/iPadOS application manager/installer, using certificates part of the Apple Developer Program.

SwiftGNU General Public License v3.0iosipa
feather.claration.dev
4.4k394
AloneMonkey/frida-ios-dump

pull decrypted ipa from jailbreak device

JavaScriptnpmMIT Licensedumpdecryptedios
3.9k730
kelvinBen/AppInfoScanner

一款适用于以HW行动/红队/渗透测试团队为场景的移动端(Android、iOS、WEB、H5、静态网站)信息收集扫描工具,可以帮助渗透测试工程师、攻击队成员、红队成员快速收集到移动端或者静态WEB站点中关键的资产信息并提供基本的信息输出,如:Title、Domain、CDN、指纹信息、状态信息等。

PythonPyPIGNU General Public License v3.0securitypython3
3.5k407
claration/Impactor

Feature rich iOS/tvOS sideloading application written in Rust.

Rustcrates.ioMIT Licensealtstoreios
impactor.claration.dev
2.8k161
ealeksandrov/ProvisionQL

Quick Look plugin for mobile apps and provisioning profiles

SwiftMIT Licensemacosquicklook
2.5k162
SignTools/SignTools

✒ A free, self-hosted platform to sideload iOS apps without a computer

GoGo ModulesGNU Affero General Public License v3.0iossigning
2.2k272
NeoFreeBird/app

A modified Twitter app, with branding reverts, BHTwitter and other QoL modifications.

CSSnpmfreebirdipa
neofreebird.com
1.6k122
khcrysalis/Feather

Feather is a free on-device iOS application manager/installer, using certificates part of the Apple Developer Program.

SwiftGNU General Public License v3.0iosipa
1.6k100