[Guide] How to unlock unlimited premium Wordfence Security license on any version

simis0702

Active member
Oct 15, 2020
157
32
28
hello guys, what is the difference between this method and the nulled version of wordfence?
 

Syed92

Active member
Nov 17, 2018
310
153
43
  1. Download the official Wordfence security plugin from: https://en-ca.wordpress.org/plugins/wordfence/
  2. Upload the plugin to your wordpress but don't activate it
  3. Next, in your wordpress main dashboard head to Plugins -> Plugin Editor
  4. In the "Select plugin to edit" bar choose Wordfence Security and press Select
  5. Under the "lib file section" select the wordfenceClass.php file
  6. Press ctrl+f and paste this:
if (!WFWAF_SUBDIRECTORY_INSTALL && $waf = wfWAF::getInstance()) {

You should see:

$updateCountries = false;
if (!WFWAF_SUBDIRECTORY_INSTALL && $waf = wfWAF::getInstance()) {
$homeurl = wfUtils::wpHomeURL();

$siteurl = wfUtils::wpSiteURL();


Now right under it paste this in:

wfConfig::set('isPaid', 1);
wfConfig::set('keyType', wfAPI::KEY_TYPE_PAID_CURRENT);
wfConfig::set('premiumNextRenew', time()+31536000);

So the code should look like this:

$updateCountries = false;
if (!WFWAF_SUBDIRECTORY_INSTALL && $waf = wfWAF::getInstance()) {
$homeurl = wfUtils::wpHomeURL();
$siteurl = wfUtils::wpSiteURL();


wfConfig::set('isPaid', 1);
wfConfig::set('keyType', wfAPI::KEY_TYPE_PAID_CURRENT);

wfConfig::set('premiumNextRenew', time()+31536000);

7. Save the file, then activate WordFence plugin, you should have unlimited premium license! It says "renew in 365 days" but you will notice that this number doesn't go down ;)

If you can't find the code, you can export the file, edit using notepad++ and then reupload or do something similar. You can also use FTP application to do this method.

Like for more "exploits" like this!


"Amazing piece of code"
Many thanks for sharing. Your knowledge pleased many respected people here.

Best Regards !
Syed
 

caguendeu

New member
Feb 6, 2021
1
4
3
  1. Download the official Wordfence security plugin from: https://en-ca.wordpress.org/plugins/wordfence/
  2. Upload the plugin to your wordpress but don't activate it
  3. ...
Thanks a lot for this, @eliteshades, you rock!

We don't need to modify the plugin code. Use the following as a Must Use plugin (drop the php file inside wp-content/mu-plugins) and forget about it :)

Code:
<?php
add_action('plugins_loaded', function(){
    if( !class_exists('wfConfig') ) return;
    wfConfig::set('isPaid', 1);
    wfConfig::set('keyType', wfAPI::KEY_TYPE_PAID_CURRENT);
    wfConfig::set('premiumNextRenew', time()+31536000);   
}, 99);
 

NullMaster

Well-known member
Null Master
Trusted Uploader
Jul 25, 2018
12,058
22,063
120
Thanks a lot for this, @eliteshades, you rock!

We don't need to modify the plugin code. Use the following as a Must Use plugin (drop the php file inside wp-content/mu-plugins) and forget about it :)

Code:
<?php
add_action('plugins_loaded', function(){
    if( !class_exists('wfConfig') ) return;
    wfConfig::set('isPaid', 1);
    wfConfig::set('keyType', wfAPI::KEY_TYPE_PAID_CURRENT);
    wfConfig::set('premiumNextRenew', time()+31536000);  
}, 99);
missing information.
 

xantor

Member
Jan 4, 2021
87
74
18
Thanks a lot for this, @eliteshades, you rock!

We don't need to modify the plugin code. Use the following as a Must Use plugin (drop the php file inside wp-content/mu-plugins) and forget about it :)

Code:
<?php
add_action('plugins_loaded', function(){
    if( !class_exists('wfConfig') ) return;
    wfConfig::set('isPaid', 1);
    wfConfig::set('keyType', wfAPI::KEY_TYPE_PAID_CURRENT);
    wfConfig::set('premiumNextRenew', time()+31536000);  
}, 99);

Thanks!!!
I checked and it works!!
Just install the Code Snippets plugin, add the code as a snippet, and you are set, Word fence will be activated

Code:
add_action('plugins_loaded', function(){
    if( !class_exists('wfConfig') ) return;
    wfConfig::set('isPaid', 1);
    wfConfig::set('keyType', wfAPI::KEY_TYPE_PAID_CURRENT);
    wfConfig::set('premiumNextRenew', time()+31536000);  
}, 99);
 

r0manas

Well-known member
Feb 5, 2021
337
470
63
In bed 😂
Let me know if this exploit still works on newest version of wordfence, mine still says renew in 364 days
Just tried on the newest version and it works perfectly.
Thank You for sharing! We all 💚 babiato 💜
wSIH0yk.png
 

BuxB

New member
Feb 18, 2021
11
1
3
From CJ Chamberland over at GPLDL - WORDFENCE (not sure if I may link to his posting over there so I won't):
Just so you know, setting the values in the code does nothing but let you “think” you have premium. A valid premium key is required in order to get the updated WAF (Web Application Firewall) rules and Malware signatures. If one is not provided, you still only get the free even though the dashboard says you’re getting premium.
How can we tell how old WAF rules and Malware signatures are? This needs to be investigated. Please share your findings.
 
Last edited:
  • Like
Reactions: r0manas

xantor

Member
Jan 4, 2021
87
74
18
From CJ Chamberland over at GPLDL - WORDFENCE (not sure if I may link to his posting over there so I won't):

How can we tell how old WAF rules and malware signatures are? This needs to be investigated. Please share your findings.

Let's clarify this issue, not just for WordFence but for any plugin or service that requires an API key, email or specific credentials to update or download certain features. There is no way to null that!!!

You can null the plugin or theme to bypass the plugin security for the code that resides in your server, but you can't do anything for the part that is not on your server. That is why the elementor nulling, for example, requires that all templates be included with the nulled plugin, because the service will not let you download the templates without a valid license.

In this case, we would have to find a way to download the rules and add them to the plugin manually, but there is no way to update the rules just from nulling the plugin.

You are right that in order to solve this problem we need to investigate how the rules are updated. I don't use wordfence, but if someone is willing to investigate and find a way to download the specific files for the rule updates I could try to find away to merge and update them.
 
Last edited:
  • Like
Reactions: pitza and smalok

BuxB

New member
Feb 18, 2021
11
1
3
It's only one file. This forum allows attaching of zipped files, so simply download and open the attachment :)
 

Attachments

  • rules.php.zip
    34.9 KB · Views: 8

BuxB

New member
Feb 18, 2021
11
1
3
yep, busy trying to figure that out right now. My guess is in the mysql db
 

Forum statistics

Threads
69,229
Messages
908,458
Members
237,126
Latest member
skzh6210

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu