New Ideas for Java cracking

Source: Internet
Author: User

A few days ago, I saw a plug-in for XML editing on the Internet, which is quite good. But the Pro version must be registered. The download is good and has many functions. The most important thing is that it can be used in eclipse. I have used QQ in eclipse now.

I decided to crack it. After finding the licensedialog, I learned that the RSA algorithm was used for a long time. I saw more than bits on the Internet last night, and there was almost no possibility of cracking. Decided to give up. Find another method.

There is a section in baseeditor. Class
If (fpro & config. Lite)
{
Final display = xmlplugin. getdefault (). getworkbench (). getactiveworkbenchwindow (). getshell (). getdisplay ();
Final baseeditor editor = this;
Thread thread = new thread (New runnable (){

Public void run ()
{
Synchronized (this)
{
Try
{
Wait (1000l );
}
Catch (interruptedexception _ ex ){}
}
Display. asyncexec (editor. New runnable (){

Public void run ()
{
Okdialog = new okdialog ("License reminder", "Sorry, this feature requires a pro license .");
Okdialog. open ();
Versionaction. promptforlicense ();
Iworkbenchpage = xmlplugin. getdefault (). getworkbench (). getactiveworkbenchwindow (). getactivepage ();
Iworkbenchpage. closeeditor (Editor, false );
}

// Javaclassfileoutputexception: Invalid index accessing method local variables table of <init>
});
}

});
Thread. Start ();

Fpro must be true. config. Lite cannot make it true. See how to write config.

Package com. objfac. xmleditor;

Import java. Lang. Reflect. field;
Import java. util. iterator;
Import java. util. Collections list;

// Referenced classes of package com. objfac. xmleditor:
// Xmlplugin

Public class config
{
/* Member class not found */
Class configlistener {}

Public static final string version = "2.0.11 ";
Public static final string Delta = "0 ";
Public static final string eclipse = "e3.0m9 ";
Public static final string SKU = "xp2.0.11m9 ";
Public static Boolean lite = false;
Public static final Boolean Frozen = false;
Public static final Boolean Beta = false;
Public static final Boolean schema_pool = true;
Public static final Boolean debug_dependency_manager = false;
Private Static referlist listeners;

Public config ()
{
}

Public static void set (int I)
{
Try
{
Field field = com. objfac. xmleditor. config. Class. getdeclaredfield ("Lite ");
Field. Set (null, I <1? (Object) (Boolean. False): (object) (Boolean. True )));
Policylisteners ();
}
Catch (exception)
{
Xmlplugin. Log (exception );
}
}

Public static void add (configlistener)
{
If (listeners = NULL)
Listeners = new queue list ();
Listeners. Add (configlistener );
}

Private Static void policylisteners ()
{
If (listeners = NULL)
Return;
For (iterator = listeners. iterator (); iterator. hasnext ();)
Try
{
Configlistener = (configlistener) iterator. Next ();
Configlistener. configchanged ();
}
Catch (exception)
{
Xmlplugin. Log (exception );
}

}

}
Set public static Boolean Lite to true first
Public static Boolean lite = false

Then field. Set (null, I <1? (Object) (Boolean. False): (object) (Boolean. True )));
Changed to field. Set (null, I <1? (Object) (Boolean. False): (object) (Boolean. False )));

When eclipse is started, all restrictions are removed.

Alas, it seems that Java software protection is really a problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.