Need programming help

by AFI
9 replies
I'm far from a programmer, but I'm a little bit techie. I have a WordPress blog theme where the jerk that designed it made the footer in a way that you need base64_decode to decode it. He did that because he's got some of his own backlinks to his own sites in the footer and I guess he doesn't want anyone to remove them unless they know base64 coding. I don't even know if I'm saying this right but I know what it is, it has to be decoded in another way to put it back to PHP or something right?

Is there anyone who can help me?
#programming
  • Profile picture of the author Brandon Tanner
    Assuming you have the rights to do so, that should be pretty simple to "fix". Is the theme already on your server? If so, send me the URL to the home page and I'll be glad to take a look at it.
    Signature

    {{ DiscussionBoard.errors[2833505].message }}
    • Profile picture of the author kkoechel
      you could do something like this:

      Code:
      <?
         function encrypt(, )
         {
             = '';
      
            for( = 0;  < strlen();  ++)
            {
                   = substr(, , 1);
                = substr(, ( % strlen()) - 1, 1);
                   = chr(ord() + ord());
                .= ;
            }
      
            return encode_base64();
         }
      
         function decrypt(, )
         {
             = '';
               = decode_base64();
      
            for( = 0;  < strlen();  ++)
            {
                   = substr(, , 1);
                = substr(, ( % strlen()) - 1, 1);
                   = chr(ord() - ord());
                .= ;
            }
      
            return ;
         }
      
         function encode_base64()
         {
             = base64_encode();
      
            return strtr(, '+/', '-_');
         }
      
         function decode_base64()
         {
             = strtr(, '-_', '+/');
      
            return base64_decode();
         }
      ?>
      BUT...

      if he is doing business like that to keep people from using his supposed intellectual property he could derive some other mechanism to encode it when he finds out he is being copied.
      {{ DiscussionBoard.errors[2833866].message }}
      • Profile picture of the author AFI
        Originally Posted by kkoechel View Post

        you could do something like this:

        Code:
        <?
           function encrypt(, )
           {
               = '';
        
              for( = 0;  < strlen();  ++)
              {
                     = substr(, , 1);
                  = substr(, ( % strlen()) - 1, 1);
                     = chr(ord() + ord());
                  .= ;
              }
        
              return encode_base64();
           }
        
           function decrypt(, )
           {
               = '';
                 = decode_base64();
        
              for( = 0;  < strlen();  ++)
              {
                     = substr(, , 1);
                  = substr(, ( % strlen()) - 1, 1);
                     = chr(ord() - ord());
                  .= ;
              }
        
              return ;
           }
        
           function encode_base64()
           {
               = base64_encode();
        
              return strtr(, '+/', '-_');
           }
        
           function decode_base64()
           {
               = strtr(, '-_', '+/');
        
              return base64_decode();
           }
        ?>
        BUT...

        if he is doing business like that to keep people from using his supposed intellectual property he could derive some other mechanism to encode it when he finds out he is being copied.
        I could just put this in my footer and replace that other junk?
        Signature

        Learn about Internet Marketing from my dofollow comment blog.....Make Extra Money At Home...
        I WILL BUILD YOU YOUR OWN CUSTOM AMAZON REVIEW SITE - HUNDREDS SOLD!
        {{ DiscussionBoard.errors[2834591].message }}
  • Profile picture of the author Neil Morgan
    Hey Jennifer

    This online tool will decode it for you. You can then change it, re-encode it and put it back into the footer.

    Online base64_decode() function - Online tool

    Hope it helps.

    Cheers,

    Neil
    Signature

    Easy email marketing automation without moving your lists.

    {{ DiscussionBoard.errors[2833826].message }}
    • Profile picture of the author AFI
      Originally Posted by Neil Morgan View Post

      Hey Jennifer

      This online tool will decode it for you. You can then change it, re-encode it and put it back into the footer.

      Online base64_decode() function - Online tool

      Hope it helps.

      Cheers,

      Neil
      This didn't work so hot. It came back with a bunch of characters that were diamonds with question marks in the middle of them. Like when there is a font that you don't have installed and it needs it or something. Try it yourself with the code I posted above and you'll see.
      Signature

      Learn about Internet Marketing from my dofollow comment blog.....Make Extra Money At Home...
      I WILL BUILD YOU YOUR OWN CUSTOM AMAZON REVIEW SITE - HUNDREDS SOLD!
      {{ DiscussionBoard.errors[2834830].message }}
      • Profile picture of the author John A.R.
        hi Jennifer,
        have tried to decode .. seams to be complete and I hope you can use it.

        damn .. there are links in that file, so I'm not allowed to post :rolleyes:
        try a PM now

        edit:
        ok, PM only after 50 posts
        give me a mailaddy where i can send you that file :-)
        {{ DiscussionBoard.errors[2837005].message }}
  • Profile picture of the author icun
    Can you post your footer code? I have removed crap like that from a wordpress blog for someone before.
    {{ DiscussionBoard.errors[2834115].message }}
    • Profile picture of the author AFI
      His license says you can modify the theme as long as you still keep the "theme created by...blah blah" and I will do that for sure, but he's got these other links to "Korean Clothing", "CD Rates" and "Bank Rates" that are forced links at the bottom of my blog that I don't like.

      This is the footer, it's in base 64.

      Code:
      <?php =__FILE__;='Pz48L2Q0dj4NCjwvZDR2Pg0KPC9kNHY+DQoNCjxkNHYgNGQ9ImYyMnQ1ci13cjFwIj4NCg0KPGQ0diA0ZD0iZjIydDVyIj4NCjxkNHYgY2wxc3M9ImM1bnQ1cjVkLTEiPg0KPGQ0diBjbDFzcz0iYzVudDVyNWQtYiI+DQoNCjxkNHYgY2wxc3M9ImYyMnQ1ci1jMm50NW50Ij4NCjxkNHYgY2wxc3M9ImZiMXIiPg0KPDNsIGNsMXNzPSJmMjJ0NXJfbDRzdCI+DQo8bDQgNGQ9Im0yc3QtYzJtbTVudDVkIj4NCjxobz48P3BocCBfNSgnTTJzdCBDMm1tNW50NWQnKTsgPz48L2hvPg0KPDNsPg0KPD9waHAgZ3Q1X20yc3RfYzJtbTVudDVkKCk7ID8+DQo8LzNsPg0KPC9sND4NCjwvM2w+DQo8L2Q0dj4NCg0KDQo8ZDR2IGNsMXNzPSJmYjFyIj4NCjwzbCBjbDFzcz0iZjIydDVyX2w0c3QiPg0KPGw0IDRkPSJyMW5kMm0tNW50cjQ1cyI+DQo8aG8+PD9waHAgXzUoJ1IxbmQybSBBcnQ0Y2w1cycpOyA/PjwvaG8+DQo8M2w+DQo8P3BocCBndDVfcjFuZDJtX3Ayc3RzKCk7ID8+DQo8LzNsPg0KPC9sND4NCjwvM2w+DQo8L2Q0dj4NCg0KDQo8ZDR2IGNsMXNzPSJmYjFyIj4NCjwzbCBjbDFzcz0iZjIydDVyX2w0c3QiPg0KPGw0IDRkPSJmNTF0M3I1ZC1jMXQiPg0KDQo8P3BocCAkdGg1X2MxdF9zbDNnID0gZzV0XzJwdDQybigndG5fazVrMl9mMjJ0NXJfZjUxdDNyNWQnKTsgPz4NCg0KPD9waHAgNGYoKCR0aDVfYzF0X3NsM2cgPT0gJycpIHx8ICgkdGg1X2MxdF9zbDNnID09ICdDaDIyczU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RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>
      Signature

      Learn about Internet Marketing from my dofollow comment blog.....Make Extra Money At Home...
      I WILL BUILD YOU YOUR OWN CUSTOM AMAZON REVIEW SITE - HUNDREDS SOLD!
      {{ DiscussionBoard.errors[2834584].message }}
  • Profile picture of the author AFI
    I had a friend decode it for me. Thank you!!
    Signature

    Learn about Internet Marketing from my dofollow comment blog.....Make Extra Money At Home...
    I WILL BUILD YOU YOUR OWN CUSTOM AMAZON REVIEW SITE - HUNDREDS SOLD!
    {{ DiscussionBoard.errors[2847054].message }}

Trending Topics