Liny_@NotePad

沉迷ACG中

MyEclipse6.5 注册机源码

YOYO posted @ 2008年8月22日 00:10 in 【工具/OS】 with tags MyEclipse 注册机 破解 序列号 , 3323 阅读

网上找来的 测试可用~

  1. import java.text.DecimalFormat;   
  2. import java.text.NumberFormat;   
  3. import java.text.SimpleDateFormat;   
  4. import java.util.Calendar;   
  5.  
  6. public class Crack {   
  7.     public static final void main(String[] args){   
  8.         String id="YOYO";//这里填你想注册的名字
  9.         String num="89";//这里填你想注册的使用年限,最大为999
  10.         System.out.println(getSerial(id,"100",num,false));   
  11.     }   
  12.     public static String getSerial(String userId, String version,   
  13.             String licenseNum, boolean selected) {   
  14.         Calendar cal = Calendar.getInstance();   
  15.         cal.add(1, 3);   
  16.         cal.add(6, -1);   
  17.         NumberFormat nf = new DecimalFormat("000");   
  18.         licenseNum = nf.format(Integer.valueOf(licenseNum));   
  19.         String verTime = selected ? (new StringBuffer("-")).append(   
  20.                 (new SimpleDateFormat("yyMMdd")).format(cal.getTime())).append(   
  21.                 "0").toString() : "-0812310";   
  22.         String type = "YE3MB-";   
  23.         String need = (new StringBuffer(String.valueOf(userId.substring(0, 1))))   
  24.                 .append(type).append(version).append(licenseNum)   
  25.                 .append(verTime).toString();   
  26.         String dx = (new StringBuffer(String.valueOf(need)))   
  27.                 .append(   
  28.                         "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.")   
  29.                    
  30.                         .append(userId).toString();   
  31.         int suf = decode(dx);   
  32.         String code = (new StringBuffer(String.valueOf(need))).append(   
  33.                 String.valueOf(suf)).toString();   
  34.         return change(code);   
  35.     }   
  36.  
  37.     private static int decode(String s) {   
  38.         int i = 0;   
  39.         char ac[] = s.toCharArray();   
  40.         int j = 0;   
  41.         for (int k = ac.length; j < k; j++)   
  42.             i = 31 * i + ac[j];   
  43.  
  44.         return Math.abs(i);   
  45.     }   
  46.  
  47.     private static String change(String s) {   
  48.         byte abyte0[] = s.getBytes();   
  49.         char ac[] = new char[s.length()];   
  50.         int i = 0;   
  51.         for (int k = abyte0.length; i < k; i++) {   
  52.             int 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.             ac[i] = (char) j;   
  60.         }   
  61.  
  62.         return String.valueOf(ac);   
  63.     }   
  64. }

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter