将Java进行到底
将Java进行到底
posts - 15,  comments - 66,  trackbacks - 0
昨天发现缺陷管理工具JIRA,目前版本是3.3.3,安装使用了一下。感觉很好。
下载地址:http://www.atlassian.com/software/jira/
我下载的是JIRA Enterprise: Evaluation版本,同时申请一个30的Licence。
破解比较简单,有关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中,覆盖原来文件。
3、启动服务器,成功。
我把我破解后的class附上:http://www.blogjava.net/Files/freddychu/DefaultLicense.zip
如果不能下,请留下email.

posted on 2005-11-05 18:18 风萧萧 阅读(7502) 评论(51)  编辑  收藏 所属分类: 杂谈

FeedBack:
# re: 破解JIRA3.3
2005-11-05 19:58 | emu
不如讲讲你是怎么定位到com.atlassian.license.DefaultLicense.class这个类上面的?  回复  更多评论
  
# re: 破解JIRA3.3
2005-11-05 23:02 | 风萧萧
google了一下,有人说是有个license相关的类。我就把每个包都解开,搜索license。呵呵,没有太好的办法。  回复  更多评论
  
# re: 破解JIRA3.3
2005-11-15 15:20 | flyisland
奇怪,我用的是3.3.2版本,把你的DefaultLicense.class加上后,显示在一年后失效。不过一年也够了,一年后再考虑吧 :)

另外我记得eclipse上面有一个plug-in,可以在多个jar中查找class,只是现在具体名字记不起来,你们可以查查看。  回复  更多评论
  
# re: 破解JIRA3.3
2006-01-22 01:34 | andywoo1996
用你的方法之后,重新启动,还是配置界面,必须输入一个license?于是就申请了一个evaluation license,可以使用了。但是显示“EVALUATION LICENSE - Are you enjoying JIRA? Please consider purchasing it today. ”,是不是还没有破解?

Waiting for you response, thanks a lot.
andywoo1996@gmail.com  回复  更多评论
  
# re: 破解JIRA3.3
2006-01-23 18:47 | jira
我们用的是正版.很好用.

在jira中国总代买的;
http://www.czsm.com.cn  回复  更多评论
  
# re: 破解JIRA3.3
2006-01-24 09:52 | 风萧萧
to andywoo1996@gmail.com:
输入evaluation license可以使用之后,用本文的破解方法破解就可以了。  回复  更多评论
  
# re: 破解JIRA3.3
2006-02-06 14:35 | lumber
用您所说的方法破解最新confluence 2.1.2失败
不知道这个方法是不是要confluence2.0版本才行?  回复  更多评论
  
# re: 破解JIRA3.3
2006-02-09 11:12 | 风萧萧
我破解的是Confluence 1.4.4版本  回复  更多评论
  
# re: 破解JIRA3.3
2006-02-14 14:29 | lumber
用这种方法破解最新confluence 2.1.2
在页面中提示要求注册,把系统时间改到license过期的时间之后,可以正常运行(未破解版本不可).
暂时认为是破解成功吧^_^
  回复  更多评论
  
# re: 破解JIRA3.3
2006-02-23 16:48 | asion
我使用的是3.5.1版,如何破解呢?
或者说,我修改了哪个class文件,如何将其再次编译为class文件?
java门外汉,着实不知道如何处理,javac或者用DJ java decompiler编译都出错。
希望高手指点。hongewuyan@hotmail.com,不甚感激。  回复  更多评论
  
# re: 破解JIRA3.3
2006-03-10 11:52 | 风萧萧
哥们,试试把我的破解文件下载,然后覆盖你原来的包。如果不行,只能按照步骤重头破解。至于你java编译的问题,查查书就能搞定,很简单的。: - )
@asion
  回复  更多评论
  
# re: 破解JIRA3.3
2006-03-17 11:58 | adventurer
我尝试着破解了jira-enterprise-3.5.1这个版本,因为我的机器一跑hsql就死,没办法做测试,所以需要atlassian-extras-0.7.17.jar这个文件的,请mail给我,我提供给你们.  回复  更多评论
  
# re: 破解JIRA3.3
2006-03-17 11:59 | adventurer
留下你们的mail即可.  回复  更多评论
  
# re: 破解JIRA3.3
2006-03-17 12:22 | adventurer
这是我的mail:adventurer_2006@libero.it  回复  更多评论
  
# re: 破解JIRA3.3
2006-03-29 10:13 | Ashelly
confluence的这些文件好象无法反编译,你有空帮我看看怎么破解吗?我是下载的最新版2.15a。我的邮箱ashelly_wb@hotmail.com  回复  更多评论
  
# re: 破解JIRA3.3
2006-04-27 10:36 | powerlinm
你好,现在3.6版本出来了,你可以破解吗?  回复  更多评论
  
# re: 破解JIRA3.3
2006-05-12 18:43 | 让变化成为计划的一部分
3.6版本的atlassian-extras-0.7.19.jar有破解的class吗?  回复  更多评论
  
# re: 破解JIRA3.3
2006-06-28 09:42 | dsg
你好,我是门外汉。
怎么破解3.6.2的版本?
guangshidong@sohu.com
  回复  更多评论
  
# re: 破解JIRA3.3
2006-07-13 09:55 | 1
RRmrrmTLMacJjnILaQIQwRIunNmEnFiorFnrslwRacIqAjl
mj2KOOqEA31GrRVfeg3Rrx862L0LTOgSjJkjwglIozeMw11
NqnvwOonMQqQOQpqORvvnrOmNRnoppprQVXSswnOOostUUn
nrmoqurumnqmUUnnrmoqurumnqmUUdwgpos  回复  更多评论
  
# re: 破解JIRA3.3
2006-08-03 14:28 | 123123213
confluence的这些文件好象无法反编译,你有空帮我看看怎么破解吗?我是下载的最新版2.15a。我的邮箱


chinauibe@163.com.谢谢了  回复  更多评论
  
# re: 破解JIRA3.3
2006-11-23 13:28 | will[匿名]
除了JIRA和confluence ,atlassian又出了个bamboo
www.atlassion.com/software/bamboo
各位有license吗?  回复  更多评论
  
# re: 破解JIRA3.3
2006-12-11 18:29 | Ivan Chen(西滨)
http://www.atlassian.com/software/bamboo/
而不是www.atlassion.com/software/bamboo

www.atlassion.com/software/bamboo好阴险。  回复  更多评论
  
# re: 破解JIRA3.3
2007-03-16 17:07 | pub
这些证实都不是有效的破解 ,在3.7版本上都不可用 , JIRA 的 Licenes 部分都没经过混淆 ,所以很容易就反编译了 , 破解更容易 , 可以换掉它验证License的 DSA 公钥文件 , 然后用自己的私钥文件产生一个License 文件,这是最麻烦的
最简单的方式是 修改 com.atlassian.license.decoder.LicenseDecoder 文件内容如下

package com.atlassian.license.decoder;

import com.atlassian.core.util.StringUtils;
import com.atlassian.license.*;
import java.io.InputStream;
import java.security.*;
import java.security.spec.X509EncodedKeySpec;
import java.util.Date;
import java.util.StringTokenizer;
import org.apache.log4j.Category;

public class LicenseDecoder
{
private static License license ;
public LicenseDecoder()
{
}

public static License getLicense(LicensePair pair, String applicationName)
{
license = new DefaultLicense(new Date("2032/03/15"),new Date("2099/12/31"),"publish" ,new DefaultLicenseType(267, "JIRA Enterprise: Commercial Server", false, false), 100000,"") ;
return license ;
}

public static boolean isValid(LicensePair pair, String applicationName)
{
return getLicense(pair, applicationName) != null;
}

private static PublicKey getPublicKey(String applicationName)
throws LicenseException
{
return null ;
}

private static License loadLicense(LicensePair pair, PublicKey publicKey, String applicationName)
{

return getLicense(null , null);
}

private static String getLicenseIdFromLicenseString(String originalLicenseString)
{
if(originalLicenseString != null && originalLicenseString.length() > 70)
return StringUtils.replaceAll(StringUtils.replaceAll(StringUtils.replaceAll(originalLicenseString, "\n", ""), "\r", ""), "\t", "").substring(59, 69).toUpperCase();
else
return "";
}

private static String getDecodedMessage(byte message[])
{
return new String(message);
}

public static boolean isValid(LicensePair pair, PublicKey publicKey, String applicationName)
{
return loadLicense(pair, publicKey, applicationName) != null;
}

public static String getPublicKeyFilename(String applicationName)
{
return LicenseManager.getInstance().getLicenseTypeStore(applicationName).getPublicKeyFileName();
}


}

这样就可以用到 2099年了 , 如果你愿意 ,用到 9999年都可以 。  回复  更多评论
  
# re: 破解JIRA3.3
2007-07-26 20:48 | irican
楼上pub的方法确实可用,非常感谢!我在3.10版中实验成功!
有一点需要补充的是,替换了LicenseDecoder 后,仍然需要申请一个试用版的license,走验证流程,完成之后就可以无限期使用了。  回复  更多评论
  
# re: 破解JIRA3.3[未登录]
2007-10-07 17:13 | nick
请问怎么从更改之后的类来生成.class文件?  回复  更多评论
  
# re: 破解JIRA3.3
2007-12-18 17:11 | 电气羚羊
恩,按照pub的方法,已经测试成功,真的非常棒,pub  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  
# re: 破解JIRA3.3
2008-04-14 15:57 | yinll
我想用jira这个bug缺陷管理工具,我邮箱yl123zzy@yahoo.cn  回复  更多评论
  

<2005年11月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

常用链接

留言簿(8)

随笔分类

随笔档案

文章分类

文章档案

相册

收藏夹

myfriends

opensource

搜索

  •  

最新评论

阅读排行榜

评论排行榜