破解EFCore擴展Dll --- Z.EntityFramework.Extensions.EFCore

安裝 Z.EntityFramework.Extensions.EFCore

Install-Package Z.EntityFramework.Extensions.EFCore -Version 2.6.11

能夠打開VS開發工具用nuget安裝git

使用de4dot 先格式化代碼

  1. 找到 Z.EntityFramework.Extensions.EFCore 的Nuget包地址(右鍵屬性能夠查看),個人在 C:\Users\Administrator\.nuget\packages\z.entityframework.extensions.efcore\2.6.11\lib\netstandard2.0 
  2. 下載de4dot:https://github.com/0xd4d/de4dot  (文件脫殼)
    windows下載地址:https://ci.appveyor.com/project/0xd4d/de4dot/branch/master/artifacts
    下載:de4dot-net35
  3. 解壓後將 Z.EntityFramework.Extensions.EFCore.dll 拷貝到 de4dot-net35 解壓目錄,而後執行cmd命令
    de4dot.exe Z.EntityFramework.Extensions.EFCore.dll

    它會在當前dll位置在生成一個 Z.EntityFramework.Extensions.EFCore-cleaned.dll 也就是格式化以後的dllgithub

    C:\Users\Administrator\Desktop\de4dot-net35>de4dot.exe Z.EntityFramework.Extensions.EFCore.dll
    
    de4dot v3.1.41592.3405 Copyright (C) 2011-2015 de4dot@gmail.com
    Latest version and source code: https://github.com/0xd4d/de4dot
    
    Detected Unknown Obfuscator (C:\Users\Administrator\Desktop\de4dot-net35\Z.EntityFramework.Extensions.EFCore.dll)
    Cleaning C:\Users\Administrator\Desktop\de4dot-net35\Z.EntityFramework.Extensions.EFCore.dll
    Renaming all obfuscated symbols
    Saving C:\Users\Administrator\Desktop\de4dot-net35\Z.EntityFramework.Extensions.EFCore-cleaned.dll
    View Code

     

使用dnSpy修改程序集

  1. 下載dnSpy:https://github.com/0xd4d/dnSpy/releases 
    下載:dnSpy-netcore-win64.zip 
  2. 運行 dnSpy.exe ,並打開 Z.EntityFramework.Extensions.EFCore-cleaned.dll 
  3. 按 Ctrl+Shift+K 查找 ValidateLicense 

    選擇第一個 ValidateLicense 雙擊,而後點擊內部的  LicenseManager.ValidateLicense ,而後繼續點擊內部的  LicenseManager.ValidateLicense 
    windows

    而後點擊 Class278.smethod_10 

    app

    而後點擊  Class278.smethod_11 ide

    而後點擊 Class278.smethod_7 工具

    最終找到時間判斷
    開發工具

  4. 修改方法
    flex

  5. 保存
    spa

  6. 重命名,而後項目直接添加引用便可
相關文章
相關標籤/搜索