myeclipse8.x註冊碼

 

  1. package myeclipse.blue;  
  2.  
  3. import java.text.DecimalFormat;  
  4. import java.text.NumberFormat;  
  5. import java.text.SimpleDateFormat;  
  6. import java.util.Calendar;  
  7.  
  8. public class CrackE8_6 {  
  9.     public static final void main(String[] args) {  
  10.         String id = "wuchao"// id  //this result is jLR8ZO-655556-67678656287653974  
  11.         String num = "1"// 授權數目  
  12.         System.out.println(getSerial(id, "100", num, false));  
  13.     }  
  14.  
  15.     public static String getSerial(String userId, String version,  
  16.             String licenseNum, boolean selected) {  
  17.         Calendar cal = Calendar.getInstance();  
  18.         cal.add(13);  
  19.         cal.add(6, -1);  
  20.         NumberFormat nf = new DecimalFormat("000");  
  21.         licenseNum = nf.format(Integer.valueOf(licenseNum));  
  22.         String verTime = selected ? (new StringBuffer("-")).append(  
  23.                 (new SimpleDateFormat("yyMMdd")).format(cal.getTime())).append(  
  24.                 "0").toString() : "-1212310"// 到期時間20121231  
  25.         String type = "YE3MB-";  
  26.         String need = (new StringBuffer(String.valueOf(userId.substring(01))))  
  27.                 .append(type).append(version).append(licenseNum)  
  28.                 .append(verTime).toString();  
  29.         String dx = (new StringBuffer(String.valueOf(need)))  
  30.                 .append(  
  31.                         "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.")  
  32.  
  33.                 .append(userId).toString();  
  34.         int suf = decode(dx);  
  35.         String code = (new StringBuffer(String.valueOf(need))).append(  
  36.                 String.valueOf(suf)).toString();  
  37.         return change(code);  
  38.     }  
  39.  
  40.     private static int decode(String s) {  
  41.         int i = 0;  
  42.         char ac[] = s.toCharArray();  
  43.         int j = 0;  
  44.         for (int k = ac.length; j < k; j++)  
  45.             i = 31 * i + ac[j];  
  46.  
  47.         return Math.abs(i);  
  48.     }  
  49.  
  50.     private static String change(String s) {  
  51.         byte abyte0[] = s.getBytes();  
  52.         char ac[] = new char[s.length()];  
  53.         int i = 0;  
  54.         for (int k = abyte0.length; i < k; i++) {  
  55.             int j = abyte0[i];  
  56.             if (j >= 48 && j <= 57)  
  57.                 j = ((j - 48) + 5) % 10 + 48;  
  58.             else if (j >= 65 && j <= 90)  
  59.                 j = ((j - 65) + 13) % 26 + 65;  
  60.             else if (j >= 97 && j <= 122)  
  61.                 j = ((j - 97) + 13) % 26 + 97;  
  62.             ac[i] = (char) j;  
  63.         }  
  64.  
  65.         return String.valueOf(ac);  
  66.     }  
  67. }  

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章