Import java.io.*;
Import java.text.*;
Import Java.util.Calendar;
Import java.awt.datatransfer.*;
Public class T {
private void Go () throws Exception {
bufferedreader br = new Bufferedr Eader (New InputStreamReader (system.in));
System.out.println ("Xxxclipse cracker");
System.out.print ("Please Input User ID:");
String userId = Br.readline ();
if (userid.length () = 0)
return;
String serialstring = getserial (userId, "200");
System.out.println ("Serial Code:" + serialstring);
Java.awt.Toolkit.getDefaultToolkit (). Getsystemclipboard (). setcontents (
new StringSelection (serialstring), null);
System.out
println ("Note:the serial code has succefully copied into clipboard!/npress ' Enter ' to exit ... ");
br.readline ();
}
public static void Main (String args[]) throws Exception {
New T (). Go ();
}
public string Getserial (string userId, String licensenum) {
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 = (New StringBuilder ("-")). Append (
(New SimpleDateFormat ("YyMMdd")). Format (Cal.gettime ()). Append ("0"). toString ();
String type = "ye3mp-";
String need = (new StringBuilder (userid.substring (0, 1)). Append (Type). Append ("the"). Append (
Licensenum). Append (Vertime). toString ();
String dx = (new StringBuilder (need))
. Append (
"Decompiling This copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright A CT 1998 (<a href= "Http://www.loc.gov/copyright/legislation/dmca.pdf" target=_blank>http://www.loc.gov/ copyright/legislation/dmca.pdf</a>). Under Section 1204 of the DMCA, penalties range up to a $500,000 fine or up to five years for a-a-a-imprisonment . About it; Pay for a license, avoid prosecution, and feel better about yourself. ")
. Append (UserId). toString ();
int suf = decode (dx);
String code = (new StringBuilder (Need)). Append (string.valueof (SUF)). ToString ();
Return change (code);
}
Private int decode (String s) {
int i = 0;
char ac[] = S.tochararray ();
Int j = 0;
for (int k = Ac.length J < K; J +)
i = * i + ac[j];
return Math.Abs (i);
}
Private String change (string s) {
byte abyte0[] = S.getbytes ();
char ac[] = new Char[s.length ()];
int i = 0;
for (int k = Abyte0.length i < K; i++) {
int j = abyte0[i]; if (j >= && J <=)
j = ((j-48) + 5)% 10 + 48;
Else if (J >= && J <=)
& nbsp j = ((j-65) + 13)% 26 + 65;
Else if (J >= <= && J 122)
& nbsp j = ((j-97) + 13)% 26 + 97;
Ac[i] = (char) j;
}
return string.valueof (AC);
}
}