• Nullsto Rules must be read before making a post, otherwise you will get permanent warning points or a permanent ban.

    Nullsto Forum provides CLEAN and SAFE resources. You can use them for development and testing if you are on Windows and have an antivirus that alerts you about a possible infection: It is a false positive since every script is double checked by our experts. While downloading a resource, we recommend that you add Nullsto to your trusted sites/sources or temporarily disable your antivirus. "Enjoy your presence on Nullsto"

Tricks How to null shortcodes ultimate extra?

Kundra

Be a part of Nullsto's Growth ;)
Staff member
Moderator
Nullsto Lover
GiveAway Master
Trusted Uploader
Joined
Sep 16, 2022
Messages
4,219
Reaction score
6,568
Points
193
ADD-ON: Shortcodes Ultimate Extra v1.8.2 (6 files modified):

FILE1:
shortcodes-ultimate-extra\includes\class-shortcodes-ultimate-extra-deactivator.php
LINE: #29
DONE:
(avoid licensing server calls for a license that is fake but we all know is valid, lol)

Code:
Changed from:private static function deactivate_license_key() {To:private static function deactivate_license_key() { return;

FILE2: shortcodes-ultimate-extra\includes\class-shortcodes-ultimate-extra-activator.php
LINE: #33
DONE:
(this is the value for the fake license key)

Code:
changed
'value'    => '',

To:
'value'    => 'L12345678',

FILE3: shortcodes-ultimate-extra\admin\partials\settings\fields\license-key.php
LINE: #3
DONE:

(just entered the fake license key value as a placeholder for the form)

Code:
changed
<input type="text" name="<?php echo esc_attr( $data['id'] ); ?>" id="<?php echo esc_attr( $data['id'] ); ?>" value="" class="regular-text" placeholder="XXXX-XXXX-XXXX-XXXX" data-key="<?php echo esc_attr( get_option( $data['id'], '' ) ); ?>" data-key-masked="<?php echo esc_attr( $this->mask_license_key( get_option( $data['id'], '' ) ) ); ?>">

To:
<input type="text" name="<?php echo esc_attr( $data['id'] ); ?>" id="<?php echo esc_attr( $data['id'] ); ?>" value="L12345678" class="regular-text" placeholder="XXXX-XXXX-XXXX-XXXX" data-key="<?php echo esc_attr( get_option( $data['id'], '' ) ); ?>" data-key-masked="<?php echo esc_attr( $this->mask_license_key( get_option( $data['id'], '' ) ) ); ?>">

FILE4: shortcodes-ultimate-extra\admin\class-shortcodes-ultimate-extra-settings.php
LINE: #250
DONE:
(inserted fake license key)

Code:
changed
public function sanitize_license_key( $value ) {

To:
public function sanitize_license_key( $value ) { return 'L12345678';

LINE: #334
DONE:
(forced the "all ok" code when checking license)

Code:
changed
private function remote_activate_license_key( $key ) {

To:
private function remote_activate_license_key( $key ) { return 'activated-202';


LINE: #373
DONE:
(forced the "all ok" code when checking license)

Code:
changed
private function remote_deactivate_license_key( $key ) {

To:
private function remote_deactivate_license_key( $key ) { return 'deactivated-202';

LINE: #413
DONE:
(made fake license valid (of course it is valid xD) )

Code:
changed
private function is_valid_license_key( $key ) {

To:
private function is_valid_license_key( $key ) { return true;

LINE #456
DONE:
(show fake license without mask (asterisks) )


Code:
changed
public function mask_license_key( $value ) {

To:
public function mask_license_key( $value ) { return $value;

FILE5: shortcodes-ultimate-extra\admin\class-shortcodes-ultimate-addon-updater.php
LINE: #28
DONE:
(returns a blank address so an update is not downloaded (if downloaded, nulling job will be overwritten))

Code:
changed
public function validate_license_before_updating( $update ) {

To:
public function validate_license_before_updating( $update ) { return '';

LINE: #70
DONE:
(force logic to "true" about the license being valid and activated)


Code:
changed
private function is_license_activated() {

To:
private function is_license_activated() { return true;

FILE6: shortcodes-ultimate-extra\admin\class-shortcodes-ultimate-addon-license-notice.php
LINE: #103
DONE:
(force logic to "true" about the license being valid and activated)

Code:
changed
private function is_license_activated() {

To:
private function is_license_activated() { return true;

All three Add-Ons are similar, so it will be repetitive to put the process done to the other two. Basically, the functions we are looking to modify in these Add-ons are:

-is_valid_license_key()
-is_license_activated()
-remote_activate_license_key()
-remote_deactivate_license_key()
-deactivate_license_key()

Also, if you check the modified files, you will see a "//#######" (double forward-slash with 7 hash or "pound" signs). The double forward slash is one of the PHP's comment symbols, which means that everything after the "//" is ignored in PHP. I just use it to keep track of the changes I make.

Cheers!
 
Last edited:
Back
Top