破解JIRA3.3 和 Confluence2.7

破解JIRA3.3 和 Confluence2.7
下载地址: http://www.atlassian.com/software
破解比较简单,有关Licence的代码在atlassian-extras-0.7.10.jar中。

1、反编译包中的文件:com.atlassian.license.DefaultLicense.class。改成下面:
// Decompiled by DJ v3.8.8.85 Copyright 2005 Atanas Neshkov  Date: 2005-11-5 17:41:28
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name:   DefaultLicense.java
package com.atlassian.license;
import java.util.*;
// Referenced classes of package com.atlassian.license:
//            License, LicenseType
public class DefaultLicense
    implements License
{
    public DefaultLicense(Date dateCreated, Date datePurchased, String organisation, LicenseType licenseType, int users)
    {
        this.dateCreated = dateCreated;
        this.datePurchased = datePurchased;
        this.organisation = organisation;
        this.licenseType = licenseType;
        this.users = users;
    }
    public Date getDateCreated()
    {
        return dateCreated;
    }
    public Date getDatePurchased()
    {
        return datePurchased;
    }
    public String getOrganisation()
    {
        return organisation;
    }
    public LicenseType getLicenseType()
    {
        return licenseType;
    }
    public String toString()
    {
        return licenseType.getNiceName() + " licensed to " + organisation;
    }
    public boolean isExpired()
    {
        return false;
    }
    public Date getExpiryDate()
    {
        return null;
    }
    public boolean isLicenseLevel(Collection levels)
    {
        for(Iterator iterator = levels.iterator(); iterator.hasNext();)
        {
            String level = (String)iterator.next();
            if(getLicenseType().getDescription().toLowerCase().indexOf(level.toLowerCase()) != -1)
                return true;
        }
        return false;
    }
    public int getUsers()
    {
        if(licenseType.requiresUserLimit())
            return users;
        else
            return -1;
    }
    public static long EVALUATION_PERIOD = 0x9fa52400L;
    protected Date dateCreated;
    protected Date datePurchased;
    protected String organisation;
    protected LicenseType licenseType;
    private int users;
}
 

其实就改了两个方法: 
   public boolean isExpired()
    {
        return false;
    }
    public Date getExpiryDate()
    {
        return null;
    }
 
2、把编译好的class文件复制到atlassian-extras-0.7.10.jar中,覆盖原来文件。(编译是要指明-classpath=tlassian-extras-0.7.10.jar)

3、启动服务器,成功。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值