<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Evil Eval()</title>
	<atom:link href="http://thesnarky.com/2009/06/04/evil-eval/feed/" rel="self" type="application/rss+xml" />
	<link>http://thesnarky.com/2009/06/04/evil-eval/</link>
	<description>The Words of the One Who Calls Himself a Philosopher</description>
	<lastBuildDate>Tue, 26 Oct 2010 22:13:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Snarky</title>
		<link>http://thesnarky.com/2009/06/04/evil-eval/comment-page-1/#comment-42870</link>
		<dc:creator>Snarky</dc:creator>
		<pubDate>Tue, 26 Oct 2010 22:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://thesnarky.com/?p=301#comment-42870</guid>
		<description>@zergan - Thanks. 

&quot;$ga = ord($l[1])&lt;&lt;8; //48 ??&quot;
In the above, the author took the second index of what&#039;s in the $l variable, then called the ord() function on it. Ord() returns the ASCII value of a character. Then he does a bitwise shift on that value, and assigns it to $ga. I&#039;ve commented that that value is 48, just from working it out.

&quot;die()&quot;
Die tells PHP to stop whatever it&#039;s doing and exit. Very handy if you don&#039;t want to complete evaluating something, or have a critical error.

&quot;eval()&quot;
Eval takes in a string that&#039;s valid PHP and runs it. 

Hope that helps!</description>
		<content:encoded><![CDATA[<p>@zergan &#8211; Thanks. </p>
<p>&#8220;$ga = ord($l[1])<&lt;8; //48 ??&#8221;<br />
In the above, the author took the second index of what&#8217;s in the $l variable, then called the ord() function on it. Ord() returns the ASCII value of a character. Then he does a bitwise shift on that value, and assigns it to $ga. I&#8217;ve commented that that value is 48, just from working it out.</p>
<p>&#8220;die()&#8221;<br />
Die tells PHP to stop whatever it&#8217;s doing and exit. Very handy if you don&#8217;t want to complete evaluating something, or have a critical error.</p>
<p>&#8220;eval()&#8221;<br />
Eval takes in a string that&#8217;s valid PHP and runs it. </p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zergan</title>
		<link>http://thesnarky.com/2009/06/04/evil-eval/comment-page-1/#comment-42809</link>
		<dc:creator>zergan</dc:creator>
		<pubDate>Tue, 19 Oct 2010 07:04:41 +0000</pubDate>
		<guid isPermaLink="false">http://thesnarky.com/?p=301#comment-42809</guid>
		<description>Incredible!! Real cool job! But i don`t understand step from cycle to array, please tell more for that things:
    $ga = ord($l[1])&lt;&lt;8; //48 ??
die functions and eval. Thanks!</description>
		<content:encoded><![CDATA[<p>Incredible!! Real cool job! But i don`t understand step from cycle to array, please tell more for that things:<br />
    $ga = ord($l[1])&lt;&lt;8; //48 ??<br />
die functions and eval. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Snarky</title>
		<link>http://thesnarky.com/2009/06/04/evil-eval/comment-page-1/#comment-42459</link>
		<dc:creator>Snarky</dc:creator>
		<pubDate>Tue, 07 Sep 2010 23:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://thesnarky.com/?p=301#comment-42459</guid>
		<description>Emster: I took a brief look at the snippet you sent, it&#039;s not base64 encoded PHP as above [base64 decode yields . If you have any background on it I may look further. Where&#039;d you come across it, are there any bit functions being done to it as there were above?</description>
		<content:encoded><![CDATA[<p>Emster: I took a brief look at the snippet you sent, it&#8217;s not base64 encoded PHP as above [base64 decode yields . If you have any background on it I may look further. Where&#8217;d you come across it, are there any bit functions being done to it as there were above?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emster</title>
		<link>http://thesnarky.com/2009/06/04/evil-eval/comment-page-1/#comment-42443</link>
		<dc:creator>Emster</dc:creator>
		<pubDate>Mon, 06 Sep 2010 15:39:16 +0000</pubDate>
		<guid isPermaLink="false">http://thesnarky.com/?p=301#comment-42443</guid>
		<description>Can you help me decode?:

(admin edit, moved this to &lt;a href=&quot;http://pastebin.com/RFDjgFYf&quot; rel=&quot;nofollow&quot;&gt;pastebin&lt;/a&gt; to make it much more readable, also broke it up at every 80 characters, strip the newlines to put it back together)</description>
		<content:encoded><![CDATA[<p>Can you help me decode?:</p>
<p>(admin edit, moved this to <a href="http://pastebin.com/RFDjgFYf" rel="nofollow">pastebin</a> to make it much more readable, also broke it up at every 80 characters, strip the newlines to put it back together)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mutant</title>
		<link>http://thesnarky.com/2009/06/04/evil-eval/comment-page-1/#comment-35463</link>
		<dc:creator>mutant</dc:creator>
		<pubDate>Thu, 30 Jul 2009 04:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://thesnarky.com/?p=301#comment-35463</guid>
		<description>fer fraks sake, I wish I&#039;d have searched for this before I did the EXACT same thing you did here. I would have saved myself HOURS of tedium.

Outstanding explanation though, it was driving me insane trying to figure out what this thing did!</description>
		<content:encoded><![CDATA[<p>fer fraks sake, I wish I&#8217;d have searched for this before I did the EXACT same thing you did here. I would have saved myself HOURS of tedium.</p>
<p>Outstanding explanation though, it was driving me insane trying to figure out what this thing did!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

