<?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>plasmid.co.uk &#187; easteregg</title>
	<atom:link href="http://plasmid.co.uk/tag/easteregg/feed/" rel="self" type="application/rss+xml" />
	<link>http://plasmid.co.uk</link>
	<description>because life is faster in reverse ...</description>
	<lastBuildDate>Thu, 20 May 2010 23:07:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
  <link>http://plasmid.co.uk</link>
  <url>http://plasmid.co.uk/wp/favicon.ico</url>
  <title>plasmid.co.uk</title>
</image>
		<item>
		<title>PHP GUID Exposure</title>
		<link>http://plasmid.co.uk/2008/08/06/php-guid-exposure/</link>
		<comments>http://plasmid.co.uk/2008/08/06/php-guid-exposure/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 14:15:29 +0000</pubDate>
		<dc:creator>plasmid</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[easteregg]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP detection]]></category>

		<guid isPermaLink="false">http://plasmid.co.uk/?p=56</guid>
		<description><![CDATA[There's a neat little tutorial on how to access various PHP easteregg images at 0php. The author also describes how to prevent your server from displaying this image (to prevent outside users from being able to determine whether or not your server is running PHP).
I thought I'd make a little script that takes advantage of [...]]]></description>
			<content:encoded><![CDATA[<p>There's a <a href="http://www.0php.com/php_easter_egg.php">neat little tutorial</a> on how to access various <strong>PHP easteregg images</strong> at <a href="http://www.0php.com/">0php</a>. The author also describes how to prevent your server from displaying this image (to prevent outside users from being able to determine whether or not your server is running PHP).</p>
<p>I thought I'd make a little script that takes advantage of this easteregg and the inherent format of GIF image files to <strong>determine whether PHP is running</strong> on a remote server.</p>
<pre lang="code" class="php">
&lt;?php

	// Configuration.
	$url = 'http://www.example.com/'; // Replace with whichever URL.

	// Open the connection.
	$handle = @fopen($url.'?=PHPE9568F36-D428-11d2-A769-00AA001ACF42', 'r');
	if($handle)
		echo("Handle active...\n"); else
		die("Error creating handle!\n");

	// Import data into buffer.
	$buffer = fgets($handle, 4);
	if($buffer == 'GIF') // &lt;- part of the binary header for GIF files.
		echo("This server is using PHP!\n"); else
		echo("This server is <strong>NOT</strong> using PHP!\n");

	// Close up, clean up.
	$ret = fclose($handle);
	$handle = NULL;
	if($ret)
		echo('Success!'); else
		die('Failed to close handle!');

?&gt;
</pre>
<p>Don't forget to replace <code>$url</code> with the server address before using this script.</p>
]]></content:encoded>
			<wfw:commentRss>http://plasmid.co.uk/2008/08/06/php-guid-exposure/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.294 seconds -->
