# 使用 Shadowrocket 破解

如果你有著名的翻墙软件 [Shadowrocket](https://apps.apple.com/app/shadowrocket/id932747118) ( 小火箭 ) 且版本号大于 v2.1.62 ，那就可以用来破解 Emby 的 iOS 官方客户端。

下面我使用**全新安装** ( 也就是**默认配置** ) 的 Shadowrocket 来教大家如何破解 Emby。

## 配置 Shadowrocket <a href="#pei-zhi-shadowrocket" id="pei-zhi-shadowrocket"></a>

打开 Shadowrocket ，选择下面的 **配置** ，再点击中间的本地配置文件 **default.conf**

![](https://3933722274-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MchGUsJ3trN-e3aflxV%2F-MchUTLXnMURFA8almdl%2F-MchWTmFK7ptv-4e-uvV%2Fishot2020-12-07-01.29.18.png?alt=media\&token=f60244e3-0aaf-4f9c-897c-60bc2a079364)

在弹出菜单中选择 **编辑纯文本**

![](https://3933722274-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MchGUsJ3trN-e3aflxV%2F-MchUTLXnMURFA8almdl%2F-MchWbxsBDaAI_I3PLyd%2Fimg_3398.png?alt=media\&token=939eea29-a815-43bd-bfbc-92ae1a7653b4)

把配置文件拖到最底部

![](https://3933722274-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MchGUsJ3trN-e3aflxV%2F-MchUTLXnMURFA8almdl%2F-MchWk0mL44rmzdBHsHf%2Fishot2020-12-07-01.32.50.png?alt=media\&token=80c3aa52-7586-4b36-8a6f-b7a305c7729b)

```
[Script]
EmbyPremiere = type=http-response,script-path=https://raw.githubusercontent.com/rartv/SurgeScript/main/EmbyPremiere/EmbyPremiere.js,pattern=^https?:\/\/mb3admin.com\/admin\/service\/registration\/validateDevice,max-size=131072,requires-body=true,timeout=10,enable=true

[MITM]
hostname = mb3admin.com
```

复制上面的配置填写到红框空白处

由于破解脚本是放到 github 的，有的人网络不行，github 被污染，所以脚本可能没获取到，这会导致破解失败！

**这时请使用下面的备用脚本**

```
[Script]
EmbyPremiere = type=http-response,script-path=https://gitlab.com/iptv-org/embypublic/-/raw/master/Script/EmbyPremiere.js,pattern=^https?:\/\/mb3admin.com\/admin\/service\/registration\/validateDevice,max-size=131072,requires-body=true,timeout=10,enable=true

[MITM]
hostname = mb3admin.com
```

然后点击右上角 **保存**

![](https://3933722274-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MchGUsJ3trN-e3aflxV%2F-MchUTLXnMURFA8almdl%2F-MchXKXM4l1N89t8ty6A%2Fishot2020-12-07-01.39.33.png?alt=media\&token=4d9bc701-af97-4acf-9d15-04ac14fbb897)

再点击中间的本地配置文件 **default.conf，**&#x9009;择 **编辑配置**

![](https://3933722274-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MchGUsJ3trN-e3aflxV%2F-MchUTLXnMURFA8almdl%2F-MchXWNyiDMo_vNL1TN3%2Fishot2020-12-07-01.42.21.png?alt=media\&token=c21ae873-1f69-4d4e-b436-bfa4ab27c72b)

点击 HTTPS 解密

![](https://3933722274-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MchGUsJ3trN-e3aflxV%2F-MchUTLXnMURFA8almdl%2F-MchXepJVQSOE560EwYX%2Fishot2020-12-07-01.44.26.png?alt=media\&token=9b516ae1-6b83-4d1e-8dcc-30c5b613f18b)

&#x20;打开 **HTTPS 解密** 的开关

![](https://embywiki.911997.xyz/.gitbook/assets/ishot2020-12-07-01.48.13.png)

点击 **生成新的 CA 证书**

![](https://embywiki.911997.xyz/.gitbook/assets/ishot2020-12-07-01.50.13.png)

证书生成后还需要 **安装证书**

![](https://embywiki.911997.xyz/.gitbook/assets/ishot2020-12-07-01.51.59.png)

证书下载到设置里后点击 **已下载描述文件**

![](https://embywiki.911997.xyz/.gitbook/assets/ishot2020-12-07-01.55.25.png)

点击右上角 **安装**

![](https://embywiki.911997.xyz/.gitbook/assets/img_c6f10bb114f9-1.jpeg)

在手机 **设置 -> 通用 -> 关于本机 -> 证书信任设置**，找到刚才安装的 Shadowrocket 证书，将其开关打开

![](https://embywiki.911997.xyz/.gitbook/assets/ishot2020-12-07-02.00.45.png)

回到 Shadowrocket ，上面显示 **系统已信任** ，说明我们正确安装并让系统信任我们的了证书，点右上角&#x7684;**√** 保存

![](https://embywiki.911997.xyz/.gitbook/assets/ishot2020-12-07-02.02.55.png)

回到 HTTPS 解密页面继续点右上角的 **√** 保存

![](https://embywiki.911997.xyz/.gitbook/assets/ishot2020-12-07-02.05.19.png)

回到 Shadowrocket 首页，点击上面的开关启动

![](https://embywiki.911997.xyz/.gitbook/assets/ishot2020-12-07-02.08.06.png)

首次启动 Shadowrocket 会像系统添加 VPN 配置，点击 **允许**

![](https://embywiki.911997.xyz/.gitbook/assets/ishot2020-12-07-02.09.08.png)

## **破解 Emby 客户端** <a href="#po-jie-emby-ke-hu-duan" id="po-jie-emby-ke-hu-duan"></a>

打开 Emby 客户端，随便找一部影片来播放，当收到 Shadowrocket 的通知，提示 **Emby Premiere 已激活**时，说明我们已经破解成功了。由于有效期有 **999** 天，所以以后即使在没有开 Shadowrocket 的情况下，Emby 依然可以直接播放。如你删掉 Emby 客户端重新安装或者切换到其他 Emby 服务器后，才需要再次开 Shadowrocket 来破解。

![](https://embywiki.911997.xyz/.gitbook/assets/ishot2020-12-07-02.17.35.png)

是不是很爽？

![](https://embywiki.911997.xyz/.gitbook/assets/img_3419.png)

## iPad <a href="#ipad" id="ipad"></a>

以上方法虽用 iPhone 演示，但同样支持 iPad

![](https://embywiki.911997.xyz/.gitbook/assets/img_0232.png)
