• 自动生成MyEclipse 安装破解码


    新建一个class 文件,Debug 模式运行一个,输入任意值 ,回车得到破解安装码

    代码文件如下:

     1 import java.io.*;
     2 
     3 public class MyEclipseGen {
     4     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.";
     5     public String getSerial(String userId, String licenseNum) {
     6         java.util.Calendar cal = java.util.Calendar.getInstance();
     7         cal.add(1, 3);
     8         cal.add(6, -1);
     9         java.text.NumberFormat nf = new java.text.DecimalFormat("000");
    10         licenseNum = nf.format(Integer.valueOf(licenseNum));
    11         String verTime = new StringBuilder("-").append(new java.text.
    12                 SimpleDateFormat("yyMMdd").format(cal.getTime())).append("0").
    13                          toString();
    14         String type = "YE3MP-";
    15         String need = new StringBuilder(userId.substring(0, 1)).append(type).
    16                       append("300").append(licenseNum).append(verTime).toString();
    17         String dx = new StringBuilder(need).append(LL).append(userId).toString();
    18         int suf = this.decode(dx);
    19         String code = new StringBuilder(need).append(String.valueOf(suf)).
    20                       toString();
    21         return this.change(code);
    22     }
    23 
    24     private int decode(String s) {
    25         int i;
    26         char[] ac;
    27         int j;
    28         int k;
    29         i = 0;
    30         ac = s.toCharArray();
    31         j = 0;
    32         k = ac.length;
    33         while (j < k) {
    34             i = (31 * i) + ac[j];
    35             j++;
    36         }
    37         return Math.abs(i);
    38     }
    39 
    40     private String change(String s) {
    41         byte[] abyte0;
    42         char[] ac;
    43         int i;
    44         int k;
    45         int j;
    46         abyte0 = s.getBytes();
    47         ac = new char[s.length()];
    48         i = 0;
    49         k = abyte0.length;
    50         while (i < k) {
    51             j = abyte0[i];
    52             if ((j >= 48) && (j <= 57)) {
    53                 j = (((j - 48) + 5) % 10) + 48;
    54             } else if ((j >= 65) && (j <= 90)) {
    55                 j = (((j - 65) + 13) % 26) + 65;
    56             } else if ((j >= 97) && (j <= 122)) {
    57                 j = (((j - 97) + 13) % 26) + 97;
    58             }
    59             ac[i] = (char) j;
    60             i++;
    61         }
    62         return String.valueOf(ac);
    63     }
    64 
    65     public MyEclipseGen() {
    66         super();
    67     }
    68 
    69     public static void main(String[] args) {
    70         try {
    71             System.out.println("please input register name:");
    72             BufferedReader reader = new BufferedReader(new InputStreamReader(
    73                     System.in));
    74             String userId = null;
    75             userId = reader.readLine();
    76             MyEclipseGen myeclipsegen = new MyEclipseGen();
    77             String res = myeclipsegen.getSerial(userId, "20");
    78             System.out.println("Serial:" + res);
    79             reader.readLine();
    80         } catch (IOException ex) {
    81         }
    82     }
    83 }
  • 相关阅读:
    一个屌丝程序猿的人生(七十二)
    一个屌丝程序猿的人生(七十一)
    一个屌丝程序猿的人生(七十)
    一个屌丝程序猿的人生(六十九)
    一个屌丝程序猿的人生(六十八)
    一个屌丝程序猿的人生(六十七)
    Target-Action回调模式
    KVC & KVO
    ARC内存管理机制详解
    Objective-C中把URL请求的参数转换为字典
  • 原文地址:https://www.cnblogs.com/yizhiamumu/p/8950400.html
Copyright © 2020-2023  润新知