How to Null and Activate Premium WordPress Themes and Plugins [Valuable info]

  • Thread starter Thread starter Deleted member 752298
  • Start date Start date
How to Activate the LeadEngine theme:

Step 1:


Find the following file using a FTP client:

wp-content/plugins/keydesign-addon/theme/admin/views/keydesign-envato-api.php

Step 2:

Search and select the following code on line 8:

Code:
if(isset($_POST['purchase-code'])) {

Step 3:

Add the code with the following code:

Code:
update_option( 'keydesign-verify', 'yes' ); wp_redirect(admin_url( 'admin.php?page=leadengine-dashboard'));
exit;

Step 4:

Use any license key to activate the theme.

Enjoy!
[/ QUOTE]

hi! can this technique be used to reset any topic?
 

No, this only applies for this theme.
 
advise platforms-forums where I can sell already purchased themes and templates, because I have a lot of them!?
 
may I know how to null and activate the eduma theme?
 
Hello The Best one festinger
i Want a help with free theme WordPress Classifieds

Adifier Adforest Classiera

Anyone can help me please.
 
sir can you please null wp-script themes and plugins and i have original copy
 
Hey guys!

I love to contribute to BHW and I would like to share some handy lines of code to make it more easier to activate premium WordPress themes and plugins. To start with, I'd like to share how to null Yoast Premium plugins:

How to Activate Yoast Premium plugins:

Step 1:


Find the following file using a FTP client, such as FileZilla:

wordpress-seo-premium/vendor/yoast/license-manager/class-license-manager.php,

Step 2:

Find the function get_license_status() at line 327:

Code:
public function get_license_status() {
$license_status = $this->get_option( 'status' );
return trim( $license_status );
}

Step 3:

In line 330, change:

Code:
return trim( $license_status );

to:

Code:
return 'valid';

Et voilà: your Yoast Premium plugins will work. :)

More plugins and themes will follow soon.

Stay tuned.

I feel for the author of the plugin if he uses such a way of "protection"... A hint for the plugin maker: partially move the functionality of the plugin to your server, which will check the license towards the customer database. Voilà... your code can not be broken. Just sayin'...
 
Yes, that will work, but here are my 2 cents.

It is leaving out the update functions and all other functions that could make a call to the developer's server. It will not obstruct the plugin work, but:

1. Will try to connect to an external server to check the license and check for updates. Some plugins are programmed to retry many times when an error is found (like no real credentials). This translates to a slower website and it is looked as a bad SEO score for having too many PHP requests to other server(s).

2. Some functions that check connection and license are called multiple times throughout the plugin's other functions. An example is WP Rocket. It has many checks for the license before doing many tasks.

3. Will notify the developers who are using it and in which specific website(s) and IPs. It all will be recorded in their statistics and errors will be eye-catching on that report.

4. Will nag you with the "update available" as soon as an update is rolled in.

5. Some will also nag with other messages like "verify your license".

I really prefer a more silent and faster method of nulling plugins, but that is just me.

"A hint for the plugin maker: partially move the functionality of the plugin to your server, which will check the license towards the customer database."

Yes, some already started doing this. They are really selling a service but through a plugin that really works as a portal (SaaS - Software as a Service) for such a service. Examples are Snip, Ali2Woo, WP Robot, FS Poster, and many others. Like I was explaining to a friend:

"This is not convenient for the developers because they need a fast active server with the capacity to serve many clients (more $ to spend on their side) but many developers are doing this to avoid piracy."

Again, this is just me and the fact that I run my site with 40+ plugins. But for most, putting "valid" in that function will be more than enough.
 
The search feature is your best friend

https://www.blackhatworld.com/seo/finally-its-there-elementor-pro-pre-activated-you-can-use-the-pro-templates.1261625/

You're absolutely right, will be sure to use next time!

Thanks man!
 
Hello,

I bought the wpcanvo plugin, but the vendor no longer provides license keys, so I would like to make the script nulled.

this is code for verification keys i here is the license verification code i think. can you tell me the code to modify? please?

PHP:
<?php
    }

    function run_wpc_theme($old_value, $new_value){
        $old_license_key = $old_value['wpc_license_key'];
        $new_license_key = $new_value['wpc_license_key'];

        if($old_license_key != $new_license_key){
            wpc_run_api($new_license_key);
        }
        else{
            $r = array(
                    'status' => 'fail',
                    'message' => 'Invalid license key.',
                );
            die(json_encode($r));
        }
    }

}


function wpc_run_api($license_key = false){
    if(!$license_key){
        return false;
    }

    $postdata = http_build_query(
        array(
            'license_key' => $license_key,
            'domain' => site_url(),
        )
    );

    $opts = array('http' =>
        array(
            'method'  => 'POST',
            'header'  => 'Content-type: application/x-www-form-urlencoded',
            'content' => $postdata
        )
    );

    $context  = stream_context_create($opts);
    $r = file_get_contents('http://www.yuppythemes.com/wp-content/plugins/wp-licensing-for-theme-and-plugin/ltp-api-activate.php', false, $context);

    $r = json_decode($r, true);

    if($r['status'] == 'ok'){
        wpc_activate_wpc_options();
        add_action( 'admin_notices', 'wpc_api_admin_notice__success' );
    }
    else{
        add_action( 'admin_notices', 'wpc_api_admin_notice__error' );
    }
    die(json_encode($r));
}

function wpc_api_admin_notice__error() {
    $class = 'notice notice-error';
    $message = 'WPCanvo: Invalid license key.';

    echo '<div class="'.$class.'"><p>'.$message.'</p></div>';
}

function wpc_api_admin_notice__success() {
    $class = 'notice notice-success';
    $message = 'WPCanvo: Success!! You theme was activated successfully.';

    echo '<div class="'.$class.'"><p>'.$message.'</p></div>';
}
 
First of all, it looks like this is not the whole file and rather part of it because starting with "<?PHP }" means that the PHP instance was already opened before that part, maybe in another function preceding the code you included.

That file is part of license checking, but there could be other files too.

That file consists of four functions:

#1. function run_wpc_theme($old_value, $new_value)

It basically tells the script that in case there are 2 license codes and such codes are different after comparing them, then use the newer one.

This one can be left alone.

#2. function wpc_run_api($license_key = false)

This function is the one to modify. It calls the API of the developer's server with your credentials to check if the credentials are valid. The API then sends back the info in its response and the function acts accordingly. The parameter "$license_key = false" does not matter. It tells the function that if a license key is not provided when calling the function, then use "false" as default. This will have no effect at all on the needed modification.

The positive response is further below in that same function:

Code:
    if($r['status'] == 'ok'){
        wpc_activate_wpc_options();
        add_action( 'admin_notices', 'wpc_api_admin_notice__success' );
    }

It means that if the credentials are valid, the "status", which is the server response, will be "ok" and then it will execute the two functions inside that conditional statement, one to activate options that are not available before checking the license and the other to notify that the credentials are valid. This is what you need to put right after the function name (right after "function wpc_run_api($license_key = false)"). Like this:

Code:
function wpc_run_api($license_key = false)
        wpc_activate_wpc_options();
        add_action( 'admin_notices', 'wpc_api_admin_notice__success' );
        return;

I added a "return;" to stop it from running any other instructions in that function. So when it is called, it will just reply "Yes all is good to go on" to the plugin and then will return to everything else. No call to the API and no license verification will be executed.

#3 and #4. The other two functions ( function wpc_api_admin_notice__error() and function wpc_api_admin_notice__success() ) can be left alone as those are only to notify either if the credentials were valid or not and as you noticed, we will even use the success one of them in our mod above to notify that "the license is valid".

So bellow is the way I would modify the file:

Code:
<?php
    }

    function run_wpc_theme($old_value, $new_value){
        $old_license_key = $old_value['wpc_license_key'];
        $new_license_key = $new_value['wpc_license_key'];

        if($old_license_key != $new_license_key){
            wpc_run_api($new_license_key);
        }
        else{
            $r = array(
                    'status' => 'fail',
                    'message' => 'Invalid license key.',
                );
            die(json_encode($r));
        }
    }

}


function wpc_run_api($license_key = false){
    wpc_activate_wpc_options();
    add_action( 'admin_notices', 'wpc_api_admin_notice__success' );
    return;

    if(!$license_key){
        return false;
    }

    $postdata = http_build_query(
        array(
            'license_key' => $license_key,
            'domain' => site_url(),
        )
    );

    $opts = array('http' =>
        array(
            'method'  => 'POST',
            'header'  => 'Content-type: application/x-www-form-urlencoded',
            'content' => $postdata
        )
    );

    $context  = stream_context_create($opts);
    $r = file_get_contents('http://www.yuppythemes.com/wp-content/plugins/wp-licensing-for-theme-and-plugin/ltp-api-activate.php', false, $context);

    $r = json_decode($r, true);

    if($r['status'] == 'ok'){
        wpc_activate_wpc_options();
        add_action( 'admin_notices', 'wpc_api_admin_notice__success' );
    }
    else{
        add_action( 'admin_notices', 'wpc_api_admin_notice__error' );
    }
    die(json_encode($r));
}

function wpc_api_admin_notice__error() {
    $class = 'notice notice-error';
    $message = 'WPCanvo: Invalid license key.';

    echo '<div class="'.$class.'"><p>'.$message.'</p></div>';
}

function wpc_api_admin_notice__success() {
    $class = 'notice notice-success';
    $message = 'WPCanvo: Success!! You theme was activated successfully.';

    echo '<div class="'.$class.'"><p>'.$message.'</p></div>';
}

If this does not work, then it means that there are other checks in other files in the plugin. If that happens, checking the whole theme or plugin would be required.

Cheers!
 
Last edited:
Back
Top