MyEclipse2015Stable3.0破解方法

原理大概是这样的(个人粗略分析):获取当前的日期,来设置证书失效日期,解析后生成码-->再转码,最后生成序列号。

1、新建一个Java工程,(不会安装jdk创建环境变量的,请前往传送门:链接。)创建一个名为MyEclipseGen.class的文件,将下面的代码复制粘贴进去运行,

 

  1. package MyEclipseGen;  
  2. import java.io.BufferedReader;     
  3. import java.io.IOException;     
  4. import java.io.InputStreamReader;     
  5. public class MyEclipseGen {     
  6. private static final String LL = "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.";     
  7. public String getSerial(String userId, String licenseNum) {     
  8.    java.util.Calendar cal = java.util.Calendar.getInstance();     
  9.    cal.add(1, 3);     
  10.    cal.add(6, -1);     
  11.    java.text.NumberFormat nf = new java.text.DecimalFormat("000");     
  12.    licenseNum = nf.format(Integer.valueOf(licenseNum));     
  13.    String verTime = new StringBuilder("-").append(new java.text.SimpleDateFormat("yyMMdd").format(cal.getTime())) .append("0").toString();     
  14.    String type = "YE3MP-";     
  15.    String need = new StringBuilder(userId.substring(0, 1)).append(type).append("300").append(licenseNum).append(verTime).toString();     
  16.    String dx = new StringBuilder(need).append(LL).append(userId).toString();     
  17.    int suf = this.decode(dx);     
  18.    String code = new StringBuilder(need).append(String.valueOf(suf)).toString();     
  19.    return this.change(code);     
  20. }     
  21. private int decode(String s) {     
  22.    int i;     
  23.    char[] ac;     
  24.    int j;     
  25.    int k;     
  26.    i = 0;     
  27.    ac = s.toCharArray();     
  28.    j = 0;     
  29.    k = ac.length;     
  30.    while (j < k) {     
  31.     i = (31 * i) + ac[j];     
  32.     j++;     
  33.    }     
  34.    return Math.abs(i);     
  35. }     
  36. private String change(String s) {     
  37.    byte[] abyte0;     
  38.    char[] ac;     
  39.    int i;     
  40.    int k;     
  41.    int j;     
  42.    abyte0 = s.getBytes();     
  43.    ac = new char[s.length()];     
  44.    i = 0;     
  45.    k = abyte0.length;     
  46.    while (i < k) {     
  47.     j = abyte0[i];     
  48.     if ((j >= 48) && (j <= 57)) {     
  49.      j = (((j - 48) + 5) % 10) + 48;     
  50.     } else if ((j >= 65) && (j <= 90)) {     
  51.      j = (((j - 65) + 13) % 26) + 65;     
  52.     } else if ((j >= 97) && (j <= 122)) {     
  53.      j = (((j - 97) + 13) % 26) + 97;     
  54.     }     
  55.     ac[i] = (char) j;     
  56.     i++;     
  57.    }     
  58.    return String.valueOf(ac);     
  59. }     
  60. public MyEclipseGen() {     
  61.    super();     
  62. }     
  63. public static void main(String[] args) {     
  64.    try {     
  65.     System.out.println("please input register name:");     
  66.     BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));     
  67.     String userId = null;     
  68.     userId = reader.readLine();     
  69.     MyEclipseGen myeclipsegen = new MyEclipseGen();     
  70.     String res = myeclipsegen.getSerial(userId, "5");     
  71.     System.out.println("Serial:" + res);     
  72.     reader.readLine();     
  73.    } catch (IOException ex) {     
  74.    }     
  75. }     
  76. }   

这是控制台出现提示,输入你的注册名,要记住,一会要用


然后点击:

Window-->preferences-->Myeclipse-->Subscription


输入刚才生成的user和序列号,ok。

原文地址:https://www.cnblogs.com/runerering/p/5969923.html