IPapatch proporciona una forma simple de parchear las aplicaciones de iOS, sin necesidad de jailbreak.
[Características • Instrucciones • Ejemplo • Preguntas frecuentes • Licencia]
Ipapatch incluye un proyecto de plantilla Xcode, que proporciona las siguientes características:
Construir y ejecutar IPA de terceros con su código inyectado
Puede ejecutar su propio código dentro del archivo IPA como una biblioteca dinámica. Por lo tanto, puede cambiar el comportamiento de esa aplicación utilizando el tiempo de ejecución Objective-C.
Presentó una alerta personalizada en la aplicación de YouTube
Depuración paso a paso con LLDB
Puede depurar aplicaciones de terceros como las suyas. Por ejemplo:
Depuración de YouTube con xcode
Enlace de marcos externos
Al vincular los marcos existentes, puede integrar servicios de terceros con aplicaciones muy fácilmente, como revelar.
Inspeccione YouTube vinculando revelServer.framework
Generar archivos .ipa distribuibles
Puede distribuir su parche/trabajo a sus amigos muy fácilmente, con la versión modificada generada por iPapatch de los archivos .ipa
Versión modificada de Facebook.ipa creada por ipapatch
Clon o descargar este proyecto
Descargue este proyecto a su disco local
Preparar el archivo IPA descifrado
El archivo de IPA que usa debe descifrarse, puede obtener una IPA descifrada de un dispositivo jailbreak o descargarlo directamente desde un sitio de descarga de IPA, como http://www.iphonecake.com
Reemplace el marcador de posición IPA
Reemplace el archivo IPA ubicado en IPAPatch/Assets/app.ipa con el suyo, este es un archivo de marcador de posición. El nombre de archivo debe permanecer app.ipa después de reemplazar.
Coloque recursos/marcos externos (opcional)
Se admiten los tipos de seguimiento de archivos externos:
IPAPatch/Assets/Frameworks .IPAPatch/Assets/Frameworks/RevealServer.frameworkIPAPatch/Assets/Dylibs .IPAPatch/Assets/ResourcesConfigurar configuraciones de compilación
IPAPatch.xcodeprojIPAPatch-DummyAppDisplay Name predeterminado es "?", Esto se usa como prefijo del nombre final de visualización.Bundle Identifier para que coincida con sus perfiles de aprovisionamientoConfigurar opciones de ippatch
Puede configurar el comportamiento de iPapatch con Tools/options.plist
| Nombre | Descripción | Por defecto |
|---|---|---|
| Restaurar_symbols | Cuando YES , iPapatch intentará restaurar la tabla de símbolos de Mach-O para la propuesta de depuración (con herramientas de https://github.com/tobefuturer/restore-symbol, también gracias a @henrayluo y @dannion) | NO |
| Create_ipa_file | Cuando YES , Ipapatch generará un archivo IPA en cada compilación. El archivo Genrated se encuentra en SRCROOT/Product | NO |
| Ignore_ui_supported_devices | Cuando YES , iPapatch eliminará UISupportedDevices de Info.plist de la aplicación fuente. | NO |
| Remover_watchplaceholder | Cuando YES , iPapatch eliminará la carpeta com.apple.WatchPlaceholder del paquete de la aplicación de origen | SÍ |
| Use_original_entitlements | Cuando YES , Ipapatch usará los derechos de la aplicación de origen para renunciar, debe asegurarse de que su perfil de aprovisionamiento coincida con los derechos, o debe deshabilitar AMFI en el dispositivo de destino | NO |
Codifica tu parche
La entrada es AT +[IPAPatchEntry load] , puede escribir el código de inicio desde aquí. Para cambiar el comportamiento de las aplicaciones, es posible que deba utilizar alguna biblioteca de método, como Steipete/Aspectos.
Construir y correr
Seleccione un dispositivo real y presione el botón "Ejecutar" en la esquina superior izquierda de Xcode. El código que escribió y los marcos externos que colocó se inyectará al archivo IPA automáticamente.
Creé un proyecto de demostración, que te muestra cómo usar IPAPatch :
P: Biblioteca no cargada de razón: mach-o, but wrong architecture ?
Valid Architectures de IPAPatch Target para que coincidan con la arquitectura de su binaria IPA.P: El lanzamiento del proceso falló: no especificado (deshabilitado)?
P: Dyld: Símbolo no encontrado: xxx, referenciado de: xxx, esperado en: xxx/libswiftxxx.dylib
IPapatch tiene licencia bajo la licencia MIT.
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.
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.
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.