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 

posted @   bodong  阅读(170)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
点击右上角即可分享
微信分享提示