WordPress Help With Encrypted Code in Theme

9 replies
  • WEB DESIGN
  • |
I posted this earlier in the programming section but didn't get any
responses. So I thought someone here could help.

I spent a few hours on this but couldn't get it to work.

I came across a free WP theme that I would like to try.

However, it has some encrypted code in the footer.

I was able to decode it but am having problems putting the
decrypted code together. Syntax errors; I don't know the
proper format.

It screws the footer up.

Also, the decrypted code looks safe but I'm not 100% sure.

Anyway, I will post it here.

The complete footer page is as follows:

<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
?>
<!-- Footer -->
<?php $blog_title = get_bloginfo('name'); ?>
<?php

$footerprint = base64_decode("PGRpdiBpZD0iZm9vdGVyIj4KICA8ZGl2IGlkPSJmb290ZXJkYX JrIj4KICAgIDxwPgogICAgICA8c2NyaXB0IHR5cGU9InRleHQv amF2YXNjcmlwdCIgbGFuZ3VhZ2U9IkphdmFTY3JpcHQiPjwhLS 0KCnZhciB0b2RheSA9IG5ldyBEYXRlKCk7Cgpkb2N1bWVudC53 cml0ZSh0b2RheS5nZXRGdWxsWWVhcigpKTsKCi8vLS0+PC9zY3 JpcHQ+ICZjb3B5Ow==")." ".$blog_title.base64_decode

("IDxwPlBvd2VyZWQgYnkgPGEgaHJlZj0iaHR0cDovL21hdHRzbW Fya2V0aW5nYmxvZy5jb20iPkFmZmlsaWF0ZSBNYXJrZXRpbmcg QmxvZzwvYT48L3A+CiAgPC9kaXY+CjwvZGl2Pgo8IS0tIGZvb3 RlciBjbG9zZSAtLT4KPGRpdiBjbGFzcz0iY2xlYXJlciI+PC9k aXY+CjxkaXYgaWQ9ImNyZWRpdCI+IDxzcGFuPjwvc3Bhbj4gPC 9kaXY+CjwvZGl2Pgo8IS0tIEVuZCBGb290ZXIgLS0+CjwvZGl2 Pgo8IS0tIHdyYXAgY2xvc2UgLS0+CjwvZGl2Pgo8IS0tIHNoYW RvdyBjbG9zZSAtLT4KPC9kaXY+CjwvZGl2Pgo8IS0tIGJnd3Jh cHBlciBjbG9zZSAtLT4KPC9ib2R5PjwvaHRtbD4=");
echo $footerprint;
?>


For the section of code in red I got the following; once decrypted:

<div id="footer">
<div id="footerdark">
<p>
<script type="text/javascript" language="JavaScript"><!--

var today = new Date();

document.write(today.getFullYear());

//--></script> &copy;

And this is the result for the code highlighted in blue:

<p>Powered by <a href="http://mattsmarketingblog.com">Affiliate Marketing Blog</a></p>
</div>
</div>
<!-- footer close -->
<div class="clearer"></div>
<div id="credit"> <span></span> </div>
</div>
<!-- End Footer -->
</div>
<!-- wrap close -->
</div>
<!-- shadow close -->
</div>
</div>
<!-- bgwrapper close -->
#code #encrypted #theme #wordpress
  • Profile picture of the author yukon
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[2634240].message }}
    • Profile picture of the author K. Rondo
      It doesn't have a name but a guy named Matt Carter provides it
      as a free download on his blog.

      I've never heard of him before. Found his site looking for a simple
      template for affiliate products.

      This is the URL.

      http://mattsmarketingblog.com/wordpress/affiliate-wordpress-theme/


      I'm not comfortable having encrypted code on a theme that I'm using.


      If anyone knows how to fix this I'm all ears.

      I already used a base64 decoder but don't know how
      to string the decrypted code back together.
      {{ DiscussionBoard.errors[2634268].message }}
  • Profile picture of the author VegasGreg
    Well, typically to use a free theme, the terms of the license may require that you leave a link on the theme. That is why developers encode this section.

    So if that is the case, you are trying to violate the terms of the license. And if we help you, then we are just as criminal.

    You should check the terms of the theme's license and let us know if it is safe to proceed.
    Signature

    Greg Schueler - Wordpress Fanatic... Living The Offline Marketing Dream...

    {{ DiscussionBoard.errors[2634451].message }}
    • Profile picture of the author K. Rondo
      I understand what you are saying.

      I never said that I was going to delete his backlink.

      I don't like the fact that there is encrypted code
      there; no matter what the intention is.

      Hiding a code's function from your users seems malicious
      to me in itself.

      I just want to be safe and have as much control over
      a theme as I can, as long as it falls within the TOS.

      And the theme doesn't have a ToS, but we all know what
      etiquette is.
      {{ DiscussionBoard.errors[2634485].message }}
      • Profile picture of the author ilikepie
        Originally Posted by K. Rondo View Post

        I understand what you are saying.

        I never said that I was going to delete his backlink.

        I don't like the fact that there is encrypted code
        there; no matter what the intention is.

        Hiding a code's function from your users seems malicious
        to me in itself.

        I just want to be safe and have as much control over
        a theme as I can, as long as it falls within the TOS.

        And the theme doesn't have a ToS but we all know what
        etiquette is.
        Yeah there are themes on the net with encoded malicious code I totally agree with you.
        {{ DiscussionBoard.errors[2634583].message }}
        • Profile picture of the author K. Rondo
          It's fixed now.

          Just an extra PHP tag.

          That's all.

          Good riddance.

          A little persistance and I learned how to do very basic
          encryption and decryption. WoW.

          By the way, twb in the programming section spotted the extra tag.
          {{ DiscussionBoard.errors[2634614].message }}
  • Profile picture of the author Aare
    May be you should read this post :
    Decode encrypted Footer.php of WP Theme

    I hope it will help you much, goodluck!
    Signature
    God bless us all!
    {{ DiscussionBoard.errors[2634508].message }}
    • Profile picture of the author Steve Wells
      Originally Posted by redneo View Post

      May be you should read this post :
      Decode encrypted Footer.php of WP Theme

      I hope it will help you much, goodluck!
      LOL, thats a funny way to get rid of encrypted code..
      Signature
      Need Custom Graphics Work? - Message Me For A Design Quote!
      {{ DiscussionBoard.errors[2634770].message }}
  • Profile picture of the author jakeseth12
    The reason why developers encode a particular section is to use free themes that require term of the license to leave a link on theme.
    {{ DiscussionBoard.errors[2674196].message }}

Trending Topics