• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

wzqcongcong/macSubstrate: Substrate for macOS

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

wzqcongcong/macSubstrate

开源软件地址(OpenSource Url):

https://github.com/wzqcongcong/macSubstrate

开源编程语言(OpenSource Language):

Objective-C 100.0%

开源软件介绍(OpenSource Introduction):

 macSubstrate - Substrate for macOS

macSubstrate

macSubstrate is a platform tool for interprocess code injection on macOS, with the similar function to Cydia Substrate on iOS. Using macSubstrate, you can inject your plugins (.bundle or .framework) into a mac app (including sandboxed apps) to tweak it in the runtime.

  • All you need is to get or create plugins for your target app.

  • No trouble with modification and codesign for the original target app.

  • No more work after the target app is updated.

  • Super easy to install or uninstall a plugin.

  • Loading plugins automatically whenever the target app is relaunched.

  • Providing a GUI app to make injection much easier.


Prepare

  • Disable SIP

  • Why should disable SIP

    System Integrity Protection is a new security policy that applies to every running process, including privileged code and code that runs out of the sandbox. The policy extends additional protections to components on disk and at run-time, only allowing system binaries to be modified by the system installer and software updates. Code injection and runtime attachments to system binaries are no longer permitted.


Usage

  1. download macSubstrate.app, put into /Applications and launch it.

    StatusBar

  2. grant authorization if needed.

  3. install a plugin by importing or dragging into macSubstrate.

    ToInstall

  4. launch the target app.

    step 3 and step 4 can be switched

    Once a plugin is installed by macSubstrate, it will take effect immediately. But if you want it to work whenever the target app is relaunched or macOS is restarted, you need to keep macSubstrate running and allow it to automatically launch at login.

  5. uninstall a plugin when you do not need it anymore.

    Installed


Plugin

macSubstrate supports plugins of .bundle or .framework, so you just need to create a valid .bundle or .framework file. The most important thing is to add a key macSubstratePlugin into the info.plist, with the dictionary value:

Key Value
TargetAppBundleID the target app's CFBundleIdentifier, this tells macSubstrate which app to inject.
Description brief description of the plugin
AuthorName author name of the plugin
AuthorEmail author email of the plugin

Please check the demo plugins demo.bundle and demo.framework for details.

Xcode Templates

macSubstrate also provides Xcode Templates to help you create plugins conveniently:

  1. ln -fhs ./macSubstratePluginTemplate ~/Library/Developer/Xcode/Templates/macSubstrate\ Plugin

  2. Launch Xcode, and there will be 2 new plugin templates for you.

My Plugins

I also make a plugin for WeChat:

  • Send you a notification when you receive a HongBao message.

  • Send you a notification when you receive a message containing customized keywords.

  • Anti-recall message and send you a notification.

Welcome pull requests of your own plugins to Plugins :)


Security

  1. SIP is a new security policy on macOS, which will help to keep you away from potential security risk. Disable it means you will lose the protection from SIP.
  2. If you install a plugin from a developer, you should be responsible for the security of the plugin. If you do not trust it, please do not install it. macSubstrate will help to verify the code signature of a plugin, and I suggest you to scan it using VirusTotal. Anyway, macSubstrate is just a tool, and it is your choice to decide what plugin to install.

License

macSubstrate is released under the MIT license. See LICENSE for details.


Thanks

macSubstrate is inspired and created with the help of following projects:




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
microsoft/macos-cookbook: A Chef cookbook used to provision macOS发布时间:2022-08-18
下一篇:
mikepj/XRG: System monitor for macOS.发布时间:2022-08-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap