1 Star 0 Fork 98

DC大锅/aspose-words-crack

forked from liuzy88/aspose-words-crack 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
AsposeCells_20_12.java 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
liuzy 提交于 2023-02-09 11:39 . cells 20.12
import javassist.ClassPool;
import javassist.CtClass;
public class AsposeCells_20_12 {
public static void main(String[] args) throws Exception {
ClassPool pool = ClassPool.getDefault();
pool.insertClassPath("aspose-cells-20.12.jar");
CtClass clazz1 = pool.get("com.aspose.cells.Workbook");
clazz1.getClassInitializer().setBody("{" +
" com.aspose.cells.License license = new com.aspose.cells.License();" +
" license.setLicense(new java.io.StringReader(\"<License> <Data> <Products> <Product>Aspose.Cells for Java</Product> </Products> <EditionType>Enterprise</EditionType> <SubscriptionExpiry>29991231</SubscriptionExpiry> <LicenseExpiry>29991231</LicenseExpiry> <SerialNumber>evilrule</SerialNumber> </Data> <Signature>evilrule</Signature> </License>\"));" +
"}");
clazz1.writeFile();
CtClass clazz = pool.getCtClass("com.aspose.cells.License");
clazz.getDeclaredMethod("isLicenseSet").setBody("{return true;}");
clazz.getDeclaredMethod("a", new CtClass[]{pool.get("java.lang.String"), pool.get("java.lang.String"), pool.get("boolean"), pool.get("boolean")}).setBody("{return true;}");
clazz.getDeclaredMethod("l", new CtClass[]{pool.get("java.lang.String")}).setBody("{return new java.util.Date(Long.MAX_VALUE);}");
clazz.getDeclaredMethod("k", new CtClass[]{pool.get("java.lang.String")}).setBody("{return true;}");
clazz.writeFile();
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/DC_kkkk/aspose-words-crack.git
git@gitee.com:DC_kkkk/aspose-words-crack.git
DC_kkkk
aspose-words-crack
aspose-words-crack
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385