<?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>Kenneth Ham &#187; VB6</title>
	<atom:link href="http://www.kennethham.com/wp/category/vb6/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kennethham.com/wp</link>
	<description></description>
	<lastBuildDate>Tue, 17 Mar 2009 06:58:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dell Sweepstakes Hack (Dellf Project)</title>
		<link>http://www.kennethham.com/wp/2008/11/dell-sweepstakes-hack-dellf-project/</link>
		<comments>http://www.kennethham.com/wp/2008/11/dell-sweepstakes-hack-dellf-project/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 19:39:39 +0000</pubDate>
		<dc:creator>kham</dc:creator>
				<category><![CDATA[CAPTCHA]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[OCR]]></category>
		<category><![CDATA[Office API]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[VB6]]></category>

		<guid isPermaLink="false">http://kham.wordpress.com/?p=48</guid>
		<description><![CDATA[
Dell ran a Christmas themed contest a few years ago (2004-2005?) called the Dellf Sweepstakes. The idea behind it was pretty neat at the time: register your email address, fill out a CAPTCHA box, and you get three chances to win prizes.
The CAPTCHA design made it very easy to reverse engineer (an evenly spaced grid, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://kham.files.wordpress.com/2008/11/hdtv.jpg"><img src="http://kham.files.wordpress.com/2008/11/hdtv.jpg" alt="Dellf HDTV" title="Dellf HDTV" width="500" height="502" class="alignnone size-full wp-image-147" /></a></p>
<p>Dell ran a Christmas themed contest a few years ago (2004-2005?) called the Dellf Sweepstakes. The idea behind it was pretty neat at the time: register your email address, fill out a CAPTCHA box, and you get three chances to win prizes.</p>
<p>The CAPTCHA design made it very easy to reverse engineer (an evenly spaced grid, solid background, unaltered text). By using the photoshop API and a custom written action I was able to take this:</p>
<p><a href="http://kham.files.wordpress.com/2008/11/index.jpg"><img src="http://kham.files.wordpress.com/2008/11/index.jpg" alt="index" title="index" width="200" height="50" class="alignnone size-full wp-image-146" /></a></p>
<p> and turn it into this:</p>
<p><a href="http://kham.files.wordpress.com/2008/11/index2.jpg"><img src="http://kham.files.wordpress.com/2008/11/index2.jpg" alt="index2" title="index2" width="200" height="50" class="alignnone size-full wp-image-148" /></a></p>
<p>From there, I sent the edited image to the Office API and did a quick OCR command to get the text from the image. Then, using the WebBrowser control, I scripted the actions to put the text into the web page and register an email address.</p>
<p>Here&#8217;s a view of the program in action:</p>
<p><a href="http://kham.files.wordpress.com/2008/11/dellfprogram.jpg"><img src="http://kham.files.wordpress.com/2008/11/dellfprogram.jpg" alt="dellfprogram" title="dellfprogram" width="500" height="344" class="alignnone size-full wp-image-151" /></a></p>
<p>It&#8217;s important to note that I didn&#8217;t collect any prizes. This project was more about the thrill of the chase and not so much the actual prizes. I ended up &#8220;winning&#8221; almost every prize including the grand prize, a 42in. plasma TV.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennethham.com/wp/2008/11/dell-sweepstakes-hack-dellf-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
