随笔-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 张氏兄弟 阅读(189) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: