吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 7468|回复: 4
收起左侧

[.NET逆向] 【Catchyrime】Aspose.Email 6.1.0.0 破解

[复制链接]
catchyrime 发表于 2016-1-24 22:31
以前做过一篇 Aspose.Cells 8.6.3 的破解http://www.52pojie.cn/thread-453082-1-1.html
现在发现我还要用上 Aspose.Email (发现确实比 OpenPop 要强大很多,而且文档比较完善~)
所以再放个 Aspose.Email 6.1.0.0 的热补丁啦


Aspose 官网:http://www.aspose.com/
Aspose.Email 官网:
http://www.aspose.com/.net/email-component.aspx

注意:以下代码只保证适用于 Aspose.Email 6.1.0.0 其他版本的文件我没看!
只需在使用之前运行一次这段 Hot Patch 即可(不要去调用 SetLicense())

Aspose.Email 的下载链接就不放了,用 Nuget 装就行



[C#] 纯文本查看 复制代码
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
private static void PatchAsposeEmail()
        {
            string name = Assembly.CreateQualifiedName(typeof(Aspose.Email.License).Assembly.FullName, "\u0008\u2002\u2005");
            Type licType = Type.GetType(name, false, false);
            if (licType == null) {
                throw new NotSupportedException("Unsupported version of Aspose.Email");
            }
 
            object lic = Activator.CreateInstance(licType);
            int findCount = 0;
            foreach (FieldInfo field in licType.GetFields(BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance)) {
                if (field.FieldType == typeof (int) && field.Name == "\u0002") {
                    field.SetValue(lic, (int)256);
                    ++findCount;
                }
                else if (field.FieldType.Name == "\u0002\u2000" && field.Name == "\u0008") {
                    field.SetValue(lic, (int)1);
                    ++findCount;
                }
                else if (field.FieldType.Name == "\u0006\u2002\u2005" && field.Name == "\u0002\u2000") {
                    field.SetValue(lic, (int)1);
                    ++findCount;
                }
                else if (field.FieldType.Name == "\u0008\u2002\u2005" && field.Name == "\u0005\u2000") {
                    field.SetValue(null, lic);
                    ++findCount;
                }
            }
 
            if (findCount < 4) {
                throw new NotSupportedException("Unsupported version of Aspose.Email");
            }
        }


免费评分

参与人数 3热心值 +3 收起 理由
kangtr + 1 谢谢@Thanks!
Sound + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩.
ghostfish + 1 大神,你的功力真是了得,佩服佩服。。。

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

 楼主| catchyrime 发表于 2016-1-24 22:32
为何代码格式如此的丑!。。。
shorlyn 发表于 2016-1-25 13:53
Sound 发表于 2016-1-25 18:53
19nuclear91 发表于 2016-10-17 11:35
思路挺不错的
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2025-2-21 21:34

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表