zoukankan      html  css  js  c++  java
  • MyEclipse7.5.0版注册码破解及激活操作

    这些阶段一直在用eclipse,Myeclipse没有使过。今天上网看到Myeclipse7.5.0版发布了,因此我下载了个。

    电信封掉了Myeclipse的官网IP,因此不使用代理的话,它的官方网站是打不开的,可以使用一些简单的在线代理,比如www.coobai.com

    作为开源世界寄生虫的Myeclipse不是免费的,下载之后会有30天的免费试用期.接下来要做的事,就是破解注册码了:代码如下




    新建一个工程,导入下面的文件
    MyEclipseGen.java
    Java代码 复制代码
    1. view plaincopy to clipboardprint?   
    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(13);      
    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(      
    14.      new java.text.SimpleDateFormat("yyMMdd").format(cal.getTime()))      
    15.      .append("0").toString();      
    16.    String type = "YE3MP-";      
    17.    String need = new StringBuilder(userId.substring(01)).append(type)      
    18.      .append("300").append(licenseNum).append(verTime).toString();      
    19.    String dx = new StringBuilder(need).append(LL).append(userId)      
    20.      .toString();      
    21.    int suf = this.decode(dx);      
    22.    String code = new StringBuilder(need).append(String.valueOf(suf))      
    23.      .toString();      
    24.    return this.change(code);      
    25. }      
    26. private int decode(String s) {      
    27.    int i;      
    28.    char[] ac;      
    29.    int j;      
    30.    int k;      
    31.    i = 0;      
    32.    ac = s.toCharArray();      
    33.    j = 0;      
    34.    k = ac.length;      
    35.    while (j < k) {      
    36.     i = (31 * i) + ac[j];      
    37.     j++;      
    38.    }      
    39.    return Math.abs(i);      
    40. }      
    41. private String change(String s) {      
    42.    byte[] abyte0;      
    43.    char[] ac;      
    44.    int i;      
    45.    int k;      
    46.    int j;      
    47.    abyte0 = s.getBytes();      
    48.    ac = new char[s.length()];      
    49.    i = 0;      
    50.    k = abyte0.length;      
    51.    while (i < k) {      
    52.     j = abyte0[i];      
    53.     if ((j >= 48) && (j <= 57)) {      
    54.      j = (((j - 48) + 5) % 10) + 48;      
    55.     } else if ((j >= 65) && (j <= 90)) {      
    56.      j = (((j - 65) + 13) % 26) + 65;      
    57.     } else if ((j >= 97) && (j <= 122)) {      
    58.      j = (((j - 97) + 13) % 26) + 97;      
    59.     }      
    60.     ac[i] = (char) j;      
    61.     i++;      
    62.    }      
    63.    return String.valueOf(ac);      
    64. }      
    65. public MyEclipseGen() {      
    66.    super();      
    67. }      
    68. public static void main(String[] args) {      
    69.    try {      
    70.     System.out.println("please input register name:");      
    71.     BufferedReader reader = new BufferedReader(new InputStreamReader(      
    72.       System.in));      
    73.     String userId = null;      
    74.     userId = reader.readLine();      
    75.     MyEclipseGen myeclipsegen = new MyEclipseGen();      
    76.     String res = myeclipsegen.getSerial(userId, "5");      
    77.     System.out.println("Serial:" + res);      
    78.     reader.readLine();      
    79.    } catch (IOException ex) {      
    80.    }      
    81. }      
    82. }      
    83. import java.io.BufferedReader;   
    84. import java.io.IOException;   
    85. import java.io.InputStreamReader;   
    86. public class MyEclipseGen {   
    87. 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.";   
    88. public String getSerial(String userId, String licenseNum) {   
    89.    java.util.Calendar cal = java.util.Calendar.getInstance();   
    90.    cal.add(13);   
    91.    cal.add(6, -1);   
    92.    java.text.NumberFormat nf = new java.text.DecimalFormat("000");   
    93.    licenseNum = nf.format(Integer.valueOf(licenseNum));   
    94.    String verTime = new StringBuilder("-").append(   
    95.      new java.text.SimpleDateFormat("yyMMdd").format(cal.getTime()))   
    96.      .append("0").toString();   
    97.    String type = "YE3MP-";   
    98.    String need = new StringBuilder(userId.substring(01)).append(type)   
    99.      .append("300").append(licenseNum).append(verTime).toString();   
    100.    String dx = new StringBuilder(need).append(LL).append(userId)   
    101.      .toString();   
    102.    int suf = this.decode(dx);   
    103.    String code = new StringBuilder(need).append(String.valueOf(suf))   
    104.      .toString();   
    105.    return this.change(code);   
    106. }   
    107. private int decode(String s) {   
    108.    int i;   
    109.    char[] ac;   
    110.    int j;   
    111.    int k;   
    112.    i = 0;   
    113.    ac = s.toCharArray();   
    114.    j = 0;   
    115.    k = ac.length;   
    116.    while (j < k) {   
    117.     i = (31 * i) + ac[j];   
    118.     j++;   
    119.    }   
    120.    return Math.abs(i);   
    121. }   
    122. private String change(String s) {   
    123.    byte[] abyte0;   
    124.    char[] ac;   
    125.    int i;   
    126.    int k;   
    127.    int j;   
    128.    abyte0 = s.getBytes();   
    129.    ac = new char[s.length()];   
    130.    i = 0;   
    131.    k = abyte0.length;   
    132.    while (i < k) {   
    133.     j = abyte0[i];   
    134.     if ((j >= 48) && (j <= 57)) {   
    135.      j = (((j - 48) + 5) % 10) + 48;   
    136.     } else if ((j >= 65) && (j <= 90)) {   
    137.      j = (((j - 65) + 13) % 26) + 65;   
    138.     } else if ((j >= 97) && (j <= 122)) {   
    139.      j = (((j - 97) + 13) % 26) + 97;   
    140.     }   
    141.     ac[i] = (char) j;   
    142.     i++;   
    143.    }   
    144.    return String.valueOf(ac);   
    145. }   
    146. public MyEclipseGen() {   
    147.    super();   
    148. }   
    149. public static void main(String[] args) {   
    150.    try {   
    151.     System.out.println("please input register name:");   
    152.     BufferedReader reader = new BufferedReader(new InputStreamReader(   
    153.       System.in));   
    154.     String userId = null;   
    155.     userId = reader.readLine();   
    156.     MyEclipseGen myeclipsegen = new MyEclipseGen();   
    157.     String res = myeclipsegen.getSerial(userId, "5");   
    158.     System.out.println("Serial:" + res);   
    159.     reader.readLine();   
    160.    } catch (IOException ex) {   
    161.    }   
    162. }   
    163. }    


    运行该代码,在控制台中会出现:
    please input register name:
    ×××××(你的name,随便什么)
    即生成序列号: ××××× ××××× ×××××...

    进入myeclipse,在菜单中选择 Myeclipse->Subscription Information 然后 输入Subscriber和Subscription code即可。
    我的注册码可以用1095天.呵呵..蛮爽的.
  • 相关阅读:
    转载一篇文章--一个人和三个人称(周国平)
    第二天学习python的内容
    第一天 python学习的习题
    Linux基础:文件,目录浏览,管理及维护
    Linux基础之命令:Linux命令及获取帮助
    生成器
    迭代器协议
    max函数高级使用方法
    python内置函数、
    filter,map和reduce函数
  • 原文地址:https://www.cnblogs.com/hannover/p/1752892.html
Copyright © 2011-2022 走看看