GithubHelp home page GithubHelp logo

acreson / ktool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lemon4ex/ktool

0.0 1.0 0.0 18 KB

一个包含iPA重签名以及dylib注入的命令行工具,做非越狱Hook会用得到。

Home Page: https://github.com/lemon4ex/ktool

Objective-C 20.44% Objective-C++ 79.56%

ktool's Introduction

ktool

一个包含iPA重签名以及dylib注入的命令行工具

用法

ktool command
commands are:
	resign	IPA包重签名
	inject	注入dylib到目标二进制文件中

重签名

ktool resign -c certNname -m mobileProvision [-p a.dylib,b.dylib...] [-a a.dylib,b.dylib...] [-e entitlements.plist] [-i bundleIdentifier] [-n bundleName] [-N bundleDisplayName] [-v bundleShortVersion] [-V bundleVersion] [-verbose] [-help] input_file output_file
	-c 证书名称,如:iPhone Developer: Xxxxxx Xxxx (*******)
	-m mobileProvision文件
	-p 需要注入IPA包中二进制文件的dylib文件,可以包含多个,使用","分隔
	-a 需要添加到IPA包中的文件,可以包含多个,使用","分隔
	-e 签名使用的entitlements.plist文件,如果没有,将使用mobileProvision文件生成
	-i Info.plist里的bundleIdentifier
	-n Info.plist里的bundleName
	-N Info.plist里的bundleDisplayName
	-v Info.plist里的bundleShortVersion
	-V Info.plist里的bundleVersion
	-help 显示帮助信息
	-verbose 输出debug详细信息

栗子

ktool resign -verbose -c "iPhone Developer: xxxxxx xxxx (xxxxxxxxx)" -m "/Users/lemon4ex/Desktop/dev.mobileprovision" -p "/Users/lemon4ex/Desktop/libHook1.dylib,/Users/lemon4ex/Desktop/libHook2.dylib" -i "com.tencent.wechat01" -a "/Users/lemon4ex/Desktop/hook.bundle" "/Users/lemon4ex/Desktop/input_修改版.ipa" "/Users/lemon4ex/Desktop/output_resign.ipa"

上面命令表示使用"iPhone Developer: xxxxxx xxxx (xxxxxxxxx)"证书,重签“修改版.ipa”,重签过程中将动态库“libHook1.dylib”和“libHook2.dylib”注入到二进制(HOOK),同时修改ipa包的CFBundleIdentifier(sku)、并且添加额外的资源文件“hook.bundle”到ipa。

dylib注入

ktool inject -p dylibs [-verbose] [-help] input_binary [output_binary]
    -p 需要注入到二进制文件的dylib文件,文件可以有多个,使用","分隔
	-help 显示帮助信息
	-verbose 输出debug详细信息

栗子

ktool inject -p "/Users/lemon4ex/Desktop/libHook1.dylib,/Users/lemon4ex/Desktop/libHook2.dylib" "/Users/lemon4ex/Desktop/WeChat/WeChat.app/WeChat"

上面命令表示将两个动态库文件libHook1.dylib、libHook2.dylib注入到二进制文件WeChat中

联系

@lemon4ex

[email protected]

http://aigudao.net

ktool's People

Contributors

lemon4ex avatar

Watchers

 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.