emby破解

搭建EMBY激活服务器

//https://mb3admin.com/admin/service/registration/validateDevice
//https://crackemby.mb6.top/admin/service/registration/validateDevice.php
{"cacheExpirationDays": 365,"message": "Device Valid","resultCode": "GOOD"}

//https://mb3admin.com/admin/service/registration/getStatus
//https://crackemby.mb6.top/admin/service/registration/getStatus.php
{"deviceStatus":"0","planType":"Lifetime","subscriptions":{}}

//https://mb3admin.com/admin/service/registration/validate
//https://crackemby.mb6.top/4670/registration/validate.php
{"featId":"MBSupporter","registered":true,"expDate":"2030-01-01","key":114514} 

服务器要设置允许跨域请求

修改文件

涉及到的文件列表

Emby.Web.dll
MediaBrowser.Model.dll
Emby.Server.Implementations.dll
dashboard-ui\embypremiere\embypremiere.js
dashboard-ui\modules\emby-apiclient\connectionmanager.js

修改Emby.Web.dll文件

  • 修改Emby.Web.dll的官方认证链接为自建服务器地址,pojie网页端。

  • 修改位置:/资源/Emby.Web.dashboard_ui.modules.emby_apiclient.connectionmanager.js

  • 导出该文件

  • 搜索timeSinceLastValidation=ajax(

  • ajax()里的地址改成自建服务器的地址

  • 导入修改后的文件

  • 原代码

timeSinceLastValidation=ajax({url:"https://mb3admin.com/admin/service/registration/validateDevice?"+paramsToString(params),type:"POST",dataType:"json"})
  • 修改后
timeSinceLastValidation=ajax({url:"https://crackemby.mb6.top/admin/service/registration/validateDevice.php?"+paramsToString(params),type:"POST",dataType:"json"})

image

修改MediaBrowser.Model.dll

  • 修改MediaBrowser.Model.dll来显示激活页面(属于强迫症了,非要能显示这个页面。其实不做这步也能使用)

  • 修改位置:/MediaBrowser.Model.Entities/PluginSecurityInfo/IsMBSupporter/get_IsMBSupporter()

  • 原代码

public bool get_IsMBSupporter()
{
	return this.<IsMBSupporter>k__BackingField;
}
  • 修改后
public bool get_IsMBSupporter()
{
	return true;
}

image

修改Emby.Server.Implementations.dll

  • 有两处修改位置

    1. 位置:/Emby.Server.Implementations.Security/PluginSecurityManager/MBValidateUrl
      把这个字段的值改成相应的自建服务器地址

      • 原代码
      private const string MBValidateUrl = "https://mb3admin.com/admin/service/registration/validate";
      
      • 修改后
      private const string MBValidateUrl = "https://crackemby.mb6.top/4670/registration/validate.php";
      

      image

    2. 位置:/Emby.Server.Implementations.Security/PluginSecurityManager
      先把模式切换成IL模式
      搜索IL_0127: ldstr
      ldstr后面的地址改成相应的自建服务器地址

      • 原代码
      IL_0127: ldstr     "https://mb3admin.com/admin/service/registration/validate"
      
      • 修改后
      IL_0127: ldstr     "https://crackemby.mb6.top/4670/registration/validate.php"
      

      image

修改embypremiere.js

  • 文件位置:dashboard-ui\embypremiere\embypremiere.js

  • 更改embypremiere.js内的认证地址为自建服务器地址,pojie网页播放器。

  • 原代码

return fetch("https://mb3admin.com/admin/service/registration/getStatus",{method:"POST",body:key,headers:{"Content-Type":"application/x-www-form-urlencoded"}})
  • 修改后
return fetch("https://crackemby.mb6.top/admin/service/registration/getStatus.php",{method:"POST",body:key,headers:{"Content-Type":"application/x-www-form-urlencoded"}})

image

修改connectionmanager.js

  • 文件位置:dashboard-ui\modules\emby-apiclient\connectionmanager.js

  • 原代码

timeSinceLastValidation=ajax({url:"https://mb3admin.com/admin/service/registration/validateDevice?"+paramsToString(params),type:"POST",dataType:"json"})
  • 修改后
timeSinceLastValidation=ajax({url:"https://crackemby.mb6.top/admin/service/registration/validateDevice.php?"+paramsToString(params),type:"POST",dataType:"json"})

image

评论