隨筆-60  評論-138  文章-1  trackbacks-0
          jira的破解:
           1import java.io.*;
           2import java.security.KeyFactory;
           3import java.security.Signature;
           4import java.security.spec.PKCS8EncodedKeySpec;
           5
           6import com.atlassian.license.LicensePair;
           7
           8public class keygen {
           9
          10    public keygen() {
          11    }

          12
          13    public static void main(String args[]) throws IOException {
          14        try {
          15            long l = 267L;
          16            long l1 = System.currentTimeMillis();
          17            long l2 = System.currentTimeMillis();
          18            String s = "";
          19            System.out.println("Keygen for JIRA Enterprise Edition.");
          20            System.out.print("created by mydaj[ROR].");
          21            do {
          22                System.out.print("\nEnter your organization name: ");
          23                for (int i = System.in.read(); i != 10 && i != 13; i = System.in
          24                        .read())
          25                    s = s + (char) i;
          26
          27            }
           while (s == "");
          28            try {
          29                PKCS8EncodedKeySpec pkcs8encodedkeyspec = new PKCS8EncodedKeySpec(
          30                        EncodedPrvKey);
          31                KeyFactory keyfactory = KeyFactory.getInstance("DSA""SUN");
          32                java.security.PrivateKey privatekey = keyfactory
          33                        .generatePrivate(pkcs8encodedkeyspec);
          34                String s1 = Long.toString(l, 10);
          35                s1 = s1 + "^^";
          36                s1 = s1 + Long.toString(l1, 10);
          37                s1 = s1 + "^^";
          38                s1 = s1 + Long.toString(l2, 10);
          39                s1 = s1 + "^^";
          40                s1 = s1 + s;
          41                byte abyte0[] = s1.getBytes();
          42                Signature signature = Signature.getInstance("SHA1withDSA");
          43                signature.initSign(privatekey);
          44                signature.update(abyte0);
          45                byte abyte1[] = signature.sign();
          46                LicensePair licensepair = null;
          47                try {
          48                    licensepair = new LicensePair(abyte0, abyte1);
          49                }
           catch (Exception exception1) {
          50                    exception1.printStackTrace();
          51                }

          52                System.out.println(s1);
          53                System.out.println("Your license key is: ");
          54                System.out.println(licensepair.toString());
          55            }
           catch (Exception exception) {
          56                exception.printStackTrace();
          57            }

          58        }
           catch (IOException ioexception) {
          59        }

          60    }

          61
          62    static byte EncodedPrvKey[] = 48-12617521048-126144,
          63            6742-12272-50564148-1261312-127-127,
          64            0-312783-12729117184182-3374-10046-20,
          65            -28-25-1017-738260-17680-613063-128-74,
          66            81381056993643481-58961-11588-6-65,
          67            -59-11-7048-10-53-10185108-41-12759-128,
          68            2952111-1410296-73107-10380-91-92-97-97,
          69            -2441231634-6279-69-87-41-2-73-5827-8,
          70            5987-25-58-88-9021154-5-125-10-45-5930,
          71            -6125384199022-11150-10117-13-824397,
          72            -4142-17-1434325-99-47721-572210-105,
          73            9680-113213511-52-78-110-71-126-94-21,
          74            -12411-168828-112-127-1270-9-31-96-123,
          75            -42-10161-34-53-68-859254-7287-71121-108,
          76            -81-69-658-22-126-7877611617-12610381,
          77            8987-114-70-448979-26113716-127-128-76,
          78            732211335-2476402219-73-49950-116-56,
          79            -90-316022122-11784124-11540-32-93-8230,
          80            43-77-90117-111110-9312711-6335398-15,
          81            -59812213659-52-92-15-66-8881-112-119,
          82            -88-125-33-3190-27-976-110-11710294-128,
          83            123853710017659-2-4973424222204250,
          84            -8830125-37118-5020-82-6308-36106-9,
          85            -11012410768 }
          ;
          86
          87}

          88
          posted on 2007-07-11 15:07 張氏兄弟 閱讀(195) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 海原县| 宝丰县| 溧阳市| 大足县| 福安市| 潼关县| 科尔| 宜兴市| 阿合奇县| 苍梧县| 西和县| 无棣县| 银川市| 通渭县| 湘西| 新巴尔虎左旗| 互助| 黎城县| 上栗县| 武义县| 巴彦淖尔市| 济宁市| 利川市| 敦化市| 石阡县| 金山区| 瑞金市| 湖州市| 通化市| 威信县| 抚松县| 类乌齐县| 成武县| 大荔县| 中牟县| 万宁市| 横山县| 同德县| 彩票| 呼玛县| 从化市|