微信自动抢红包可以如此简单

Posted by Genie on January 16, 2020

安装Theos

必备条件

  • Homebrew
  • Xcode(必须) 然后安装ldid和xz brew install ldid xz

    设置环境变量THEOS,执行如下命令:

    echo "export THEOS=~/theos" >> ~/.profile 要想让配置生效,必须重启终端或者执行 source ~/.profile。然后通过echo $THEOS可以查看是否生效。

    检出Theos项目:

    $ git clone --recursive https://github.com/theos/theos.git $THEOS

    获取iOS SDK:

    目前Xcode提供的SDK中不再包含私有库,不过我们可以从SDKs repo获取到。

    1
    2
    3
    4
    5
    
    curl -LO https://github.com/theos/sdks/archive/master.zip
    TMP=$(mktemp -d)
    unzip master.zip -d $TMP
    mv $TMP/sdks-master/*.sdk $THEOS/sdks
    rm -r master.zip $TMP
    

    新版Theos的已内置CydiaSubstrate.framework(位于$THEOS/vendor/lib),所以不需要像网上其它教程中说的需要运行bootstrap.sh脚本或者是从手机上拷贝等方式。

下载资源

  • dylib

    make编译

    成功的状态

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    
    > Making all for tweak WeChatRedEnvelop…
    ==> Compiling src/WBBaseViewController.m (armv7)…
    ==> Compiling src/WBReceiveRedEnvelopOperation.m (armv7)…
    ==> Compiling src/WBRedEnvelopConfig.m (armv7)…
    ==> Compiling src/WBRedEnvelopParamQueue.m (armv7)…
    ==> Compiling src/WBRedEnvelopTaskManager.m (armv7)…
    ==> Compiling src/WBSettingViewController.m (armv7)…
    ==> Compiling src/WeChatRedEnvelopParam.m (armv7)…
    ==> Preprocessing src/Tweak.xm…
    ==> Compiling src/Tweak.xm (armv7)…
    ==> Linking tweak WeChatRedEnvelop (armv7)…
    ld: warning: building for iOS, but linking in .tbd file (/opt/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd) built for iOS Simulator
    ==> Generating debug symbols for WeChatRedEnvelop…
    rm /Users/cheng/Downloads/WeChatRedEnvelop-master/.theos/obj/debug/armv7/src/Tweak.xm.mm
    ==> Compiling src/WBBaseViewController.m (arm64)…
    ==> Compiling src/WBReceiveRedEnvelopOperation.m (arm64)…
    ==> Compiling src/WBRedEnvelopConfig.m (arm64)…
    ==> Compiling src/WBRedEnvelopParamQueue.m (arm64)…
    ==> Compiling src/WBRedEnvelopTaskManager.m (arm64)…
    ==> Compiling src/WBSettingViewController.m (arm64)…
    ==> Compiling src/WeChatRedEnvelopParam.m (arm64)…
    ==> Preprocessing src/Tweak.xm…
    ==> Compiling src/Tweak.xm (arm64)…
    ==> Linking tweak WeChatRedEnvelop (arm64)…
    ld: warning: building for iOS, but linking in .tbd file (/opt/theos/vendor/lib/CydiaSubstrate.framework/CydiaSubstrate.tbd) built for iOS Simulator
    ==> Generating debug symbols for WeChatRedEnvelop…
    rm /Users/cheng/Downloads/WeChatRedEnvelop-master/.theos/obj/debug/arm64/src/Tweak.xm.mm
    ==> Merging tweak WeChatRedEnvelop…
    ==> Signing WeChatRedEnvelop…
    

    2020-01-16_17-43-09

  • 如果失败执行 export THEOS=/opt/theos

  • ios App Signer 重签名
  • ipaCracker 注入dylib到xxx.app
  • 爱思助手查询udid 和安装ipa

weixin ipa 链接:https://pan.baidu.com/s/1upSChuJL8fIbdSvZQoHVrw 密码:7v3n

有问题可以联系Email