├── .gitignore ├── HookDemo ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── TestInlineHook.c ├── TestInlineHook.h ├── ViewController.h ├── ViewController.m └── main.m ├── README.md ├── libhook.xcodeproj └── project.pbxproj └── libhook ├── arm ├── arch-dis.h ├── arch-transform-dis.inc.h ├── assemble.h ├── dis-arm.inc.h ├── dis-main.inc.h ├── dis-thumb.inc.h ├── dis-thumb2.inc.h ├── jump-patch.h └── misc.h ├── arm64 ├── arch-dis.h ├── arch-transform-dis.inc.h ├── assemble.h ├── dis-main.inc.h ├── jump-patch.h └── misc.h ├── cbit ├── htab.h ├── misc.h ├── vec.c └── vec.h ├── darwin-inject-asm.S ├── darwin ├── execmem.c ├── find-syms.c ├── inject.c ├── interpose.c ├── mach-decls.h ├── manual-syscall.h ├── objc-asm.S ├── objc.c ├── objc.h ├── read.c ├── read.h └── substrate-compat.c ├── dis.h ├── dyld_cache_format.h ├── execmem.h ├── generated ├── generic-dis-arm.inc.h ├── generic-dis-arm64.inc.h ├── generic-dis-thumb.inc.h ├── generic-dis-thumb2.inc.h └── manual-mach.inc.h ├── hook-functions.c ├── jump-dis.c ├── jump-dis.h ├── libhook.h ├── strerror.c ├── substitute-internal.h ├── substitute.h ├── transform-dis.c ├── transform-dis.h └── x86 ├── arch-dis.h ├── arch-transform-dis.inc.h ├── dis-main.inc.h ├── jump-patch.h └── misc.h /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/.gitignore -------------------------------------------------------------------------------- /HookDemo/AppDelegate.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/HookDemo/AppDelegate.h -------------------------------------------------------------------------------- /HookDemo/AppDelegate.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/HookDemo/AppDelegate.m -------------------------------------------------------------------------------- /HookDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/HookDemo/Assets.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /HookDemo/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/HookDemo/Base.lproj/LaunchScreen.storyboard -------------------------------------------------------------------------------- /HookDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/HookDemo/Base.lproj/Main.storyboard -------------------------------------------------------------------------------- /HookDemo/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/HookDemo/Info.plist -------------------------------------------------------------------------------- /HookDemo/TestInlineHook.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/HookDemo/TestInlineHook.c -------------------------------------------------------------------------------- /HookDemo/TestInlineHook.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/HookDemo/TestInlineHook.h -------------------------------------------------------------------------------- /HookDemo/ViewController.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/HookDemo/ViewController.h -------------------------------------------------------------------------------- /HookDemo/ViewController.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/HookDemo/ViewController.m -------------------------------------------------------------------------------- /HookDemo/main.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/HookDemo/main.m -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # iOS_Hook 2 | -------------------------------------------------------------------------------- /libhook.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /libhook/arm/arch-dis.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm/arch-dis.h -------------------------------------------------------------------------------- /libhook/arm/arch-transform-dis.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm/arch-transform-dis.inc.h -------------------------------------------------------------------------------- /libhook/arm/assemble.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm/assemble.h -------------------------------------------------------------------------------- /libhook/arm/dis-arm.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm/dis-arm.inc.h -------------------------------------------------------------------------------- /libhook/arm/dis-main.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm/dis-main.inc.h -------------------------------------------------------------------------------- /libhook/arm/dis-thumb.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm/dis-thumb.inc.h -------------------------------------------------------------------------------- /libhook/arm/dis-thumb2.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm/dis-thumb2.inc.h -------------------------------------------------------------------------------- /libhook/arm/jump-patch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm/jump-patch.h -------------------------------------------------------------------------------- /libhook/arm/misc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm/misc.h -------------------------------------------------------------------------------- /libhook/arm64/arch-dis.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm64/arch-dis.h -------------------------------------------------------------------------------- /libhook/arm64/arch-transform-dis.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm64/arch-transform-dis.inc.h -------------------------------------------------------------------------------- /libhook/arm64/assemble.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm64/assemble.h -------------------------------------------------------------------------------- /libhook/arm64/dis-main.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm64/dis-main.inc.h -------------------------------------------------------------------------------- /libhook/arm64/jump-patch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm64/jump-patch.h -------------------------------------------------------------------------------- /libhook/arm64/misc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/arm64/misc.h -------------------------------------------------------------------------------- /libhook/cbit/htab.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/cbit/htab.h -------------------------------------------------------------------------------- /libhook/cbit/misc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/cbit/misc.h -------------------------------------------------------------------------------- /libhook/cbit/vec.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/cbit/vec.c -------------------------------------------------------------------------------- /libhook/cbit/vec.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/cbit/vec.h -------------------------------------------------------------------------------- /libhook/darwin-inject-asm.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/darwin-inject-asm.S -------------------------------------------------------------------------------- /libhook/darwin/execmem.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/darwin/execmem.c -------------------------------------------------------------------------------- /libhook/darwin/find-syms.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/darwin/find-syms.c -------------------------------------------------------------------------------- /libhook/darwin/inject.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/darwin/inject.c -------------------------------------------------------------------------------- /libhook/darwin/interpose.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/darwin/interpose.c -------------------------------------------------------------------------------- /libhook/darwin/mach-decls.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/darwin/mach-decls.h -------------------------------------------------------------------------------- /libhook/darwin/manual-syscall.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/darwin/manual-syscall.h -------------------------------------------------------------------------------- /libhook/darwin/objc-asm.S: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/darwin/objc-asm.S -------------------------------------------------------------------------------- /libhook/darwin/objc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/darwin/objc.c -------------------------------------------------------------------------------- /libhook/darwin/objc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/darwin/objc.h -------------------------------------------------------------------------------- /libhook/darwin/read.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/darwin/read.c -------------------------------------------------------------------------------- /libhook/darwin/read.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/darwin/read.h -------------------------------------------------------------------------------- /libhook/darwin/substrate-compat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/darwin/substrate-compat.c -------------------------------------------------------------------------------- /libhook/dis.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/dis.h -------------------------------------------------------------------------------- /libhook/dyld_cache_format.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/dyld_cache_format.h -------------------------------------------------------------------------------- /libhook/execmem.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/execmem.h -------------------------------------------------------------------------------- /libhook/generated/generic-dis-arm.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/generated/generic-dis-arm.inc.h -------------------------------------------------------------------------------- /libhook/generated/generic-dis-arm64.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/generated/generic-dis-arm64.inc.h -------------------------------------------------------------------------------- /libhook/generated/generic-dis-thumb.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/generated/generic-dis-thumb.inc.h -------------------------------------------------------------------------------- /libhook/generated/generic-dis-thumb2.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/generated/generic-dis-thumb2.inc.h -------------------------------------------------------------------------------- /libhook/generated/manual-mach.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/generated/manual-mach.inc.h -------------------------------------------------------------------------------- /libhook/hook-functions.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/hook-functions.c -------------------------------------------------------------------------------- /libhook/jump-dis.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/jump-dis.c -------------------------------------------------------------------------------- /libhook/jump-dis.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/jump-dis.h -------------------------------------------------------------------------------- /libhook/libhook.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/libhook.h -------------------------------------------------------------------------------- /libhook/strerror.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/strerror.c -------------------------------------------------------------------------------- /libhook/substitute-internal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/substitute-internal.h -------------------------------------------------------------------------------- /libhook/substitute.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/substitute.h -------------------------------------------------------------------------------- /libhook/transform-dis.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/transform-dis.c -------------------------------------------------------------------------------- /libhook/transform-dis.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/transform-dis.h -------------------------------------------------------------------------------- /libhook/x86/arch-dis.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/x86/arch-dis.h -------------------------------------------------------------------------------- /libhook/x86/arch-transform-dis.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/x86/arch-transform-dis.inc.h -------------------------------------------------------------------------------- /libhook/x86/dis-main.inc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/x86/dis-main.inc.h -------------------------------------------------------------------------------- /libhook/x86/jump-patch.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/x86/jump-patch.h -------------------------------------------------------------------------------- /libhook/x86/misc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/er1cw00/iOS_Hook/HEAD/libhook/x86/misc.h --------------------------------------------------------------------------------