myeclipse5.5破解程序

直接在需要破解的myeclipse 5.5下面新建一个工程,运行下面的程序即可破解。
  1. import java.io.*;
  2. import java.text.*;
  3. import java.util.Calendar;
  4. public class Myeclipse5_5_0_KeyMaker
  5. {
  6. //    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.";
  7.     public Myeclipse5_5_0_KeyMaker()
  8.     {
  9.     }
  10.     public static void main(String args[])
  11.     {
  12.         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  13.         String userId = null;
  14.         int intLicenseNum = 1;
  15.         String strLicenseNum = null;
  16.         boolean bProFlag = true;
  17.         String strProFlag = null;
  18.         while(userId == null || "".equals(userId.trim()))
  19.         {
  20.             System.out.print("Subscriber: ");
  21.             try
  22.             {
  23.                 userId = br.readLine();
  24.             }
  25.             catch(IOException ioexception) { }
  26.         }
  27.         System.out.print("Number of licenses(default 1, max 999): ");
  28.         try
  29.         {
  30.             strLicenseNum = br.readLine();
  31.         }
  32.         catch(IOException ioexception1) { }
  33.         NumberFormat nf = new DecimalFormat("000");
  34.         if(strLicenseNum == null || "".equals(strLicenseNum.trim()))
  35.             strLicenseNum = nf.format(intLicenseNum);
  36.         else
  37.             strLicenseNum = nf.format(Integer.parseInt(strLicenseNum));
  38.         System.out.print("Professional or Standard(default pro, n=stand): ");
  39.         try
  40.         {
  41.             strProFlag = br.readLine();
  42.         }
  43.         catch(IOException ioexception2) { }
  44.         if(strProFlag != null && !"".equals(strProFlag.trim()))
  45.             bProFlag = false;
  46.         Calendar cal = Calendar.getInstance();
  47.         cal.add(12);
  48.         cal.add(6, -1);
  49.         SimpleDateFormat sdf = new SimpleDateFormat("yyMMdd");
  50.         String need = userId.substring(01) + "Y" + (bProFlag ? "E3MP" : "E2MY") + "-100" + strLicenseNum + "-" + sdf.format(cal.getTime()) + "0";
  51.         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;
  52.         int suf = decode(dx);
  53.         String code = need + suf;
  54.         System.out.println("Subscription Code: " + change(code));
  55.     }
  56.     static int decode(String s)
  57.     {
  58.         int i = 0;
  59.         char ac[] = s.toCharArray();
  60.         int j = 0;
  61.         for(int k = ac.length; j < k; j++)
  62.             i = 31 * i + ac[j];
  63.         return Math.abs(i);
  64.     }
  65.     static String change(String s)
  66.     {
  67.         if(s == null || s.length() == 0)
  68.             return s;
  69.         byte abyte0[] = s.getBytes();
  70.         char ac[] = new char[s.length()];
  71.         int i = 0;
  72.         for(int k = abyte0.length; i < k; i++)
  73.         {
  74.             int j = abyte0[i];
  75.             if(j >= 48 && j <= 57)
  76.                 j = ((j - 48) + 5) % 10 + 48;
  77.             else
  78.             if(j >= 65 && j <= 90)
  79.                 j = ((j - 65) + 13) % 26 + 65;
  80.             else
  81.             if(j >= 97 && j <= 122)
  82.                 j = ((j - 97) + 13) % 26 + 97;
  83.             ac[i] = (char)j;
  84.         }
  85.         return String.valueOf(ac);
  86.     }
  87. }
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值