ITeye博客

MyEclipse Keygen

sunrie · 2007-03-08 10:45 · Eclipse · Markdown

java 代码

 

  1. /**
  2. * MyEclipse注册机
  3. */
  4. import java.io.*;
  5. public class Crack {
  6. public static String convert(String s) {
  7. if (s == null || s.length() == 0)
  8. return s;
  9. byte abyte0[] = s.getBytes();
  10. char ac[] = new char[s.length()];
  11. int i = 0;
  12. for (int k = abyte0.length; i < k; i++) {
  13. int j = abyte0[i];
  14. if (j >= 48 && j <= 57)
  15. j = ((j - 48) + 5) % 10 + 48;
  16. else if (j >= 65 && j <= 90)
  17. j = ((j - 65) + 13) % 26 + 65;
  18. else if (j >= 97 && j <= 122)
  19. j = ((j - 97) + 13) % 26 + 97;
  20. ac[i] = (char) j;
  21. }
  22. return String.valueOf(ac);
  23. }
  24. private static int hash(String s) {
  25. int i = 0;
  26. char ac[] = s.toCharArray();
  27. int j = 0;
  28. for (int k = ac.length; j < k; j++)
  29. i = 31 * i + ac[j];
  30. return Math.abs(i);
  31. }
  32. private static String inputString() {
  33. BufferedReader bufferedreader = new BufferedReader(
  34. new InputStreamReader(System.in));
  35. String s = null;
  36. try {
  37. s = bufferedreader.readLine();
  38. } catch (IOException ioexception) {
  39. ioexception.printStackTrace();
  40. }
  41. return s;
  42. }
  43. public static void main(String[] args) {
  44. try {
  45. System.out.println("My Eclipse IDE v9.99 Keygen");
  46. System.out.print("License Name : ");
  47. String s = inputString();
  48. String licStr = "YE3MP-999-00-9912310";
  49. String h = s.substring(0, 1)
  50. + licStr
  51. + "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 of the DMCA, penalties range up to a $500,000 fine or up to five years imprisonment for a first offense. Think about it; pay for a license, avoid prosecution, and feel better about yourself."
  52. + s;
  53. int j = hash(h);
  54. String lic = s.substring(0, 1) + licStr + Integer.toString(j);
  55. System.out.println("License Key  : " + convert(lic));
  56. } catch (Exception exception) {
  57. exception.printStackTrace();
  58. }
  59. }
  60. }

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。