How can i nulled this code?

nullid

Active member
Trusted Uploader
Dec 18, 2019
228
82
28
Somewhere from ASIA
shoppy.gg
Hello pro/master, how can i nulled this code? im trying to learn.
@Tomz @freenulled @NullMaster


PHP:
<?php
/**
 * Goodluck license classes
 * @package Goodluck/inc
 * @author Goodluck
 */

class Goodluck_License {

    private $server = 'https://Goodluck.id/';

    private $source = '';

    private $credential = array(
        'code' => '',
        'email' => '',
        'pass' => '',
        'check' => false,
    );

    private $data = array(
        'status' => 'INACTIVE',
        'message' => '',
        'domain' => '',
        'code' => '',
    );

    /**
     * construction
     *
     * @since    1.0.0
     */
    public function __construct() {

        $data = get_option('Goodluck_license'); return false;
        if( $data && is_array($data)){
            $this->data = wp_parse_args($data, $this->data);
        }

    }

    /**
     * set license credential
     * @param [type] $code [description]
     */
    public function set_credential($credential){
        $credential = (array) $credential;
        $cred['code']    = isset($credential['code']) ? sanitize_text_field($credential['code']) : '';
        $cred['email']   = isset($credential['email']) ? sanitize_email($credential['email']) : '';
        $cred['pass']    = isset($credential['pass']) ? sanitize_text_field($credential['pass']) : '';
        $cred['request'] = isset($credential['request']) ? $credential['request'] : 'register';
        $this->credential = wp_parse_args($cred, $this->credential);
        return $this;
    }

    /**
     * connect to server
     * @param  string $slug [description]
     * @return [type]       [description]
     */
    public function connect(){

        $vars = array(
            'website' => site_url(),
            'time' => strtotime('now'),
        );

        if( $this->credential['code'] ){

            if( $this->credential['request'] == 'check' ){
                $this->server = $this->server .'/sejoli-validate-license';

                $vars['license'] = $this->credential['code'];
                $vars['host'] = preg_replace("(^https?://)", "", site_url() );

                $curl = wp_remote_get(add_query_arg($vars, $this->server));

            }else if( $this->credential['request'] == 'delete' ){
                $this->server = $this->server .'/sejoli-delete-license';

                $curl = wp_remote_post(
                    add_query_arg($vars, $this->server),
                    array(
                        'body' => array(
                            'string'     => preg_replace("(^https?://)", "", site_url() ),
                            'license'    => $this->credential['code'],
                            'user_email' => $this->credential['email'],
                            'user_pass'  => $this->credential['pass'],
                        ),
                        'timeout' => 120,
                    )
                );
            }else{
                $this->server = $this->server .'/sejoli-license';

                $curl = wp_remote_post(
                    add_query_arg($vars, $this->server),
                    array(
                        'body' => array(
                            'string'     => preg_replace("(^https?://)", "", site_url() ),
                            'license'    => $this->credential['code'],
                            'user_email' => $this->credential['email'],
                            'user_pass'  => $this->credential['pass'],
                        ),
                        'timeout' => 120,
                    )
                );
            }

            if( $this->credential['request'] == 'delete' ){

                if( is_wp_error($curl) ){
                    $this->data['status'] = 'UNCONNECTED';
                    $this->data['message'] = $curl->get_error_message();
                }else{
                    $data = json_decode(wp_remote_retrieve_body($curl), true);

                    $this->data['status'] = $data['valid'] ? 'DELETED' : 'FAILED';
                    $this->data['message'] = isset($data['message']) ? sanitize_text_field($data['message']) : '';
                    if( $this->data['status'] == 'DELETED' ){
                        delete_option('Goodluck_license');
                        wp_cache_delete('Goodluck_license', 'options' );
                        delete_transient('d64866e326d996Goodlucker');
                        $this->data['code'] = '';
                    }
                }

            }else{

                if( is_wp_error($curl) ){
                    $this->data['status'] = 'INACTIVE';
                    $this->data['message'] = $curl->get_error_message();
                    set_transient('d64866e326d996Goodlucker',$this->data,1 * DAY_IN_SECONDS);
                }else{
                    $data = json_decode(wp_remote_retrieve_body($curl), true);

                    $this->data['status'] = $data['valid'] ? 'ACTIVE' : 'INACTIVE';
                    $this->data['message'] = isset($data['messages'][0]) ? sanitize_text_field($data['messages'][0]) : '';
                    $this->data['domain'] = preg_replace("(^https?://)", "", site_url() );
                    delete_option('Goodluck_license');
                    wp_cache_delete('Goodluck_license', 'options' );
                    if( $this->data['status'] == 'ACTIVE' ){
                        $this->data['code'] = $this->credential['code'];
                        update_option('Goodluck_license', $this->data);
                        set_transient('d64866e326d996Goodlucker',$this->data,10 * DAY_IN_SECONDS);
                    }
                }
            }
        }
    }

    /**
     * return license data
     * @return [type] [description]
     */
    public function data(){

        return $this->data;
    }

}
 

Danz

Well-known member
Trusted Seller
Trusted Uploader
Aug 5, 2018
520
1,172
93
Manila, Singapore, Dubai
how to do it? can you help me? @Danz

need full source,
The easy way, Track changes! need working code to know what changes the activation does,
The medium way, MITM local server which replicate the easy way above.
The hard way, better testing on local server through php coding.

Skilled nuller can relate to previous experience since most licensing are same and do a good guess though.

Those are the ways for all nulling
 

kudaliar331

Active member
Trusted Seller
Feb 1, 2019
157
101
43
Hello pro/master, how can i nulled this code? im trying to learn.
@Tomz @freenulled @NullMaster


PHP:
<?php
/**
* Goodluck license classes
* @package Goodluck/inc
* @author Goodluck
*/

class Goodluck_License {

    private $server = 'https://Goodluck.id/';

    private $source = '';

    private $credential = array(
        'code' => '',
        'email' => '',
        'pass' => '',
        'check' => false,
    );

    private $data = array(
        'status' => 'INACTIVE',
        'message' => '',
        'domain' => '',
        'code' => '',
    );

    /**
     * construction
     *
     * @since    1.0.0
     */
    public function __construct() {

        $data = get_option('Goodluck_license'); return false;
        if( $data && is_array($data)){
            $this->data = wp_parse_args($data, $this->data);
        }

    }

    /**
     * set license credential
     * @param [type] $code [description]
     */
    public function set_credential($credential){
        $credential = (array) $credential;
        $cred['code']    = isset($credential['code']) ? sanitize_text_field($credential['code']) : '';
        $cred['email']   = isset($credential['email']) ? sanitize_email($credential['email']) : '';
        $cred['pass']    = isset($credential['pass']) ? sanitize_text_field($credential['pass']) : '';
        $cred['request'] = isset($credential['request']) ? $credential['request'] : 'register';
        $this->credential = wp_parse_args($cred, $this->credential);
        return $this;
    }

    /**
     * connect to server
     * @param  string $slug [description]
     * @return [type]       [description]
     */
    public function connect(){

        $vars = array(
            'website' => site_url(),
            'time' => strtotime('now'),
        );

        if( $this->credential['code'] ){

            if( $this->credential['request'] == 'check' ){
                $this->server = $this->server .'/sejoli-validate-license';

                $vars['license'] = $this->credential['code'];
                $vars['host'] = preg_replace("(^https?://)", "", site_url() );

                $curl = wp_remote_get(add_query_arg($vars, $this->server));

            }else if( $this->credential['request'] == 'delete' ){
                $this->server = $this->server .'/sejoli-delete-license';

                $curl = wp_remote_post(
                    add_query_arg($vars, $this->server),
                    array(
                        'body' => array(
                            'string'     => preg_replace("(^https?://)", "", site_url() ),
                            'license'    => $this->credential['code'],
                            'user_email' => $this->credential['email'],
                            'user_pass'  => $this->credential['pass'],
                        ),
                        'timeout' => 120,
                    )
                );
            }else{
                $this->server = $this->server .'/sejoli-license';

                $curl = wp_remote_post(
                    add_query_arg($vars, $this->server),
                    array(
                        'body' => array(
                            'string'     => preg_replace("(^https?://)", "", site_url() ),
                            'license'    => $this->credential['code'],
                            'user_email' => $this->credential['email'],
                            'user_pass'  => $this->credential['pass'],
                        ),
                        'timeout' => 120,
                    )
                );
            }

            if( $this->credential['request'] == 'delete' ){

                if( is_wp_error($curl) ){
                    $this->data['status'] = 'UNCONNECTED';
                    $this->data['message'] = $curl->get_error_message();
                }else{
                    $data = json_decode(wp_remote_retrieve_body($curl), true);

                    $this->data['status'] = $data['valid'] ? 'DELETED' : 'FAILED';
                    $this->data['message'] = isset($data['message']) ? sanitize_text_field($data['message']) : '';
                    if( $this->data['status'] == 'DELETED' ){
                        delete_option('Goodluck_license');
                        wp_cache_delete('Goodluck_license', 'options' );
                        delete_transient('d64866e326d996Goodlucker');
                        $this->data['code'] = '';
                    }
                }

            }else{

                if( is_wp_error($curl) ){
                    $this->data['status'] = 'INACTIVE';
                    $this->data['message'] = $curl->get_error_message();
                    set_transient('d64866e326d996Goodlucker',$this->data,1 * DAY_IN_SECONDS);
                }else{
                    $data = json_decode(wp_remote_retrieve_body($curl), true);

                    $this->data['status'] = $data['valid'] ? 'ACTIVE' : 'INACTIVE';
                    $this->data['message'] = isset($data['messages'][0]) ? sanitize_text_field($data['messages'][0]) : '';
                    $this->data['domain'] = preg_replace("(^https?://)", "", site_url() );
                    delete_option('Goodluck_license');
                    wp_cache_delete('Goodluck_license', 'options' );
                    if( $this->data['status'] == 'ACTIVE' ){
                        $this->data['code'] = $this->credential['code'];
                        update_option('Goodluck_license', $this->data);
                        set_transient('d64866e326d996Goodlucker',$this->data,10 * DAY_IN_SECONDS);
                    }
                }
            }
        }
    }

    /**
     * return license data
     * @return [type] [description]
     */
    public function data(){

        return $this->data;
    }

}
Please share full code, I will help you.
Kirim aja kesini om, nanti dibantu kok
 

Forum statistics

Threads
69,485
Messages
909,975
Members
239,842
Latest member
AL3K0

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