• feel better about yourself 完美破解MyEclipse 5.5.1 GA 注册码呵呵


      1  
      2 
      3 将下面程序编译运行,只能破解GA
      4 
      5 import java.io.BufferedReader;
      6 import java.io.IOException;
      7 import java.io.InputStreamReader;
      8 import java.io.PrintStream;
      9 import java.text.DecimalFormat;
     10 import java.text.NumberFormat;
     11 import java.text.SimpleDateFormat;
     12 import java.util.Calendar;
     13 
     14 public class Myeclipse5_5_0_KeyMaker
     15 {
     16 private static final String L = "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.";
     17 
     18 public static void main(String[] args)
     19 {
     20     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     21     String userId = null;
     22     int intLicenseNum = 1;
     23     String strLicenseNum = null;
     24     boolean bProFlag = true;
     25     String strProFlag = null;
     26 
     27     while ((userId == null) || ("".equals(userId.trim()))) {
     28       System.out.print("用户名: ");
     29       try {
     30         userId = br.readLine();
     31       }
     32       catch (IOException localIOException1)
     33       {
     34       }
     35     }
     36     System.out.print("注册码可用的用户数量(默认 1, 最大 999): ");
     37     try {
     38       strLicenseNum = br.readLine();
     39     }
     40     catch (IOException localIOException2)
     41     {
     42     }
     43 
     44     Object nf = new DecimalFormat("000");
     45     if ((strLicenseNum == null) || ("".equals(strLicenseNum.trim())))
     46       strLicenseNum = ((NumberFormat)nf).format(intLicenseNum);
     47     else {
     48       strLicenseNum = ((NumberFormat)nf).format(Integer.parseInt(strLicenseNum));
     49     }
     50 
     51     System.out.print("个人版 或 标准版(默认 个人版, n 标准版): ");
     52     try {
     53       strProFlag = br.readLine();
     54     }
     55     catch (IOException localIOException3) {
     56     }
     57     if ((strProFlag != null) && (!("".equals(strProFlag.trim())))) {
     58       bProFlag = false;
     59     }
     60 
     61     Calendar cal = Calendar.getInstance();
     62     cal.add(1, 2);
     63     cal.add(6, -1);
     64     SimpleDateFormat sdf = new SimpleDateFormat("yyMMdd");
     65 
     66     String need = userId.substring(0, 1) + "Y" + 
     67       ((bProFlag) ? "E3MP" : "E2MY") + "-100" + strLicenseNum + "-" + 
     68       sdf.format(cal.getTime()) + "0";
     69     String dx = need + "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." + userId;
     70     int suf = decode(dx);
     71     String code = need + suf;
     72     System.out.println("注册码: " + change(code));
     73 }
     74 
     75 static int decode(String s) {
     76     int i = 0;
     77     char[] ac = s.toCharArray();
     78     int j = 0;
     79     for (int k = ac.length; j < k; ++j)
     80       i = 31 * i + ac[j];
     81 
     82     return Math.abs(i);
     83 }
     84 
     85 static String change(String s) {
     86     if ((s == null) || (s.length() == 0))
     87       return s;
     88     byte[] abyte0 = s.getBytes();
     89     char[] ac = new char[s.length()];
     90     int i = 0;
     91     for (int k = abyte0.length; i < k; ++i) {
     92       int j = abyte0[i];
     93       if ((j >= 48) && (j <= 57))
     94         j = (j - 48 + 5) % 10 + 48;
     95       else if ((j >= 65) && (j <= 90))
     96         j = (j - 65 + 13) % 26 + 65;
     97       else if ((j >= 97) && (j <= 122))
     98         j = (j - 97 + 13) % 26 + 97;
     99       ac[i] = (char)j;
    100     }
    101     return String.valueOf(ac);
    102 }
    103 }
    104 
    105  
  • 相关阅读:
    jsp——学习篇:简单使用CSS
    MongoDB分片式服务器集群配置
    PHP上传文件
    【转】【thinkphp3.x】thinkphp3.x中display方法及show方法的使用
    (转)Mysql用户与权限管理
    MonkeyRunner 之如何获取APP的Package Name和Activity Name
    一个典型的PHP分页实例代码分享
    HTML meta charset 定义网页编码信息
    【转】PHP连接MySQL数据库
    一个漂亮的php验证码类(分享)
  • 原文地址:https://www.cnblogs.com/alamps/p/2368521.html
Copyright © 2020-2023  润新知