ANTS Performance Profiler 11&ANTS Memory Profiler 11漏洞分析
虽然进程和dll使用了SmartAssembly加密了,但是不影响调试,使用dnspy可以直接调试。通过最开始的登录对话框顺藤摸瓜可以轻松找到RedGate.Client.ActivationPlugin.Shared.LicenceInformation等关键信息。通过简单调试可以发现只需要简单的修改RedGate.Client.ActivationPlugin.Shared.LicenceInformation的几个函数就可以达到目的。
1. 修改LicenceState属性(get_LicenseState方法)为:
public LicenceState LicenceState { get { return LicenceState.Licensed; } }
2. 找到构造函数,修改成:
public LicenceInformation(LicenceState licenceState, string description, IEnumerable<LicensedProduct> licencedProducts, IEnumerable<IUsageConstraint> usageConstraints, DateTime? expiry) { this.LicensedProducts = new List<LicensedProduct>(licencedProducts ?? Enumerable.Empty<LicensedProduct>()); this.UsageConstraints = usageConstraints; this.LicenceExpiry = expiry; this.Description = description; if (this.LicensedProducts.Contains(null)) { throw new ArgumentException("Contained null", "licencedProducts"); } }
3. 找到方法FeaturesForProduct:
public IEnumerable<ProductFeature> FeaturesForProduct(ProductInformation product) { return new ProductFeature[] { new ProductFeature("professional") }; }
保存RedGate.Client.ActivationPluginShim.dll即可
----
原版试用安装包
链接: https://pan.baidu.com/s/1Wji6PcuI6TehBgYKdiwAoA?pwd=m9w4 提取码: m9w4
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)