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


安裝 Z.EntityFramework.Extensions.EFCore

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

可以打開VS開發工具用nuget安裝

使用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 也就是格式化之后的dll

    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 

    然后點擊 Class278.smethod_10 

    然后點擊  Class278.smethod_11 

    然后點擊 Class278.smethod_7 

    最終找到時間判斷

  4. 修改方法

  5. 保存

  6. 重命名,然后項目直接添加引用即可


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM