1、准备工具:
(1)反编译工具:jd-gui
(2)开发工具:Eclipse 及其他IDE皆可
(3)jira4.2.4的安装包
2、开始破解
(1)先安装jira到例如D盘(不要完成安装过程,在让输入CD-KEY即License的时候停止服务),找到atlassian-extras-2.2.2.jar文件,在D:\jira\atlassian-jira\WEB-INF\lib目录下:
将 atlassian-extras-2.2.2.jar中的 com\atlassian\extras\decoder\v2\Version2LicenseDecoder.class 反编译.
(2)在IDE中新建一JAVA工程.将 atlassian-extras-2.2.2.jar 放入工程的构建路径中(因为Version2LicenseDecoder.java 与其中的一些类有依赖关系),这里还需要一个apache的codec的包,commons-codec-1.5,因为Version2LicenseDecoder有对这个包内的引用。
(3)新建一JAVA文件.把Version2LicenseDecoder.class 反编译的出来的Version2LicenseDecoder.java的内容都copy进来,接下来是关键,把 方法 public Properties loadLicenseConfiguration(Reader text) 的内容改为如下内容:
try { File file_temp = new File("key_temp.txt"); if(!file_temp.exists()){ file_temp.createNewFile(); } System.out.println(file_temp.getAbsoluteFile()); FileOutputStream fos=new FileOutputStream(file_temp); OutputStreamWriter osw=new OutputStreamWriter(fos); BufferedWriter bw=new BufferedWriter(osw); BufferedReader bsr = new BufferedReader(text); String temp = bsr.readLine(); while(temp != null){ bw.write(temp+"\n"); temp = bsr.readLine(); } bw.close(); StringBuffer sb = new StringBuffer(); File file = new File("key.txt"); if(!file.exists()){ file.createNewFile(); } FileInputStream fis=new FileInputStream(file); InputStreamReader isr=new InputStreamReader(fis); BufferedReader br=new BufferedReader(isr); String str = br.readLine(); while(str!=null){ System.out.println(str); sb.append(str+"\n"); str = br.readLine(); } br.close(); Properties props = new Properties(); new DefaultPropertiesPersister().load(props,new StringReader(sb.toString())); return props; } catch (IOException e) { throw new LicenseException("Could NOT load properties from reader", e); }
(4)改好以后找到新生成的Version2LicenseDecoder.class文件(IDE会自动编译,在你建的工程下就可以找到)覆盖原来包里面的Version2LicenseDecoder.class文件(用winrar打开后,找到改目录拖入即可覆盖)。
(5)到 JIRA 的官网上申请一个试用的CD-KEY,试用的CD-KEY有效时间是一个月.
(6)启动服务,按照提示一步步走下去..接着输入试用的 CD-KEY.这时候在 bin 文件夹下应该有两个文件 key_temp.txt 和 key.txt ,而注册的时候会出现非法授权码的错误,不用管,我们执行 shutdown.bat 文件.关闭服务.
打开 key_temp.txt ,这个就是 CD-KEY 的明文,
其中 LicenseExpiryDate=2011-04-09 这个是有效期,
把 key_temp.txt 和内容copy到 key.txt 中..把 LicenseExpiryDate=2046-04-09 ,再重启服务.. ,再次将得到的cd-key,输入,下一步,下一步的就可以了
PS:很多人可能会没有生成key_**这个文件,此时注意你tomcat启动是否成功。
(1)反编译工具:jd-gui
(2)开发工具:Eclipse 及其他IDE皆可
(3)jira4.2.4的安装包
2、开始破解
(1)先安装jira到例如D盘(不要完成安装过程,在让输入CD-KEY即License的时候停止服务),找到atlassian-extras-2.2.2.jar文件,在D:\jira\atlassian-jira\WEB-INF\lib目录下:
将 atlassian-extras-2.2.2.jar中的 com\atlassian\extras\decoder\v2\Version2LicenseDecoder.class 反编译.
(2)在IDE中新建一JAVA工程.将 atlassian-extras-2.2.2.jar 放入工程的构建路径中(因为Version2LicenseDecoder.java 与其中的一些类有依赖关系),这里还需要一个apache的codec的包,commons-codec-1.5,因为Version2LicenseDecoder有对这个包内的引用。
(3)新建一JAVA文件.把Version2LicenseDecoder.class 反编译的出来的Version2LicenseDecoder.java的内容都copy进来,接下来是关键,把 方法 public Properties loadLicenseConfiguration(Reader text) 的内容改为如下内容:
try { File file_temp = new File("key_temp.txt"); if(!file_temp.exists()){ file_temp.createNewFile(); } System.out.println(file_temp.getAbsoluteFile()); FileOutputStream fos=new FileOutputStream(file_temp); OutputStreamWriter osw=new OutputStreamWriter(fos); BufferedWriter bw=new BufferedWriter(osw); BufferedReader bsr = new BufferedReader(text); String temp = bsr.readLine(); while(temp != null){ bw.write(temp+"\n"); temp = bsr.readLine(); } bw.close(); StringBuffer sb = new StringBuffer(); File file = new File("key.txt"); if(!file.exists()){ file.createNewFile(); } FileInputStream fis=new FileInputStream(file); InputStreamReader isr=new InputStreamReader(fis); BufferedReader br=new BufferedReader(isr); String str = br.readLine(); while(str!=null){ System.out.println(str); sb.append(str+"\n"); str = br.readLine(); } br.close(); Properties props = new Properties(); new DefaultPropertiesPersister().load(props,new StringReader(sb.toString())); return props; } catch (IOException e) { throw new LicenseException("Could NOT load properties from reader", e); }
(4)改好以后找到新生成的Version2LicenseDecoder.class文件(IDE会自动编译,在你建的工程下就可以找到)覆盖原来包里面的Version2LicenseDecoder.class文件(用winrar打开后,找到改目录拖入即可覆盖)。
(5)到 JIRA 的官网上申请一个试用的CD-KEY,试用的CD-KEY有效时间是一个月.
(6)启动服务,按照提示一步步走下去..接着输入试用的 CD-KEY.这时候在 bin 文件夹下应该有两个文件 key_temp.txt 和 key.txt ,而注册的时候会出现非法授权码的错误,不用管,我们执行 shutdown.bat 文件.关闭服务.
打开 key_temp.txt ,这个就是 CD-KEY 的明文,
其中 LicenseExpiryDate=2011-04-09 这个是有效期,
把 key_temp.txt 和内容copy到 key.txt 中..把 LicenseExpiryDate=2046-04-09 ,再重启服务.. ,再次将得到的cd-key,输入,下一步,下一步的就可以了
PS:很多人可能会没有生成key_**这个文件,此时注意你tomcat启动是否成功。