• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

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

  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!
🤩🤩 Worked like Charm .. Thanks Buddy!
 
I started getting this in the scan, will the plugin work fine even after knowing it got nulled?
 

Attachments

  • Screenshot 2021-08-02 172646.png
    Screenshot 2021-08-02 172646.png
    96.2 KB · Views: 84
Do I have to edit the wordfenceClass.php file each time after the new update?
 
Do I have to edit the wordfenceClass.php file each time after the new update?
Yes.. you have to.. On update the file is replaced by a new file that does not contain this hack.. thus hack needs to be "re-installed" :)
 
Dont know if anyone has a way to automate this process unfortunately
Create a new file wp-content/mu-plugins/wordfence.php, put the content in it automatically, so you don't have to change the plugin every time
PHP:
<?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);
 
Create a new file wp-content/mu-plugins/wordfence.php, put the content in it automatically, so you don't have to change the plugin every time
PHP:
<?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);
Nice solution
 
  • Like
Reactions: Jamacart
Create a new file wp-content/mu-plugins/wordfence.php, put the content in it automatically, so you don't have to change the plugin every time
PHP:
<?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);
Is there any way to make wordfence NOT scan this file as it report it back as malicious (detecting it as nulled version). I haven't been able to locate a setting to have the scan ignoring a specific folder.. any advice?

-
Found.. now it reports no error even though it's nulled. :)
 
Last edited:
Create a new file wp-content/mu-plugins/wordfence.php, put the content in it automatically, so you don't have to change the plugin every time
PHP:
<?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);
This still works on the latest version of wordfence Version 7.5.7
 

Attachments

  • Wordfence Dashboard ‹ Open Gym Club — WordPress - Opera 2022-01-26 12.19.47 2022-01-26 12.19.58.png
    Wordfence Dashboard ‹ Open Gym Club — WordPress - Opera 2022-01-26 12.19.47 2022-01-26 12.19.58.png
    34.3 KB · Views: 8
  • Like
Reactions: Happy Jack
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock