只需在使用前调用一下Crack方法即可达到Patch的目的,不破坏原dll的完整性,无需反编译原dll。 private static void Crack() { var stModule = new[] { "\u000E\u2008\u200A\u2001", "\u000F\u2008\u200A\u2001", "\u0002\u200A\u200A\u2001", "\u000F", "\u0006", "\u000E", "\u0003", "\u0002" }; var assembly = Assembly.GetAssembly(typeof(Aspose.Words.License)); Type typeLic = null, typeIsTrial = null, typeHelper = null; foreach (var type in assembly.GetTypes()) { if ((typeLic == null) && (type.Name == stModule[0])) { typeLic = type; } else if ((typeIsTrial == null) && (type.Name == stModule[1])) { typeIsTrial = type; } else if ((typeHelper == null) && (type.Name == stModule[2])) { typeHelper = type; } } if (typeLic == null || typeIsTrial == null || typeHelper == null) { throw new Exception(); } var lic = Activator.CreateInstance(typeLic); var findCount = 0; foreach (var field in typeLic.GetFields(BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance)) { if (field.FieldType == typeLic && field.Name == stModule[3]) { field.SetValue(null, lic); ++findCount; } else if (field.FieldType == typeof(DateTime) && field.Name == stModule[4]) { field.SetValue(lic, DateTime.MaxValue); ++findCount; } else if (field.FieldType == typeIsTrial && field.Name == stModule[5]) { field.SetValue(lic, 1); ++findCount; } } foreach (var field in typeHelper.GetFields(BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance)) { if (field.FieldType == typeof(bool) && field.Name == stModule[6]) { field.SetValue(null, false); ++findCount; } if (field.FieldType != typeof (int) || field.Name != stModule[7]) continue; field.SetValue(null, 128); ++findCount; } if (findCount < 5) { throw new NotSupportedException("无效的版本"); } }
2024-03-22 15:53:47 11.14MB Words, .Net
1
aspose-words-20.12.jar,aspose-cells-20.4.jar转pdf,去水印完美版项目代码
2021-08-11 19:05:59 19.58MB aspose-words aspose-cells 转pdf
1
C#ppt,Excel,words,pdf在线预览demo,谁下谁知道
2021-08-08 21:57:31 22.48MB C#ppt Excel words pdf在线预览
1
Aspose.Words-for-Java, 用于Java示例的Aspose.Words,插件和展示 面向Java的Java Aspose.Words 是一个高级的Java字处理 API,可以让你在Java应用程序中直接执行大量文档处理任务。 Java API的Aspose.Words 支持处理 word ( DOC,DOCX,OOXML
2021-05-17 18:47:27 52.74MB 开源
1
Aspose对Word文档操作,pdf文档操作,cexel文档操作操作所用的Jar包,包含aspose-words-16.8.0.jar,aspose-pdf-11.8.0.jar,aspose-cells-8.5.2.jar,aspose-slides-15.8.jar;附带一份license.xml配置文件
2021-03-15 16:37:19 73.58MB java license.xml pdf,words,cells aspose
1
SIFT等局部特征的词袋模型实现。包括K-means聚类,直方图特征的形成,以及KNN分类。
2019-12-21 22:26:49 25.31MB BOW 词袋 K-means KNN
1
Python爬虫常用stopwords,用于整合爬取的数据工具 停用词
2019-12-21 20:34:20 17KB stopwords 停用词
1