暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
Nexus 2.14 Pro Crack.txt
5716
2页
1次
2021-08-20
10墨值下载
1.寻找突破点
./nexus console
验证 license 的方法路径
org.sonatype.licensing.trial.internal.DefaultTrialLicenseManager.verifyLicense
查找类名所在的文件名
[itadmin@k8s-node4 nexus_pro2.14]$ find . -name *.jar |xargs strings -f -a -|
grep DefaultTrialLicenseManager
./nexus/WEB-INF/lib/license-bundle-1.4.jar:
org/sonatype/licensing/trial/internal/DefaultTrialLicenseManager.class
./nexus/WEB-INF/lib/license-bundle-1.4.jar:
org/sonatype/licensing/trial/internal/DefaultTrialLicenseManager.classPK
2.jd-gui 加载 jar,找到类文件 DefaultTrialLicenseManager.class
得到 java 代码
3.使用 eclipse 修改代码
找到所有依赖的 jar
C:\Users\Administrator\Desktop\Sonarqube\nexus-professional-2.14.8-01-
bundle\nexus-professional-2.14.8-01\nexus\WEB-INF\lib\license-bundle-1.4.jar
C:\Users\Administrator\Desktop\Sonarqube\nexus-professional-2.14.8-01-
bundle\nexus-professional-2.14.8-01\nexus\WEB-INF\lib\javax.inject-1.jar
C:\Users\Administrator\Desktop\Sonarqube\nexus-professional-2.14.8-01-
bundle\nexus-professional-2.14.8-01\nexus\WEB-INF\lib\jsr305-2.0.1.jar
C:\Users\Administrator\Desktop\Sonarqube\nexus-professional-2.14.8-01-
bundle\nexus-professional-2.14.8-01\lib\slf4j-api-1.7.25.jar
C:\Users\Administrator\Desktop\Sonarqube\nexus-professional-2.14.8-01-
bundle\nexus-professional-2.14.8-01\nexus\WEB-INF\lib\nexus-licensing-extension-
2.14.8-01.jar
patch 代码如下:
import com.sonatype.nexus.licensing.feature.NexusProfessionalFeature;
public void verifyLicense(LicenseKey key){
boolean bool = this.wab.isTraceEnabled();
if (bool) {
this.wab.trace("verifyLicense (1) param={}", key);
}
this.wab.info("=====Nexus Repository Manager 2.14.8-01 Licensing by
zoakerc.=====");
key.setContactName("zoakerc");
key.setContactCompany("http://my.oschina.net/zoakerc");
key.setContactEmailAddress("zoakerc@gmail.com");
key.setContactTelephone("11011001110");
key.setContactCountry("China");
key.setEvaluation(false);
key.setExpirationDate(new Date(2038 - 1900, 1, 1));
key.setEffectiveDate(new Date(2015 - 1900, 1, 1));
FeatureSet fs = new FeatureSet();
fs.addFeature(new NexusProfessionalFeature());
key.setFeatureSet(fs);
}
public LicenseKey verifyLicense(TrialLicenseParam paramTrialLicenseParam)
throws LicensingException {
boolean bool = this.wab.isTraceEnabled();
if (bool) {
this.wab.trace("verifyLicense (1) param={}", paramTrialLicenseParam);
}
LicenseKey localLicenseKey = (LicenseKey) this.bzt.get();
if (bool) {
this.wab.trace("verifyLicense (2) key={}", localLicenseKey);
}
verifyLicense(localLicenseKey);
return localLicenseKey;
}
public LicenseKey verifyLicense(TrialLicenseParam paramTrialLicenseParam, File
paramFile)
throws LicensingException {
boolean bool = this.wab.isTraceEnabled();
if (bool) {
this.wab.trace("verifyLicense (1) param={},file={}", paramTrialLicenseParam,
paramFile);
}
LicenseKey localLicenseKey = (LicenseKey) this.bzt.get();
if (bool) {
this.wab.trace("verifyLicense (2) key={}", localLicenseKey);
}
verifyLicense(localLicenseKey);
return localLicenseKey;
}
of 2
10墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜