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

  • Thread starter Thread starter Deleted member 752298
  • Start date Start date
I did not do it at the time because I was busy and eventually forgot about it.

The Fremius class file is the one to modify, not the abstract file. It is around 26,000 lines. That is why I delay these jobs when I am busy.

Just install the plugin and replace the Fremius class file with the one below. There are around 30 modifications in that file. As always, to know what I did, just search for "//#######" in the file.

The file location:
variable-inspector-pro / freemius / includes / class-freemius.php

DL
Code:
https://www.mediafire.com/file/l7oml1e6hfsv3au/class-freemius.zip/file

VT (0/65):
Code:
https://www.virustotal.com/gui/file/386cd46d4c2eae9fc32d55315f398343752eadcd90ab8a35f66e3c086e708b72?nocache=1
 
I did not do it at the time because I was busy and eventually forgot about it.

The Fremius class file is the one to modify, not the abstract file. It is around 26,000 lines. That is why I delay these jobs when I am busy.

Just install the plugin and replace the Fremius class file with the one below. There are around 30 modifications in that file. As always, to know what I did, just search for "//#######" in the file.

The file location:
variable-inspector-pro / freemius / includes / class-freemius.php

DL
Code:
https://www.mediafire.com/file/l7oml1e6hfsv3au/class-freemius.zip/file

VT (0/65):
Code:
https://www.virustotal.com/gui/file/386cd46d4c2eae9fc32d55315f398343752eadcd90ab8a35f66e3c086e708b72?nocache=1
No worries I really appreciate the help, Thank you so much, freemius is such a pain with there must activate before using, this now doesn't need that which is great will this work for any or most freemius based plugins?
 
No worries I really appreciate the help, Thank you so much, freemius is such a pain with there must activate before using, this now doesn't need that which is great will this work for any or most freemius based plugins?

Well, Fremius can be called a "licensing framework" that allows for a trial, or "try before you buy" mode to be integrated into a plugin or theme by developers.

They (Fremius) have a huge number of functions to accommodate different developers' licensing needs. That means that from all the many functions that Fremius has, only a few or a specific group of functions are selected by the developer of a theme or plugin for integration and the rest of the functions just lie there, not being used, taking space and memory.

That being said, to answer your question, Fremius updates existing functions and adds new functions over time. So, if #1: the Fremius version is the same, and #2: the developer used the same functions in the theme or plugin that were used in this plugin, then yes, it will work in that other plugin. As you can see, this must be done on a case-by-case basis.

Moreover, there is a group of functions in the Fremius class that are essential and must be considered in almost any plugin or theme using Fremius when nulling it. An example is "is_registrerd", to which, you just return true. For a list of those functions, I would have to take the time to make it and it would be a matter of searching for them in the Freemius class and modifying them.

Finally, the job I did could probably be done with fewer modifications. It is just that I always like to speed it up any time it is possible. For example, if a function checks if "it is licensed", and then another function checks if "it is registered" but the second depends on the first function, then I just return true because it saves the time of going to another function and fully running it to just answer "true" or "false". As I always say, it might save a few milliseconds, even a few microseconds, but when repeated many times, multiplied by many visitors to the site, it can save one or more seconds in the end.
 
Well, Fremius can be called a "licensing framework" that allows for a trial, or "try before you buy" mode to be integrated into a plugin or theme by developers.

They (Fremius) have a huge number of functions to accommodate different developers' licensing needs. That means that from all the many functions that Fremius has, only a few or a specific group of functions are selected by the developer of a theme or plugin for integration and the rest of the functions just lie there, not being used, taking space and memory.

That being said, to answer your question, Fremius updates existing functions and adds new functions over time. So, if #1: the Fremius version is the same, and #2: the developer used the same functions in the theme or plugin that were used in this plugin, then yes, it will work in that other plugin. As you can see, this must be done on a case-by-case basis.

Moreover, there is a group of functions in the Fremius class that are essential and must be considered in almost any plugin or theme using Fremius when nulling it. An example is "is_registrerd", to which, you just return true. For a list of those functions, I would have to take the time to make it and it would be a matter of searching for them in the Freemius class and modifying them.

Finally, the job I did could probably be done with fewer modifications. It is just that I always like to speed it up any time it is possible. For example, if a function checks if "it is licensed", and then another function checks if "it is registered" but the second depends on the first function, then I just return true because it saves the time of going to another function and fully running it to just answer "true" or "false". As I always say, it might save a few milliseconds, even a few microseconds, but when repeated many times, multiplied by many visitors to the site, it can save one or more seconds in the end.
Thank you I will play with this some more over the weekend see what I can learn, out of interest it works but the only thing I can't do is deactivate without crashing any ideas how to fix that, even if its just pointers thanks again
 
Thank you I will play with this some more over the weekend see what I can learn, out of interest it works but the only thing I can't do is deactivate without crashing any ideas how to fix that, even if its just pointers thanks agai

Checking it...
 
Last edited:
Thank you I will play with this some more over the weekend see what I can learn, out of interest it works but the only thing I can't do is deactivate without crashing any ideas how to fix that, even if its just pointers thanks again

I see, you are right. I did not check the behavior at deactivation.

It is expecting an array at a certain function when deactivating the plugin and giving no value (false) when that happens. The function is in the same Freemius class file, named "get_install_diff_for_api()":

I also did some extra modifications to avoid silent PHP warnings of unused values (sometimes silent warnings, some other times shown in the dashboard). This is all about the Freemius API. Since it is not being used because the plugin has been nulled, I added code to avoid those warnings. A javascript function in line #311 of the file "variable-inspector-pro \ freemius \ templates \ forms \ license-activation.php" had to be modified too, to suppress those PHP warning messages.

After that, deactivation is ok and the server log file is clean from false warning messages. I uploaded the whole nulled plugin.

The same, everything is marked as "//#######".

DL:
Code:
https://www.mediafire.com/file/qi3wi7z289y6zvh/variable-inspector-pro.zip/file

VT (0/65):
Code:
https://www.virustotal.com/gui/file/daf4190d05f84cd53f4a76102dceb23f4bb2eb6ab69dcd54b4eee5d7c89b1a23?nocache=1


Sure, I will check it but a bit later. It is 5:30 AM right now here. I will let you know what I find.

One more little mistake bro, In the previously mentioned Freemius class file, in the latest upload I made I mistakenly put "&&" instead of "??".

In line #23795

This:
Code:
$this->_site->public_key && 'PK12345678' ), //#######

Should be like this:

Code:
$this->_site->public_key ?? 'PK12345678' ), //#######

Sure, I will check it but a bit later. It is 5:30 AM right now here. I will let you know what I find.


Done.

The License is completely bypassed. You would need to test if it is successfully posting to social networks because that part I could not test in my test setup.

I mention this because I have seen social plugins like this with some remote functions in the developer's server that will only work with a license (like a SaaS). But so far, what I saw in the code looks like it is full, so real tests are needed.

There were three files modified (search the "//#######" mark inside the files to find the modifications):

- social-auto-poster -> social-auto-poster.php
- social-auto-poster -> includes -> wpw-auto-poster-misc-functions.php
- social-auto-poster -> includes -> admin -> wpw-auto-poster-licence-activation.php

DL:
Code:
https://www.mediafire.com/file/1v57aidyqq1t11s/social-auto-poster_N.zip/file

VT (0/63):
Code:
https://www.virustotal.com/gui/file/62652dc54e64065ec183c924bd351a4e88bf1e9b3be5726e41aa71f7e5c03693?nocache=1
 
Done.

The License is completely bypassed. You would need to test if it is successfully posting to social networks because that part I could not test in my test setup.

I mention this because I have seen social plugins like this with some remote functions in the developer's server that will only work with a license (like a SaaS). But so far, what I saw in the code looks like it is full, so real tests are needed.

There were three files modified (search the "//#######" mark inside the files to find the modifications):

- social-auto-poster -> social-auto-poster.php
- social-auto-poster -> includes -> wpw-auto-poster-misc-functions.php
- social-auto-poster -> includes -> admin -> wpw-auto-poster-licence-activation.php

DL:
Code:
https://www.mediafire.com/file/1v57aidyqq1t11s/social-auto-poster_N.zip/file

VT (0/63):
Code:
https://www.virustotal.com/gui/file/62652dc54e64065ec183c924bd351a4e88bf1e9b3be5726e41aa71f7e5c03693?nocache=1
That was fast! Your nulling/activation pattern recognition is insane, I'm so envious haha
Thanks a ton, and hope you get some sleep :)
 
I highly recommend not doing so. You're one (or several) steps closer to getting hacked or infected with malware.

Bro, this is done by myself and I am not into hacking anyone. I even provide means to check the modifications I make.

Do you even know what you are talking about? If yes, please tell me the technical details that make your statement true.

Or are you just repeating what other who have not the faintest idea about programming say?
 
Can you help ? The NEW ThemeREX Theme Eventicity, this code will not work?!

$token_data = [ 'user' => '[email protected]', 'purchase_code' => 'L12345678901234567890123456789' ];
update_option( 'cmsmasters_multibank_license_key_status', 'valid' );
update_option( 'cmsmasters_multibank_license_key', 'L12345678901234567890123456789' );
update_option( 'cmsmasters_multibank_token_status', 'valid' );
update_option( 'cmsmasters_multibank_token_data', $token_data );
update_option( 'cmsmasters_multibank_token', 'ABC12345678901234567890123456789' );
 
Can you help ? The NEW ThemeREX Theme Eventicity, this code will not work?!

$token_data = [ 'user' => '[email protected]', 'purchase_code' => 'L12345678901234567890123456789' ];
update_option( 'cmsmasters_multibank_license_key_status', 'valid' );
update_option( 'cmsmasters_multibank_license_key', 'L12345678901234567890123456789' );
update_option( 'cmsmasters_multibank_token_status', 'valid' );
update_option( 'cmsmasters_multibank_token_data', $token_data );
update_option( 'cmsmasters_multibank_token', 'ABC12345678901234567890123456789' );

That's for the Multi Bank theme. Of course, it will not work in Eventicity. Give me a minute and I will try to create a generic activation. If it does not work, then you would need to provide the theme so I can take a look at it.

---

Ok, there you go. Unless they have changed their system, this should work with any ThemeRex theme.

Put the following code:

Code:
$mytheme = get_template();
update_option( 'trx_addons_theme_' . $mytheme . '_activated', true );
update_option( 'purchase_code_' . $mytheme, 'L12345678' );
update_option( 'purchase_code_src_' . $mytheme, 'L12345678' );

In the theme's "function.php" file, right after the description comment at the top (the comment starts with "/**" and ends with "*/").

Again, if you do it right and it still doesn't work, then you must provide the theme to see what has changed.
 
Last edited:
@zilog357 It would be awesome if you could take a look at this one.

Code:
https://www.mediafire.com/file/rikcpu4ccbvo76f/knowall-v1.3.2.zip/file

Code:
https://www.virustotal.com/gui/file/7b3f98a7cef94cd320f403c2ea50f5da06981ea63e1b889feb4063b71e655ab3

thanks in advance
 
Last edited:
That's for the Multi Bank theme. Of course, it will not work in Eventicity. Give me a minute and I will try to create a generic activation. If it does not work, then you would need to provide the theme so I can take a look at it.

---

Ok, there you go. Unless they have changed their system, this should work with any ThemeRex theme.

Put the following code:

Code:
$mytheme = get_template();
update_option( 'trx_addons_theme_' . $mytheme . '_activated', true );
update_option( 'purchase_code_' . $mytheme, 'L12345678' );
update_option( 'purchase_code_src_' . $mytheme, 'L12345678' );

In the theme's "function.php" file, right after the description comment at the top (the comment starts with "/**" and ends with "*/").

Again, if you do it right and it still doesn't work, then you must provide the theme to see what has changed.
Hello @zilog357 Your code is working well in my ThemeRex theme and it displays 'activated'. Tahnk you so much
Is it possible for you to double-check if you have time?...If this theme doesn't contain any hidden codes that impact my website and I don't want any future updates to be automated. Thank you, toy. I am thankful for your effort.

https://www.mediafire.com/file/u1aslb37y02jipw/childy-2024-04-25-17-37-54-utc.zip/file

https://www.virustotal.com/gui/file/d7667332aa04fbda5b2ac88022da4d34e7e33718aee21a95c0746dc7a2db4225
 
@zilog357 It would be awesome if you could take a look at this one.

Code:
https://www.mediafire.com/file/rikcpu4ccbvo76f/knowall-v1.3.2.zip/file

Code:
https://www.virustotal.com/gui/file/7b3f98a7cef94cd320f403c2ea50f5da06981ea63e1b889feb4063b71e655ab3

thanks in advance

I already downloaded the theme. I will check it as soon as I have the time. As soon as I can get some free time today or tomorrow I will work on it.

Hello @zilog357 Your code is working well in my ThemeRex theme and it displays 'activated'. Tahnk you so much
Is it possible for you to double-check if you have time?...If this theme doesn't contain any hidden codes that impact my website and I don't want any future updates to be automated. Thank you, toy. I am thankful for your effort.

https://www.mediafire.com/file/u1aslb37y02jipw/childy-2024-04-25-17-37-54-utc.zip/file

https://www.virustotal.com/gui/file/d7667332aa04fbda5b2ac88022da4d34e7e33718aee21a95c0746dc7a2db4225

Sure, the same as the reply above, as soon as I can accommodate some free time today or tomorrow, I will check it.
 
Back
Top