myeclipse 6.5 GA and blue

[复制链接]
查看11 | 回复2 | 2008-8-15 23:58:00 | 显示全部楼层 |阅读模式
下面的这个程序可以计算出myeclipse 6.5 GA and blue的注册码,和大家分享一下,我也是在网上找到的。
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class Crack {
public static final void main(String[] args) {
String id = "";
InputStreamReader stdin = new InputStreamReader(System.in);// 键盘输入
BufferedReader bufin = new BufferedReader(stdin);
while (true) {
System.out.println("请输入要计算的key序列:");
try {
id = bufin.readLine();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
String num = "999";
System.out.println(getSerial(id, "100", num, false));
System.out.println("是否继续计算(Y/N):");
stdin = new InputStreamReader(System.in);// 键盘输入
bufin = new BufferedReader(stdin);
try {
if (bufin.readLine().equalsIgnoreCase("N")) {
break;
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
public static String getSerial(String userId, String version,
String licenseNum, boolean selected) {
Calendar cal = Calendar.getInstance();
cal.add(1, 3);
cal.add(6, -1);
NumberFormat nf = new DecimalFormat("000");
licenseNum = nf.format(Integer.valueOf(licenseNum));
String verTime = selected ? (new StringBuffer("-")).append(
(new SimpleDateFormat("yyMMdd")).format(cal.getTime())).append(
"0").toString() : "-0812310";
String type = "YE3MB-";
String need = (new StringBuffer(String.valueOf(userId.substring(0, 1))))
.append(type).append(version).append(licenseNum)
.append(verTime).toString();
String dx = (new StringBuffer(String.valueOf(need)))
.append(
"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.")
.append(userId).toString();
int suf = decode(dx);
String code = (new StringBuffer(String.valueOf(need))).append(
String.valueOf(suf)).toString();
return change(code);
}
private static int decode(String s) {
int i = 0;
char ac[] = s.toCharArray();
int j = 0;
for (int k = ac.length; j = 48 && j = 65 && j = 97 && j <= 122)
j = ((j - 97) + 13) % 26 + 97;
ac = (char) j;
}
return String.valueOf(ac);
}
}
回复

使用道具 举报

千问 | 2008-8-15 23:58:00 | 显示全部楼层
高啊,直接给破解源码!


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行