Josh’s Random Non-sense!

Breathing

Posted on Thursday, April 24th, 2008

Song of the day is “Work” by Jars of Clay (surprise surprise!)

yes, i realize he resembles Snape in this video, it is a bit odd
I have no fear of drowning
It’s the breathing that’s taking all this work.
Sometimes life really does feel that way (for me at least). There have been times when it […]

continue reading

It’s Uncanny…

Posted on Wednesday, April 9th, 2008

I figure I’d provide a little laugh for the rest of the world
(thanks for pointing this out Elaine … i think )
This is a pic of me about a year ago after a friend attacked my hair with a straightener … my hair didn’t recover lol

and here’s my little prime-ape look alike […]

continue reading

Decrypt nested eval gzinflate str_rot13 base64_decode

Posted on Saturday, March 22nd, 2008

So I went ahead and wrote a script to undo massively nested eval(gzinflate(str_rot13(base64_decode(‘STRING’)))); and eval(gzinflate(base64_decode(‘STRING’))); “encryptions” with a multitude of both of them inside it. The string from the original footer here had to go through 67 different iterations before it got to the real source code (talk about overkill).
If you have strings that aren’t […]

continue reading

Annoying Coding Methods (solved)

Posted by josh on Saturday, March 22nd, 2008

So I finally figured out how to decrypt the insanity of the footer for this theme.

To see what I started out with see the first post — > Annyoing Coding Methods

Simply changing the eval() to echo just printed out a ?> because I found out the first thing in the code was a ?>, so it ended the PHP tag and simply printed out the ending ?> tag.

So… I decided to remove all PHP tags… like <?php <? and ?> with:


<?php
$remove
= array(">","<");
$replace = array("&gt;","&lt;");
$string = 'FREAKISHLY LONG ENCRYPTED STRING HERE';
echo
str_replace($remove,$replace,gzinflate(str_rot13(base64_decode($string))));
# echo str_replace($remove,$replace,gzinflate(base64_decode($string)));<br />
?>

So that worked liked I hoped it would, BUT it prints out nearly the exact same thing I had to begin with, just with another random string. So I keep replacing cryptic code in the $string variable over and over. The output varied from eval(gzinflate(str_rot13(base64_decode($string)))); to eval(gzinflate(base64_decode($string))); Hence the extra (commented) line in the above code. I probably repeated this method at least 50 times until I actually saw the real source code. (And yes, after doing that I realize that I could have just written a little code to loop through it, but I had no idea how many iterations it would take)

The string of data got smaller and smaller each time. The last string before the real code is only about a fifth of the length of the original:

Posted in: Coding.

2 Responses to “Annoying Coding Methods (solved)”

  1. Jerry Galino Says:

    Good site I “Stumbledupon” it today and gave it a stumble for you.. looking forward to seeing what else you have..later

  2. Motdymbomo Says:

    Tahnks for posting

Leave a Reply