Coder Social home page Coder Social logo

ipapatch's Introduction

IPAPatch Logo

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

[ FeaturesInstructionsExampleLicense ]

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 utilize 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

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 decrypted ipa from jailbroken device or download directly from 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 Frameworks (Optional)

    External frameworks can be placed at IPAPatch/Assets/Frameworks folder. Frameworks will linked automatically.

    For example IPAPatch/Assets/Frameworks/RevealServer.framework

  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 final display name.
    • Change Bundle Identifier to match your provisioning profiles
    • Fix signing issues if any.
  6. 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.

  7. Build and Run

    Select an real device, and hit "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 a demo project, shows you how to integrate Reveal into Youtube, which can be found here: https://github.com/Naituw/IPAPatch/releases/tag/1.0

License

IPAPatch

   IPAPatch is licensed under the MIT license.

Copyright (c) 2017-present Wu Tian <[email protected]>.
  
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.

ipapatch's People

Contributors

naituw avatar wang9262 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.