<?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>ClassicalCode &#187; avatar</title>
	<atom:link href="http://blog.classicalcode.com/tag/avatar/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.classicalcode.com</link>
	<description>Music, Software, Finds</description>
	<lastBuildDate>Tue, 08 Nov 2011 19:34:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Refresh Cannon Bot</title>
		<link>http://blog.classicalcode.com/2009/05/refresh-cannon-bot/</link>
		<comments>http://blog.classicalcode.com/2009/05/refresh-cannon-bot/#comments</comments>
		<pubDate>Thu, 07 May 2009 08:13:56 +0000</pubDate>
		<dc:creator>Jordan Eldredge</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[game]]></category>

		<guid isPermaLink="false">http://blog.classicalcode.com/?p=485</guid>
		<description><![CDATA[The awesome nerd over at Geoff&#8217;s Boring Programming Stuff gave me the biggest compliment a programmer could recieve. He wrote a program to use my program! As he points out in his post, it seems pretty clear that he is not the only one. If there is anything more rewarding than that, I can&#8217;t think [...]]]></description>
			<content:encoded><![CDATA[<p>The awesome nerd over at <a href="http://geoff.greer.fm/">Geoff&#8217;s Boring Programming Stuff</a> gave me the biggest compliment a programmer could recieve. <a href="http://geoff.greer.fm/2009/05/05/refresh-cannon-bot/">He wrote a program</a> to use <a href="http://blog.classicalcode.com/?p=471">my program</a>! As he points out in his post, it seems pretty clear that he is not the only one. If there is anything more rewarding than that, I can&#8217;t think what it would be. Thanks Geoff.</p>
<p><strong>Edit:</strong> (May 18th, 2009)</p>
<p>Apparently my brother&#8217;s room mate took at shot a writting a bot of his own. You can see his progress <a href="http://banach.ucsd.edu/RefreshCannon/">here</a> and his wins <a href="http://banach.ucsd.edu/RefreshCannon/wins.php">here</a>.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon/" title="Refresh Cannon">Refresh Cannon</a></li><li><a href="http://blog.classicalcode.com/2008/11/play-the-card-game-war-in-my-avatar/" title="Play the card game &#8220;War&#8221; in my avatar">Play the card game &#8220;War&#8221; in my avatar</a></li><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon-returns/" title="Refresh Cannon Returns">Refresh Cannon Returns</a></li><li><a href="http://blog.classicalcode.com/2009/04/refresh-hero-avatar-game/" title="Refresh Hero Avatar Game">Refresh Hero Avatar Game</a></li><li><a href="http://blog.classicalcode.com/2008/11/how-i-ddosed-myself-with-an-avatar/" title="How I DDOSed myself with an avatar">How I DDOSed myself with an avatar</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.classicalcode.com/2009/05/refresh-cannon-bot/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Refresh Cannon Returns</title>
		<link>http://blog.classicalcode.com/2009/05/refresh-cannon-returns/</link>
		<comments>http://blog.classicalcode.com/2009/05/refresh-cannon-returns/#comments</comments>
		<pubDate>Thu, 07 May 2009 08:03:01 +0000</pubDate>
		<dc:creator>Jordan Eldredge</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.classicalcode.com/?p=482</guid>
		<description><![CDATA[My simple Refresh Cannon game got picked up by several high traffic websites. Unfortunately the large volume of traffic brought my simple server to it&#8217;s knees, so I had to take the link to the image down. Now that the bulk of the traffic seems to have passed, I am reposting the link. You can [...]]]></description>
			<content:encoded><![CDATA[<p>My simple <a href="http://blog.classicalcode.com/?p=471">Refresh Cannon</a> game got picked up by <a href="http://waxy.org/links/archive/2009/05/index.shtml">several</a> <a href="http://www.wykop.pl/link/178906/interaktywna-gra-w-obrazku-png">high</a> <a href="http://translate.google.com/translate?u=http%3A%2F%2Fwww.superlevel.de%2F&#038;sl=de&#038;tl=en&#038;hl=en&#038;ie=UTF-8">traffic</a> <a href="http://sacrej.eu/index.php/2009/05/06/refresh-cannon/">websites</a>. Unfortunately the large volume of traffic brought my simple server to it&#8217;s knees, so I had to take the link to the image down. Now that the bulk of the traffic seems to have passed, I am reposting the link. You can find it at the <a href="http://blog.classicalcode.com/?p=471">original post</a>.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon/" title="Refresh Cannon">Refresh Cannon</a></li><li><a href="http://blog.classicalcode.com/2009/04/refresh-hero-avatar-game/" title="Refresh Hero Avatar Game">Refresh Hero Avatar Game</a></li><li><a href="http://blog.classicalcode.com/2008/11/play-the-card-game-war-in-my-avatar/" title="Play the card game &#8220;War&#8221; in my avatar">Play the card game &#8220;War&#8221; in my avatar</a></li><li><a href="http://blog.classicalcode.com/2008/11/how-i-ddosed-myself-with-an-avatar/" title="How I DDOSed myself with an avatar">How I DDOSed myself with an avatar</a></li><li><a href="http://blog.classicalcode.com/2008/10/php-avatar-hack/" title="PHP: Avatar Hack">PHP: Avatar Hack</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.classicalcode.com/2009/05/refresh-cannon-returns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Refresh Cannon</title>
		<link>http://blog.classicalcode.com/2009/05/refresh-cannon/</link>
		<comments>http://blog.classicalcode.com/2009/05/refresh-cannon/#comments</comments>
		<pubDate>Tue, 05 May 2009 16:35:06 +0000</pubDate>
		<dc:creator>Jordan Eldredge</dc:creator>
				<category><![CDATA[Avatar]]></category>
		<category><![CDATA[angle]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[cannon]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[projectile]]></category>
		<category><![CDATA[refreh]]></category>
		<category><![CDATA[velocity]]></category>

		<guid isPermaLink="false">http://blog.classicalcode.com/?p=471</guid>
		<description><![CDATA[EDIT: Due to an excess of traffic, I have had to take Refresh Cannon off of this page. Please try again later. I am so sorry folks. Feel free to subscribe to the RSS feed. I will post it again when things cool down. And&#8230; were back. Inspired by the popularity of Refresh Hero, I [...]]]></description>
			<content:encoded><![CDATA[<p><del datetime="2009-05-07T02:52:50+00:00">EDIT: <span style="color: #993300;">Due to an excess of traffic, I have had to take Refresh Cannon off of this page. Please try again later. I am so sorry folks. Feel free to subscribe to the RSS feed. I will post it again when things cool down.<br />
</span></del></p>
<p>And&#8230; were back.</p>
<p><img class="alignright" style="border: 2px solid black; margin: 5px;" title="Refresh Hero" src="http://www.classicalcode.com/shoot.png" alt="" width="150" />Inspired by the popularity of <a href="http://blog.classicalcode.com/?p=459">Refresh Hero</a>, I am continuing in my exploration of the limits of avatar images. Of course the main challenge is developing ways for the user to have meaningful interaction with only their refresh button. The <a href="http://blog.classicalcode.com/?p=459">previous game</a> used the element of time in binary fashion: either you got it right, or not. This new game uses time to allow you to adjust two different variables. </p>
<p>Avatar Cannon is the basic trajectory game of angle and velocity. The amount of time you wait before refreshing allows you to adjust these variable and attempt to hit the target. Each time you hit the target a new terrain is generated. The avatar also displays your standing against all other users. A full <a href="http://www.classicalcode.com/shoot.png/high_score.php">live high score list</a> is also available.</p>
<p>Finally, if you would prefer to have your score listed next to your nick name, instead of your IP address, you can <a href="http://www.classicalcode.com/shoot.png/register.php">register here</a>. </p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.classicalcode.com/2008/11/play-the-card-game-war-in-my-avatar/" title="Play the card game &#8220;War&#8221; in my avatar">Play the card game &#8220;War&#8221; in my avatar</a></li><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon-bot/" title="Refresh Cannon Bot">Refresh Cannon Bot</a></li><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon-returns/" title="Refresh Cannon Returns">Refresh Cannon Returns</a></li><li><a href="http://blog.classicalcode.com/2009/04/refresh-hero-avatar-game/" title="Refresh Hero Avatar Game">Refresh Hero Avatar Game</a></li><li><a href="http://blog.classicalcode.com/2008/11/how-i-ddosed-myself-with-an-avatar/" title="How I DDOSed myself with an avatar">How I DDOSed myself with an avatar</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.classicalcode.com/2009/05/refresh-cannon/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Refresh Hero Avatar Game</title>
		<link>http://blog.classicalcode.com/2009/04/refresh-hero-avatar-game/</link>
		<comments>http://blog.classicalcode.com/2009/04/refresh-hero-avatar-game/#comments</comments>
		<pubDate>Fri, 01 May 2009 06:57:22 +0000</pubDate>
		<dc:creator>Jordan Eldredge</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[hero]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[refresh]]></category>

		<guid isPermaLink="false">http://blog.classicalcode.com/?p=459</guid>
		<description><![CDATA[For a while now I have been interested in trying to create games that can be played in avatar images. People generally think of images as either static or animated, and I enjoy opening peoples eyes to the fact that images can be dynamically generated based on your interactions with it. Refresh Hero is a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="border: 2px solid black; margin: 5px;" title="Refresh Hero" src="http://www.classicalcode.com/hero.png" alt="" width="150" height="355" />For a while now I have been interested in trying to create games that can be played in avatar images. People generally think of images as either static or animated, and I enjoy opening peoples eyes to the fact that images can be dynamically generated based on your interactions with it.</p>
<p>Refresh Hero is a play on Guitar Hero. You are asked to refresh the image after a specific number of seconds. The more accurate your timing, the more points you collect. If you miss the time mark wildly, you lose all your point. However, if you need to take a break, gaps longer than 20 seconds between refreshes will be interpreted as pausing the game. Hitting more than one in a row builds your chain, and you can collect chain bonuses for large chains.</p>
<p>To add to the fun, a high score leader-board is displayed at the bottom of the image so you can see your competition. If  you want your name to be displayed on the leader-board instead of your ip address, you can simply enter your name (or nick) at the <a href="http://www.classicalcode.com/hero.png/register.php">registration page</a>.</p>
<p>So go ahead, refresh the page and clime the high score list!</p>
<p><strong>Edit:</strong> I have added a <a href="http://classicalcode.com/hero.png/high_score.php">top 50 high score list</a>.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon-returns/" title="Refresh Cannon Returns">Refresh Cannon Returns</a></li><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon/" title="Refresh Cannon">Refresh Cannon</a></li><li><a href="http://blog.classicalcode.com/2008/11/play-the-card-game-war-in-my-avatar/" title="Play the card game &#8220;War&#8221; in my avatar">Play the card game &#8220;War&#8221; in my avatar</a></li><li><a href="http://blog.classicalcode.com/2008/11/how-i-ddosed-myself-with-an-avatar/" title="How I DDOSed myself with an avatar">How I DDOSed myself with an avatar</a></li><li><a href="http://blog.classicalcode.com/2008/10/php-avatar-hack/" title="PHP: Avatar Hack">PHP: Avatar Hack</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.classicalcode.com/2009/04/refresh-hero-avatar-game/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Play the card game &#8220;War&#8221; in my avatar</title>
		<link>http://blog.classicalcode.com/2008/11/play-the-card-game-war-in-my-avatar/</link>
		<comments>http://blog.classicalcode.com/2008/11/play-the-card-game-war-in-my-avatar/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 03:49:45 +0000</pubDate>
		<dc:creator>Jordan Eldredge</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[card]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[war]]></category>

		<guid isPermaLink="false">http://blog.classicalcode.com/?p=136</guid>
		<description><![CDATA[Since my previous avatar DDOSed my router, today I wrote a less popular avatar game. The only game I could think of that has no need for actual user input was the card game war. So I implemented it in my avatar. You can play too, by simply refreshing this image: Features: Proper handeling of [...]]]></description>
			<content:encoded><![CDATA[<p>Since my previous avatar <a href="http://blog.classicalcode.com/?p=132">DDOSed my router</a>, today I wrote a less popular avatar game. The only game I could think of that has no need for actual user input was the <a href="http://en.wikipedia.org/wiki/War_(card_game)">card game war</a>. So I implemented it in my avatar. You can play too, by simply refreshing this image:</p>
<p><img src="http://www.classicalcode.com/war.png" alt="" /></p>
<p>Features:</p>
<ul>
<li>Proper handeling of running out of cards during a &#8220;war&#8221;</li>
<li>War cards are show (with appropriate cards face up or down)</li>
<li>Independent games for each ip address playing</li>
<li>Deck state stored in database between refreshes</li>
<li>Special WIN/LOSE screens</li>
</ul>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon/" title="Refresh Cannon">Refresh Cannon</a></li><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon-bot/" title="Refresh Cannon Bot">Refresh Cannon Bot</a></li><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon-returns/" title="Refresh Cannon Returns">Refresh Cannon Returns</a></li><li><a href="http://blog.classicalcode.com/2009/04/refresh-hero-avatar-game/" title="Refresh Hero Avatar Game">Refresh Hero Avatar Game</a></li><li><a href="http://blog.classicalcode.com/2008/11/how-i-ddosed-myself-with-an-avatar/" title="How I DDOSed myself with an avatar">How I DDOSed myself with an avatar</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.classicalcode.com/2008/11/play-the-card-game-war-in-my-avatar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How I DDOSed myself with an avatar</title>
		<link>http://blog.classicalcode.com/2008/11/how-i-ddosed-myself-with-an-avatar/</link>
		<comments>http://blog.classicalcode.com/2008/11/how-i-ddosed-myself-with-an-avatar/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 02:21:48 +0000</pubDate>
		<dc:creator>Jordan Eldredge</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[ddos]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.classicalcode.com/?p=132</guid>
		<description><![CDATA[Building on my previous avatar hack, I set out to design an avatar that was also an interactive game. The game I eventually settled on was one where you compete with the other users to see who can load the avatar the most times. The image you are served shows your ranking as compared to [...]]]></description>
			<content:encoded><![CDATA[<p>Building on my <a href="http://blog.classicalcode.com/?p=105">previous avatar hack</a>, I set out to design an avatar that was also an interactive game. The game I eventually settled on was one where you compete with the other users to see who can load the avatar the most times. The image you are served shows your ranking as compared to the other users. It looked like this:</p>
<p><a href="http://blog.classicalcode.com/wp-content/uploads/2008/11/off.png"><img class="alignnone size-full wp-image-133" title="Avatar Game Example" src="http://blog.classicalcode.com/wp-content/uploads/2008/11/off.png" alt="" width="150" height="200" /></a></p>
<p>And true to its word, every time you refreshed it, your number went up, and you could climb to the top. I thought it would be fun, and a person or two might even refresh it a few times to get to the top. So, before I went to bed, I set it as my avatar on a forum I frequent. When I woke up the next morning<span id="more-132"></span> I checked to see if anyone had taken an interest. It turns out that there was so much interest that a thread I had started about Facebook ads had been renamed by the mods to &#8220;The refresh game&#8221; where people could discuss techniques for getting high scores. I had already recieved 100,000 requests for the image by this time.</p>
<p>The forum ranged from people discussing using Firefox tabs:</p>
<blockquote><p>I did something similar [opening several tabs in Firefox], except I opened it in 126 tabs, mass bookmarked them, opened a few windows, loaded all the tabs into each window, and THEN refreshed all the tabs in all the windows. Unfortunately Firefox could barely handle it so I quit after getting to like 12th or so.</p></blockquote>
<p>To more automated methods:</p>
<blockquote><p>I&#8217;ll put my seedbox on a wget loop muahahahaahha</p></blockquote>
<p>One user found a clever way to stay in the lead. Take first, save the image and save it as your avatar:</p>
<blockquote><p>I have a new avatar so i&#8217;m done <img src='http://blog.classicalcode.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://blog.classicalcode.com/wp-content/uploads/2008/11/gamekz8.png"><img class="alignnone size-full wp-image-163" title="Static Avatar to stay in the lead" src="http://blog.classicalcode.com/wp-content/uploads/2008/11/gamekz8.png" alt="" width="150" height="200" /></a></p></blockquote>
<p>However the most amusing method was this:</p>
<blockquote><p>I put a screwdriver on my F5 key while I walked away for a while at work, leaned it up against the laptop screen. Got me to 7th Place with 8613 refreshes. I tried &#8220;ReloadEvery&#8221; for Firefox.</p>
<p>The screwdriver was faster!</p>
<p><a href="http://blog.classicalcode.com/wp-content/uploads/2008/11/2gsnxg4.jpg"><img class="alignnone size-medium wp-image-134" title="Screwdriver refreshes avatar" src="http://blog.classicalcode.com/wp-content/uploads/2008/11/2gsnxg4-225x300.jpg" alt="" width="225" height="300" /></a></p></blockquote>
<p>By that evening, our interet had slowed to a stop (due to our router not being able to deal with large numbers of connections) and I was forced to remove the image. By this time, barely 12 hours later, the image had been requested 260,964 times with nearly 60 people having had requested it more than 100 times. The take-down was greeted with instant complaints, including suggestions to rehost it on a real server. So, to appease the nerds, I sent to code to another member of the community who has just recently reposted it. So, <del datetime="2008-12-09T22:55:50+00:00">here is a working copy if you want to compete (go ahead and refresh!)</del> (The reposted version has been ddosed too.)</p>
<p><strong>Update:</strong></p>
<p>New quotes form in the forum in reference to the avatar that the other guy is hosting:</p>
<blockquote><p>when i started piecing together a pc out of spare parts, deciding which linux live cd to use, and looking for an ethernet cable to directly connect to my modem, i realized i was about to waste too much time on this competition. i think i will stop playing now.</p></blockquote>
<blockquote><p>People are now writing C, PHP, BASH, and Java programs to get high scores. Aparently Java just came out of no where and stole the lead by a huge margin by managing 40 requests per scound.</p></blockquote>
<blockquote><p>aha I found out someone is using a java program with 1000 threads, no wonder &lt;_&lt; [I showed this to other people on IRC as well - they're all bragging ]</p></blockquote>
<blockquote><p>Looks like the 1st place person is taking a break, time to catch up!<br />
I&#8217;ve noticed that people&#8217;s #s have been getting too big for the image, I made a quick top20 here: <a href="http://facepwn.com/avatarstats.php">http://facepwn.com/avatarstats.php</a> It wont increase your score when you refresh though <img src='http://blog.classicalcode.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p></blockquote>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon-returns/" title="Refresh Cannon Returns">Refresh Cannon Returns</a></li><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon/" title="Refresh Cannon">Refresh Cannon</a></li><li><a href="http://blog.classicalcode.com/2009/04/refresh-hero-avatar-game/" title="Refresh Hero Avatar Game">Refresh Hero Avatar Game</a></li><li><a href="http://blog.classicalcode.com/2008/11/play-the-card-game-war-in-my-avatar/" title="Play the card game &#8220;War&#8221; in my avatar">Play the card game &#8220;War&#8221; in my avatar</a></li><li><a href="http://blog.classicalcode.com/2008/10/php-avatar-hack/" title="PHP: Avatar Hack">PHP: Avatar Hack</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.classicalcode.com/2008/11/how-i-ddosed-myself-with-an-avatar/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP: Avatar Hack</title>
		<link>http://blog.classicalcode.com/2008/10/php-avatar-hack/</link>
		<comments>http://blog.classicalcode.com/2008/10/php-avatar-hack/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 19:04:39 +0000</pubDate>
		<dc:creator>Jordan Eldredge</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[avatar]]></category>
		<category><![CDATA[gd]]></category>
		<category><![CDATA[google image search]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.classicalcode.com/?p=105</guid>
		<description><![CDATA[I am a member of a web forum which allows you to use an Avatar image of your choice. You simply give them the url of the image. The ability of php to generate images lead me to try to come up with ways to take advantage of this system. My first attempt at a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-144 alignleft" style="margin: 5px; float: left;" title="avatar Hack" src="http://blog.classicalcode.com/wp-content/uploads/2008/11/avatar.jpg" alt="" width="150" height="232" />I am a member of a web forum which allows you to use an Avatar image of your choice. You simply give them the url of the image. The ability of php to generate images lead me to try to come up with ways to take advantage of this system.</p>
<p>My first attempt at a dynamically generated avatar was thwarted by the sites form verification. It rejected my avatar because it pointed to a .php file instead of an image file. To get around this, I created a directory called:</p>
<pre>/avatar.jpg</pre>
<p>that contained an index.php file. Therefore when a user requests:</p>
<pre>http://www.classicalcode.com/avatar.jpg</pre>
<p>the server resolves that to:</p>
<pre>http://www.classicalcode.com/avatar.jpg/index.php</pre>
<p>and that script generates an image which it then returns with .jpg headers.</p>
<p>Now that the image is dynamically generated, the question is: what can the script do? Currently it logs ip addresses, browsers and operating systems, does a google image search, finds a random image for a search term, and displays that image along with the users ip and the total times that the avatar has been requested. The source code can be found here: <a href="http://blog.classicalcode.com/wp-content/uploads/2008/10/avatar_source.txt">avatar_source.txt</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon-returns/" title="Refresh Cannon Returns">Refresh Cannon Returns</a></li><li><a href="http://blog.classicalcode.com/2009/05/refresh-cannon/" title="Refresh Cannon">Refresh Cannon</a></li><li><a href="http://blog.classicalcode.com/2009/04/refresh-hero-avatar-game/" title="Refresh Hero Avatar Game">Refresh Hero Avatar Game</a></li><li><a href="http://blog.classicalcode.com/2008/11/play-the-card-game-war-in-my-avatar/" title="Play the card game &#8220;War&#8221; in my avatar">Play the card game &#8220;War&#8221; in my avatar</a></li><li><a href="http://blog.classicalcode.com/2008/11/how-i-ddosed-myself-with-an-avatar/" title="How I DDOSed myself with an avatar">How I DDOSed myself with an avatar</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://blog.classicalcode.com/2008/10/php-avatar-hack/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

