Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.82 KB | None | 0 0
  1. JetBrains PhpStorm
  2.  
  3. Username: ACCIPITER
  4.  
  5. License Key:
  6. ===== LICENSE BEGIN =====
  7. 84020-12042010
  8. 00001oR42Gqetx”DvzZXLebP3xqXM9
  9. hdgk!tUx6AFI4oc8hltq”fxb5FUzse
  10. ANbclGAkO9LTVDO5mO7o6b80i!WR7s
  11. ===== LICENSE END =====
  12.  
  13.  
  14. Username: EMBRACE
  15.  
  16. License Key:
  17. ===== LICENSE BEGIN =====
  18. 43136-12042010
  19. 00002UsvSON704l"dILe1PVx3y4"B3
  20. 49AU6oSDJrsjE8nMOQh"8HTDJHIUUh
  21. gd1BebYc5U"6OxDbVsALB4Eb10PW8"
  22. ===== LICENSE END =====
  23.  
  24. Username: SHAHARIA
  25.  
  26. License Key:
  27. ===== LICENSE BEGIN =====
  28. 11597-12042010
  29. 00001zDBvOz1bVax"Z4AMJdb6nEB31
  30. "f9z69pKTKKTrHYlZ7Tp6jnDcSxUPv
  31. tfCgle00vu5Yq81i2s"C7VvxgH0!h9
  32. ===== LICENSE END =====
  33.  
  34. admin
  35.  
  36. ===== LICENSE BEGIN =====
  37. 61070-12042010
  38. 00000Ishc3bfc8keafw7IQBAE30t"D
  39. r4pdwjx"IQcKbzCwn4uVgmWmqWDMva
  40. ZgjK"YOSpq2GpolodSOtGd3J5kXiqN
  41. ===== LICENSE END =====
  42.  
  43. syn
  44.  
  45. ===== LICENSE BEGIN =====
  46. 12308-12042010
  47. 00000Y1AMnd9UKPJXU9vt6lc"zsuVN
  48. E01oJHTXOvgAGo28iYkDexljYQD6tS
  49. tsq1nnHTVk0oxhsMyYZX4r5vaFojs8
  50. ===== LICENSE END =====
  51. Jetbrains WebStorm
  52.  
  53. Username: webstorm
  54.  
  55.  
  56. ===== LICENSE BEGIN =====
  57. 72149-12042010
  58. 00000cI5EYta7xt""jWOIDohDqQx7S
  59. SSsCH4oSb"1Y4edvtuSYyQ"iqGYhuo
  60. !8r1Zrqkj"TmWPZ!Eu"puCi6KV2SVe
  61. ===== LICENSE END =====
  62.  
  63.  
  64. Jetbrains RubyMine
  65.  
  66. syn
  67. ===== LICENSE BEGIN =====
  68. 43740-12042010
  69. 00001nNPIOrzPwvJjS"Y8Nafc6RELU
  70. nlmUzXskacwerrfwQvstArii0nTYef
  71. ZX"QYSGu6yLR8pJECxe6TyjYB9V1OQ
  72. ===== LICENSE END =====
  73.  
  74. admin
  75.  
  76. ===== LICENSE BEGIN =====
  77. 92232-12042010
  78. 00001nvDa2DZTwIeGWB08U5IPAaLmq
  79. dYo"1VHXzn0FRXoAaZesxV5LcRoG7h
  80. TPNY8CUycgapj1RLOlS5eEibK6JlLY
  81. ===== LICENSE END =====
  82.  
  83. IntelliJ
  84.  
  85. import java.math.BigInteger;
  86. import java.util.Date;
  87. import java.util.Random;
  88. import java.util.zip.CRC32;
  89.  
  90. public class keygen
  91. {
  92. /**
  93. * @param s
  94. * @param i
  95. * @param bytes
  96. * @return
  97. */
  98. public static short getCRC(String s, int i, byte bytes[])
  99. {
  100. CRC32 crc32 = new CRC32();
  101. if (s != null)
  102. {
  103. for (int j = 0; j < s.length(); j++)
  104. {
  105. char c = s.charAt(j);
  106. crc32.update(c);
  107. }
  108. }
  109. crc32.update(i);
  110. crc32.update(i >> 8);
  111. crc32.update(i >> 16);
  112. crc32.update(i >> 24);
  113. for (int k = 0; k < bytes.length - 2; k++)
  114. {
  115. byte byte0 = bytes[k];
  116. crc32.update(byte0);
  117. }
  118. return (short) (int) crc32.getValue();
  119. }
  120.  
  121. /**
  122. * @param biginteger
  123. * @return String
  124. */
  125. public static String encodeGroups(BigInteger biginteger)
  126. {
  127. BigInteger beginner1 = BigInteger.valueOf(0x39aa400L);
  128. StringBuilder sb = new StringBuilder();
  129. for (int i = 0; biginteger.compareTo(BigInteger.ZERO) != 0; i++)
  130. {
  131. int j = biginteger.mod(beginner1).intValue();
  132. String s1 = encodeGroup(j);
  133. if (i > 0)
  134. {
  135. sb.append("-");
  136. }
  137. sb.append(s1);
  138. biginteger = biginteger.divide(beginner1);
  139. }
  140. return sb.toString();
  141. }
  142.  
  143. /**
  144. * @param i
  145. * @return
  146. */
  147. public static String encodeGroup(int i)
  148. {
  149. StringBuilder sb = new StringBuilder();
  150. for (int j = 0; j < 5; j++)
  151. {
  152. int k = i % 36;
  153. char c;
  154. if (k < 10)
  155. {
  156. c = (char) (48 + k);
  157. }
  158. else
  159. {
  160. c = (char) ((65 + k) - 10);
  161. }
  162. sb.append(c);
  163. i /= 36;
  164. }
  165. return sb.toString();
  166. }
  167.  
  168. /**
  169. * @param name
  170. * @param days
  171. * @param id
  172. * @param prtype
  173. * @return
  174. */
  175. public static String MakeKey(String name, int days, int id)
  176. {
  177. id %= 100000;
  178. byte bkey[] = new byte[12];
  179. bkey[0] = (byte) 1; // Product type: IntelliJ IDEA is 1
  180. bkey[1] = 13; // version
  181. Date d = new Date();
  182. long ld = (d.getTime() >> 16);
  183. bkey[2] = (byte) (ld & 255);
  184. bkey[3] = (byte) ((ld >> 8) & 255);
  185. bkey[4] = (byte) ((ld >> 16) & 255);
  186. bkey[5] = (byte) ((ld >> 24) & 255);
  187. days &= 0xffff;
  188. bkey[6] = (byte) (days & 255);
  189. bkey[7] = (byte) ((days >> 8) & 255);
  190. bkey[8] = 105;
  191. bkey[9] = -59;
  192. bkey[10] = 0;
  193. bkey[11] = 0;
  194. int w = getCRC(name, id % 100000, bkey);
  195. bkey[10] = (byte) (w & 255);
  196. bkey[11] = (byte) ((w >> 8) & 255);
  197. BigInteger pow = new BigInteger("89126272330128007543578052027888001981", 10);
  198. BigInteger mod = new BigInteger("86f71688cdd2612ca117d1f54bdae029", 16);
  199. BigInteger k0 = new BigInteger(bkey);
  200. BigInteger k1 = k0.modPow(pow, mod);
  201. String s0 = Integer.toString(id);
  202. String sz = "0";
  203. while (s0.length() != 5)
  204. {
  205. s0 = sz.concat(s0);
  206. }
  207. s0 = s0.concat("-");
  208. String s1 = encodeGroups(k1);
  209. s0 = s0.concat(s1);
  210. return s0;
  211. }
  212.  
  213. public static void main(String[] args)
  214. {
  215. if (args.length == 0)
  216. {
  217. System.err.printf("*** Usage: %s name%n", keygen.class.getCanonicalName());
  218. System.exit(1);
  219. }
  220. Random r = new Random();
  221. System.out.println(MakeKey(args[0], 0, r.nextInt(100000)));
  222. }
  223. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement