Logo
My Journal
Blog

Timeline

Blog

How to edit encrypted wordpress theme

The term Base64 refers to a specific MIME content transfer encoding. It is also used as a generic term for any similar encoding scheme that encodes binary data by treating it numerically and translating it into a base 64 representation. The particular choice of base is due to the history of character set encoding: one can choose a set of 64 characters that is both part of the subset common to most encodings, and also printable. This combination leaves the data unlikely to be modified in transit through systems, such as email, which were traditionally not 8-bit clean.

Are you familiar with this code? ( if you tried to use a premium wordpress theme and i believe your familiar with this )

[php]
<?php $Q28E49CAD1FFB2B82FB4D03500950A25D="DQovKg0KRW5jb2RlciA6IE5FVC1URUMgUEhQLUVOQ09ERVIgViAxLjANCldFQiA6IGh0dHA6Ly93d3cubmV0LXRlYy5iaXovDQoqLw0KPz4JCQk8ZGl2IGNsYXNzPSJjbGVhcmVyIj48L2Rpdj4NCgkJPC9kaXY+DQoJPC9kaXY+DQoJPGRpdiBpZD0iZm9vdGVyIj4NCgkJPGRpdiBpZD0iZm9vdGVyLXdyYXBwZXIiPg0KCQkJPGRpdiBpZD0iZm9vdGFkcyI+DQoJCQkJPHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPg0KCQkJCTwhLS0NCgkJCQlnb29nbGVfYWRfY2xpZW50ID0gIjw/cGhwIGluY2x1ZGUgKFRFTVBMQVRFUEFUSCAuICcvYWRzZW5zZS5waHAnKTsgPz4iOw0KCQkJCS8qIDcyOHg5MCwgRm9vdGVyICovDQoJCQkJZ29vZ2xlX2FkX3Nsb3QgPSAiMDg4NjIxNzQ5NiI7DQoJCQkJZ29vZ2xlX2FkX3dpZHRoID0gNzI4Ow0KCQkJCWdvb2dsZV9hZF9oZWlnaHQgPSA5MDsNCgkJCQkvLy0tPg0KCQkJCTwvc2NyaXB0Pg0KCQkJCTxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0IiBzcmM9Imh0dHA6Ly9wYWdlYWQyLmdvb2dsZXN5bmRpY2F0aW9uLmNvbS9wYWdlYWQvc2hvd19hZHMuanMiPjwvc2NyaXB0Pg0KCQkJPC9kaXY+DQoJCQk8cD4NCgkJCQlDb3B5cmlnaHQgJiMxNjk7IDw/cGhwIGVjaG8gZGF0ZSgnWScpOyA/PiA8c3BhbiBjbGFzcz0idXJsIGZuIG9yZyI+PD9waHAgYmxvZ2luZm8oJ25hbWUnKTsgPz48L3NwYW4+LiBUaGVtZSBieSA8YSBocmVmPSJodHRwOi8vdHJvcGljb2RlcnMuY29tLyIgdGl0bGU9IldvcmRQcmVzcyBDb2RlcnMiPldvcmRQcmVzcyBDb2RlcnM8L2E+ICYgPGEgaHJlZj0iaHR0cDovL3d3dy5wYWRkc29sdXRpb25zLmNvbSIgdGl0bGU9IkRhdmFvIENpdHkgV2Vic2l0ZSBEZXNpZ24iID5QYWRkIFNvbHV0aW9uczwvYT4uPGJyIC8+DQoJCQkJSW4gY29sbGFib3JhdGlvbiB3aXRoIDxhIGhyZWY9Imh0dHA6Ly93d3cuZG9nYm9hcmRpbmcuY29tLyIgdGl0bGU9IkRvZyBCb2FyZGluZyI+RG9nIEJvYXJkaW5nPC9hPiwgPGEgaHJlZj0iaHR0cDovL3d3dy5hcmVhY29kZWxvY2F0b3IubmV0LyIgdGl0bGU9IlVTIEFyZWEgQ29kZXMiPlVTIEFyZWEgQ29kZXM8L2E+ICYgPGEgaHJlZj0iaHR0cDovL3d3dy5sb3R0ZXJ5bnVtYmVycy5jb20vZmxvcmlkYS1sb3R0ZXJ5LW51bWJlcnMiIHRpdGxlPSJGbG9yaWRhIExvdHRlcnkiPkZsb3JpZGEgTG90dGVyeTwvYT4uDQoJCQk8L3A+DQoJCQk8L2Rpdj4NCgk8L2Rpdj4NCjwvZGl2Pg0KPC9ib2R5Pg0KDQo8L2h0bWw+IA==";eval(base64_decode($Q28E49CAD1FFB2B82FB4D03500950A25D));?>
[/php]

it is protected with base64_decode encryption, ( mostly on theme footers so you can remove owner’s credits )

Step 1
Open index.php
Find the include code for the footer. Normally, the footer include code shows like this:

[php]<?php get_footer(); ?>[/php]

Step 2
Add this comment code on the top and bottom of the footer code:

[php]
<!–Footer code starts here–>

<?php get_footer(); ?>

<!–Footer code ends here–>
[/php]

Save the file and upload it to the server.

Step 3
Load the theme in a browser. View the source code by clicking
View -> Source (If you view in IE) or
Ctrl + U (If you view in Firefox)

Step 4
The source code in between

[php]<!–Footer code starts here–>[/php]

and

[php]<!–Footer code ends here–>[/php]

is the source code for the footer.

Now, open footer.php and replace the encrypted code with the actual source code.

You can then start to modify the footer in anyway you want.

Leave A Comment