將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.aygfsteel.com/Files/freddychu/DefaultLicense.zip
          如果不能下,請留下email.

          posted on 2005-11-05 18:18 風蕭蕭 閱讀(7546) 評論(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

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 安平县| 泌阳县| 邹平县| 商丘市| 金华市| 岢岚县| 江津市| 栾城县| 乐平市| 大足县| 雷州市| 崇左市| 贵州省| 思茅市| 靖州| 昭苏县| 四会市| 天门市| 诸城市| 信丰县| 布尔津县| 鲜城| 凤冈县| 景德镇市| 昌平区| 桐柏县| 班戈县| 阳泉市| 桓台县| 宣汉县| 东乌| 木兰县| 浏阳市| 黄冈市| 凤冈县| 靖边县| 雅江县| 邹城市| 洞头县| 常山县| 江城|