Step:
1. Create a Java Project of any name
2, in the project to establish a name Myeclipsegen java file (Myeclipsegen.java)
3, run the following code, will appear in the console "please input register name:", enter any name, return to generate serial number
4. Click Window→preferences→myeclipse→subscription in the MyEclipse menu and click "Enter Subscription" on the right.
5. Enter the name of the 3rd step in the pop-up box subscriber, and enter the serial number generated in the 3rd step in subscription code.
Code:
1 Packagecom.qcf.test;2 3 ImportJava.io.BufferedReader;4 Importjava.io.IOException;5 ImportJava.io.InputStreamReader;6 Public classMyeclipsegen {7 8 Private Static FinalString LL = "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" five years imprisonment for a first offense . Think about it; Pay for a license, avoid prosecution, and feel better about yourself. ";9 Ten Publicstring Getserial (String userId, String licensenum) { One AJava.util.Calendar cal =java.util.Calendar.getInstance (); -Cal.add (1, 3); -Cal.add (6,-1); theJava.text.NumberFormat NF =NewJava.text.DecimalFormat ("000"); -Licensenum =Nf.format (integer.valueof (Licensenum)); -String Vertime =NewStringBuilder ("-"). Append ( - NewJava.text.SimpleDateFormat ("YyMMdd"). Format (Cal.gettime ())) +. Append ("0"). toString (); -String type = "ye3mp-"; +String need =NewStringBuilder (userid.substring (0, 1) . Append (type) A. Append ("300"). Append (Licensenum). Append (Vertime). toString (); atString dx =NewStringBuilder (Need). Append (LL). Append (userId) - . toString (); - intSuf = This. Decode (DX); -String Code =NewStringBuilder (Need). Append (string.valueof (SUF)) - . toString (); - return This. Change (code); in } - Private intDecode (String s) { to inti; + Char[] AC; - intJ; the intK; *i = 0; $AC =S.tochararray ();Panax Notoginsengj = 0; -K =ac.length; the while(J <k) { +i = (* i) +Ac[j]; AJ + +; the } + returnMath.Abs (i); - } $ Privatestring Change (string s) { $ byte[] abyte0; - Char[] AC; - inti; the intK; - intJ;WuyiABYTE0 =s.getbytes (); theAC =New Char[S.length ()]; -i = 0; WuK =abyte0.length; - while(I <k) { Aboutj =Abyte0[i]; $ if((J >=) && (J <= 57)) { -j = ((((j-48) + 5)% 10) + 48; -}Else if((J >=) && (J <= 90)) { -j = ((((j-65) + 13)% 26) + 65; A}Else if(J >= && (J <= 122))) { +j = ((((j-97) + 13)% 26) + 97; the } -Ac[i] = (Char) J; $i++; the } the returnstring.valueof (AC); the } the PublicMyeclipsegen () { - Super(); in } the Public Static voidMain (string[] args) { the Try { AboutSYSTEM.OUT.PRINTLN ("Please input register name:"); theBufferedReader reader =NewBufferedReader (NewInputStreamReader ( the system.in)); theString userId =NULL; +UserId =reader.readline (); -Myeclipsegen Myeclipsegen =NewMyeclipsegen (); theString res = myeclipsegen.getserial (userId, "5");BayiSystem.out.println ("Serial:" +res); the reader.readline (); the}Catch(IOException ex) { - } - } the}
View Code
MyEclipse8.5 Hack method