Help with Base_64 Decode in footer.php WP Theme

by 6 replies
8
I've been trying to figure this out for a few hours
but can't find a solution.

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("")." ".$blog_title.base64_decode

("");
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 blue highlight:

<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 -->
#programming #base64 #base64decode #decode #footerphp #theme
  • What type of error message? Do you have a URL to view it?
    • [1] reply
    • When everything is encrypted the footer looks fine.
      It has the usual link to the owners site, like most
      free themes have. But I don't know what other
      instructions are there. It looks legit, though.

      After I decrypt the code, I copy/paste the results where
      I think they should go. But there are syntax errors.
      Parse error: syntax error, unexpected '<' on line 11.

      This seems like something minor but I don't know any code.

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

      The above portion of the code is okay, I think

      so everything after that (see OP) I copy and past with this
      (the decoded versions of the red and blue sections)

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

      var today = new Date();

      document.write(today.getFullYear());

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

      <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 -->
      • [1] reply

Next Topics on Trending Feed