<?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>SecurityCurve &#187; Useless Shizz</title>
	<atom:link href="http://www.securitycurve.com/wordpress/archives/category/useless-shizz/feed" rel="self" type="application/rss+xml" />
	<link>http://www.securitycurve.com/wordpress</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 17:05:22 +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>Happy 4th of July!</title>
		<link>http://www.securitycurve.com/wordpress/archives/4365?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=happy-4th-of-july</link>
		<comments>http://www.securitycurve.com/wordpress/archives/4365#comments</comments>
		<pubDate>Mon, 04 Jul 2011 05:44:38 +0000</pubDate>
		<dc:creator>Diana</dc:creator>
				<category><![CDATA[Useless Shizz]]></category>

		<guid isPermaLink="false">http://www.securitycurve.com/wordpress/?p=4365</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.securitycurve.com/wordpress/wp-content/uploads/2011/06/Feeling-Patriotic.jpg" rel="lightbox[4365]"><img src="http://www.securitycurve.com/wordpress/wp-content/uploads/2011/06/Feeling-Patriotic-908x1024.jpg" alt="" title="Feeling Patriotic" width="454" height="512" class="aligncenter size-large wp-image-4366" /></a></p>
<div class="shr-publisher-4365"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F4365' data-shr_title='Happy+4th+of+July%21'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F4365' data-shr_title='Happy+4th+of+July%21'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.securitycurve.com/wordpress/archives/4365/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Summer&#8217;s Here: Our Recipe for Spicy Kale Chips</title>
		<link>http://www.securitycurve.com/wordpress/archives/4347?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=summers-here-our-recipe-for-spicy-kale-chips</link>
		<comments>http://www.securitycurve.com/wordpress/archives/4347#comments</comments>
		<pubDate>Wed, 29 Jun 2011 12:40:34 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Useless Shizz]]></category>
		<category><![CDATA[Kale]]></category>

		<guid isPermaLink="false">http://www.securitycurve.com/wordpress/?p=4347</guid>
		<description><![CDATA[In the spirit of the local CSA opening its doors for the season (hey, back off, we&#8217;re in 5a), here&#8217;s our recipe for spicy kale chips.  They&#8217;re good, but be warned: they are very spicy. Spicy Kale Chips (requires dehydrator) 1 &#8211; 2 bunches kale 1/4 to 1/2 cup light oil (peanut, sunflower, or canola [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.securitycurve.com/wordpress/wp-content/uploads/2011/06/Vegetable-Alien-funny-wallpapers-fun-wallpapers-1024x768.jpg" rel="lightbox[4347]"><img class="alignright size-medium wp-image-4350" title="Vegetable-Alien-funny-wallpapers-fun-wallpapers-1024x768" src="http://www.securitycurve.com/wordpress/wp-content/uploads/2011/06/Vegetable-Alien-funny-wallpapers-fun-wallpapers-1024x768-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>In the spirit of the <a href="http://www.hollandfarmcsa.com/" target="_blank">local CSA</a> opening its doors for the season (hey, back off, we&#8217;re in <a href="http://www.garden.org/zipzone/index.php?img=swusa" target="_blank">5a</a>), here&#8217;s our recipe for spicy kale chips.  They&#8217;re good, but be warned: <strong>they are very spicy</strong>.</p>
<h3>Spicy Kale Chips</h3>
<p><em>(requires dehydrator)</em></p>
<ul>
<li>1 &#8211; 2 bunches kale</li>
<li>1/4 to 1/2 cup light oil (peanut, sunflower, or canola work well)</li>
<li>1 clove garlic</li>
<li>1 to 1 1/2 tbs <a href="http://www.amazon.com/Extra-Hot-Reshampatti-Chili-Powder/dp/B0000D179V" target="_blank">super hot reshampatti</a> (told you it was going to be hot&#8230; cut this amount in half for a milder flavor)</li>
<li>1/2 tsp <a href="http://www.southrivermiso.com/store/p/4-Chickpea-Miso.html" target="_blank">chickpea miso</a></li>
<li>1 handful dried pumpkin or sunflower seeds</li>
<li>1 tsp Lemon juice, cider vinegar, or red wine vinegar (subtly different flavor, experiment here as you like)</li>
<li>Salt</li>
<li>Pepper</li>
</ul>
<p>With a sturdy knife, remove large stems (anything larger than a strand of spaghetti) from the kale leaving only the leaves. Discard stems.  Wash and set aside leaves to dry.</p>
<p>While leaves are drying, combine the next 6 ingredients (through lemon juice) into a blender, food processor.  Puree ingredients together into a liquid. Add a dash of salt and pepper to suit your preference.</p>
<p>Rub the kale leaves with the spice liquid.  <strong>Do not overapply </strong>- the mixture should just lightly coat the kale leaves.   Dehydrate 8 to 10 hours at medium setting (125 degrees) or longer at lower settings.</p>
<div class="shr-publisher-4347"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F4347' data-shr_title='Summer%27s+Here%3A+Our+Recipe+for+Spicy+Kale+Chips'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F4347' data-shr_title='Summer%27s+Here%3A+Our+Recipe+for+Spicy+Kale+Chips'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.securitycurve.com/wordpress/archives/4347/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If wishes were horses&#8230; wow, would the stables be ripe</title>
		<link>http://www.securitycurve.com/wordpress/archives/3987?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=if-wishes-were-horses-wow-would-the-stables-be-ripe</link>
		<comments>http://www.securitycurve.com/wordpress/archives/3987#comments</comments>
		<pubDate>Mon, 18 Apr 2011 13:46:43 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Useless Shizz]]></category>
		<category><![CDATA[Yubico]]></category>
		<category><![CDATA[Yubikey]]></category>

		<guid isPermaLink="false">http://www.securitycurve.com/wordpress/?p=3987</guid>
		<description><![CDATA[You know what I really want? A Yubikey that includes data storage. It doesn&#8217;t have to be a lot of storage&#8230; I&#8217;d be OK with 8 or even 16 gig.  It&#8217;s just that there it is occupying space in my USB port all day&#8230;  Sure, it authenticates me (which is great), but right now I [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.securitycurve.com/wordpress/wp-content/uploads/2011/04/Wishes1.jpg" rel="lightbox[3987]"><img class="alignright size-full wp-image-3989" title="Wishes" src="http://www.securitycurve.com/wordpress/wp-content/uploads/2011/04/Wishes1.jpg" alt="" width="402" height="337" /></a></p>
<p>You know what I really want?  A <a href="http://www.yubico.com/" target="_blank">Yubikey</a> that includes data storage.</p>
<p>It doesn&#8217;t have to be a lot of storage&#8230; I&#8217;d be OK with 8 or even 16 gig.  It&#8217;s just that there it is occupying space in my USB port all day&#8230;  Sure, it authenticates me (which is great), but right now I have to bring it around to multiple computers (so I can log in to stuff)&#8230; so while it&#8217;s there, why not have some storage too?</p>
<p>To *really* put on my wishing hat and hope for stuff that probably won&#8217;t happen anytime soon, in an ideal world the Yubikey would have:</p>
<ul>
<li>Dedicated storage for one or more browser-installable certificates</li>
<li>8 or 16 Gb of &#8220;whatever&#8221; storage</li>
<li>Enough &#8220;pep&#8221; to be able to support <a href="http://en.wikipedia.org/wiki/ReadyBoost" target="_blank">ReadyBoost</a></li>
<li>Built-in encryption for stored data</li>
</ul>
<p>Sigh&#8230; makes my eyes misty just thinking about it.</p>
<div class="shr-publisher-3987"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F3987' data-shr_title='If+wishes+were+horses...+wow%2C+would+the+stables+be+ripe'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F3987' data-shr_title='If+wishes+were+horses...+wow%2C+would+the+stables+be+ripe'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.securitycurve.com/wordpress/archives/3987/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Let&#8217;s (not) go to the videotape&#8230;</title>
		<link>http://www.securitycurve.com/wordpress/archives/3243?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=lets-not-go-to-the-videotape</link>
		<comments>http://www.securitycurve.com/wordpress/archives/3243#comments</comments>
		<pubDate>Fri, 17 Dec 2010 18:20:08 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Useless Shizz]]></category>

		<guid isPermaLink="false">http://www.securitycurve.com/wordpress/?p=3243</guid>
		<description><![CDATA[I came across this interesting-looking link this morning that purports to be advice about how to protect your organization from social engineering. I went to the site only to discover that it&#8217;s a video.  At the exact moment I discovered it to be a video, I completely lost interest in viewing it &#8211; and, in [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.securitycurve.com/wordpress/wp-content/uploads/2010/12/sex_lies.png" rel="lightbox[3243]"><img class="alignright size-medium wp-image-3244" title="sex_lies" src="http://www.securitycurve.com/wordpress/wp-content/uploads/2010/12/sex_lies-300x227.png" alt="" width="300" height="227" /></a>I came across this <a href="http://www.net-security.org/article.php?id=1545" target="_blank">interesting-looking link</a> this morning that purports to be advice about how to protect your organization from social engineering.</p>
<p>I went to the site only to discover that it&#8217;s a video.  At the exact moment I discovered it to be a video, I completely lost interest in viewing it &#8211; and, in fact, I decided not to&#8230;</p>
<p>I&#8217;m wondering if I&#8217;m the only one to have this reaction or if this is a normal reaction.  Are folks who publish in video format losing readers (or I guess in this case, viewers) because of the medium they choose to publish in?  Just wondering&#8230;</p>
<div class="shr-publisher-3243"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F3243' data-shr_title='Let%27s+%28not%29+go+to+the+videotape...'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F3243' data-shr_title='Let%27s+%28not%29+go+to+the+videotape...'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.securitycurve.com/wordpress/archives/3243/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Friday Time-waster part 322, X3 Terran Conflict</title>
		<link>http://www.securitycurve.com/wordpress/archives/2925?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=friday-time-waster-part-322-x3-terran-conflict</link>
		<comments>http://www.securitycurve.com/wordpress/archives/2925#comments</comments>
		<pubDate>Fri, 08 Oct 2010 19:43:04 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Useless Shizz]]></category>
		<category><![CDATA[Friday]]></category>
		<category><![CDATA[X3]]></category>

		<guid isPermaLink="false">http://www.securitycurve.com/wordpress/?p=2925</guid>
		<description><![CDATA[Ah yes&#8230; you wait all week for it to get to be Friday, but then you&#8217;re not sure what to do after a long day of work.  You know what I recommend? Video gaming, of course. And what could be more awesome than the next stop in the continuing awesomeness of the Egosoft X Universe [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.securitycurve.com/wordpress/wp-content/uploads/2010/10/x3terranconflict_2.jpg" rel="lightbox[2925]"><img class="alignright size-medium wp-image-2926" title="x3terranconflict_2" src="http://www.securitycurve.com/wordpress/wp-content/uploads/2010/10/x3terranconflict_2-300x224.jpg" alt="" width="300" height="224" /></a>Ah yes&#8230; you wait all week for it to get to be Friday, but then you&#8217;re not sure what to do after a long day of work.  You know what I recommend?</p>
<p>Video gaming, of course.</p>
<p>And what could be more awesome than the next stop in the continuing awesomeness of the Egosoft X Universe saga than the excellent<a href="http://www.egosoft.com/games/x3tc/info_en.php" target="_blank"> X3 Terran Conflict</a>.  If you liked X3 Reunion, you&#8217;re sure to love this one. If you liked Mass Effect 2 (is it even possible for it to be otherwise?), you&#8217;ll love this.</p>
<p>And what&#8217;s even better?  It&#8217;s <a href="http://store.steampowered.com/app/2820/" target="_blank">available on Steam</a>, so you can play it today &#8211; no waiting.</p>
<div class="shr-publisher-2925"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F2925' data-shr_title='Friday+Time-waster+part+322%2C+X3+Terran+Conflict'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F2925' data-shr_title='Friday+Time-waster+part+322%2C+X3+Terran+Conflict'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.securitycurve.com/wordpress/archives/2925/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Friday time-waster, part 392.  Best game ever made</title>
		<link>http://www.securitycurve.com/wordpress/archives/2904?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=friday-time-waster-part-392-best-game-ever-made</link>
		<comments>http://www.securitycurve.com/wordpress/archives/2904#comments</comments>
		<pubDate>Fri, 01 Oct 2010 13:39:00 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Useless Shizz]]></category>
		<category><![CDATA[Merchant Prince]]></category>

		<guid isPermaLink="false">http://www.securitycurve.com/wordpress/?p=2904</guid>
		<description><![CDATA[Yes, I finally got it working again.  The.  best.  game. ever.   Hands down.  And I&#8217;m not the only one who says so. More engaging than Portal.  More addictive than World of Warcraft.  More pixeley than either Seven Cities of Gold and Legacy of the Ancients combined.  So good.  And so DOS-ey. Anyway, should you care [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.securitycurve.com/wordpress/wp-content/uploads/2010/10/g051533h3u3.jpg" rel="lightbox[2904]"><img class="alignright size-full wp-image-2905" title="g051533h3u3" src="http://www.securitycurve.com/wordpress/wp-content/uploads/2010/10/g051533h3u3.jpg" alt="" width="200" height="234" /></a>Yes, I finally got it working again.  The.  best.  game. ever.   Hands down.  And <a href="http://www.homeoftheunderdogs.net/game.php?name=Machiavelli%20The%20Prince" target="_blank">I&#8217;m not the only one</a> who says so.</p>
<p>More engaging than Portal.  More addictive than World of Warcraft.  More pixeley than either <a href="http://en.wikipedia.org/wiki/The_Seven_Cities_of_Gold_(video_game)" target="_blank">Seven Cities of Gold</a> and <a href="http://en.wikipedia.org/wiki/Legacy_of_the_Ancients" target="_blank">Legacy of the Ancients</a> combined.  So good.  And so DOS-ey.</p>
<p>Anyway, should you care (not expecting you to &#8211; just sayin&#8217;), I used to keep a computer around running Windows 95 (the last OS it would run on cleanly) for the express purpose of playing this game.  Now, however, thanks to the magic of <a href="http://www.dosbox.com/" target="_blank">DosBox</a>, that&#8217;s no longer a requirement.</p>
<p>If you don&#8217;t happen to have a copy from back in the day, I&#8217;ve heard it&#8217;s available from abandonware sites&#8230; although I think that could be piracy, so if it were me, I&#8217;d <a href="http://www.amazon.com/Merchant-Prince-2-Pc/dp/B00005A8Y6/ref=sr_1_1?s=software&amp;ie=UTF8&amp;qid=1285940007&amp;sr=1-1" target="_blank">buy it used instead from Amazon.com</a> (well, the remake anyway &#8211; better graphics, not quite so good gameplay).  It&#8217;s 50 bucks nowadays &#8211; a bit steeper from when I bought it there back in 2003&#8230; but still more than reasonable for how awesome it is.</p>
<div class="shr-publisher-2904"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F2904' data-shr_title='Friday+time-waster%2C+part+392.++Best+game+ever+made'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F2904' data-shr_title='Friday+time-waster%2C+part+392.++Best+game+ever+made'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.securitycurve.com/wordpress/archives/2904/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coding challenge, crowd-sourcing finding the answers</title>
		<link>http://www.securitycurve.com/wordpress/archives/2419?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=coding-challenge-crowd-sourcing-finding-the-answers</link>
		<comments>http://www.securitycurve.com/wordpress/archives/2419#comments</comments>
		<pubDate>Tue, 10 Aug 2010 13:45:33 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Analysis]]></category>
		<category><![CDATA[Useless Shizz]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.securitycurve.com/wordpress/?p=2419</guid>
		<description><![CDATA[So, I mentioned the Blackhat coding challenge the other day.  I still haven&#8217;t seen the answers out there pop up in the wild, wild, world of web, and it&#8217;s got me frustrated.  So in the interests of figuring out if I&#8217;m right or not, I figure I&#8217;ll post my thoughts here and &#8220;crowd source&#8221; finding [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><img class="alignright" src="http://www.ciee.org/intern/images/barkers/check-work/check-background.gif" alt="" width="238" height="294" />So, I mentioned the <a href="http://www.securitycurve.com/wordpress/archives/2291" target="_blank">Blackhat coding challenge</a> the other day.  I still haven&#8217;t seen the answers out there pop up in the wild, wild, world of web, and it&#8217;s got me frustrated.  So in the interests of figuring out if I&#8217;m right or not, I figure I&#8217;ll post my thoughts here and &#8220;crowd source&#8221; finding out if I&#8217;m right or not.</p>
<h3><a href="http://msmvps.com/blogs/alunj/archive/2010/07/29/1774906.aspx" target="_blank">Challenge #1 </a></h3>
<pre>public:
    static bool isDifferent(
        const someClass const * oldObject,
        const someClass const * newObject)
    {
        return
            oldObject != newObject &amp;&amp;
            oldObject != NULL &amp;&amp;
            !oldObject-&gt;equals(newObject);
    }</pre>
<p>In the unlikely event that I&#8217;m right, putting this here could be a bit spoilerey (I don&#8217;t want to step on anyone&#8217;s good time), so please stop reading RIGHT NOW in the case you don&#8217;t want to see a possible answer (no guarantee btw that it is the right one).</p>
<p>My answers:</p>
<p>So there are a few issues I think with this &#8211; some stylistic problems and &#8220;the whammy&#8221;.  The small stuff is:</p>
<ul>
<li>Use of second const is unnecessary</li>
<li>Passing by reference (e.g. const someClass &amp; newObj) instead of the pointer could be safer here since the compiler will help enforce validity</li>
<li>newObject is not tested for validity before being passed to the equals() method</li>
<li>The return statement is complicated and hard to read.  Recommend breaking it out to multiple lines</li>
<li>Return value tests for null pointer but does not test for validity (if non-null) – a function/macro like ISVALIDPTR/IsValidPtr() would help this situation when passing pointer instead of reference</li>
<li>Return value indicates both success/fail as well as result.  Recommend structured exception handling and returning only the result</li>
</ul>
<p>Stylistic issues&#8230; blah.  But then there&#8217;s this:</p>
<p><strong>Big problem:</strong> The return statement resolves right to left, meaning you’re asking the compiler to dereference oldObject before you’ve tested it for validity.  Best case, you crap out.  Worst case, it&#8217;s a security problem.</p>
<h3><a href="http://msmvps.com/blogs/alunj/archive/2010/07/31/1775060.aspx" target="_blank">Challenge #2</a></h3>
<pre>wchar_t *fillString(
    wchar_t content, unsigned int repeat)
{
    wchar_t *buffer;
    size_t size;
    if (repeat &gt; 0x7fffffffe)
        return 0;
    size = ( repeat + 1 ) * sizeof content;
    buffer = (wchar_t *) malloc ( size );
    if ( buffer == 0 )
        return 0;
    wmemset(buffer, content, repeat);
    buffer[ repeat ] = 0;
    return buffer;
}</pre>
<p>Again, please not to keep reading if you don&#8217;t want to hear my thoughts on the solution.</p>
<p>Small stuff:</p>
<ul>
<li>buffer and size are not initialized</li>
<li>if this is C++, why malloc instead of new?</li>
<li>Comparison with repeat should be a #define (e.g. if repeat &gt; MAX_SIZE) instead of an architecture/OS dependent value, remembering to take into account that wchar_t is of variable size (usually either 16 or 32 bit)</li>
<li>Recommend return comparison on malloc result be NULL instead of 0 (usually NULL == 0, but I find it more readable)</li>
<li>Recommend structured exception handling rather than returning null pointer if there is an issue (e.g. if (!buffer) { throw MemoryException(“Memory could not be allocated”); } or some such</li>
</ul>
<p>Again, little stuff is stylistic.  Bigger problem IMHO is this:</p>
<p><strong>Big problem:</strong> it’s a wide character buffer.  And 0 is not the literal for a multibyte null.  You’re gambling on the compiler doing the right thing, which it may or may not.   This may work, but it’s a crap-shoot.  Replace with L’\0’, the multibyte character literal null (if one were going to fill the string this way &#8211; which I also wouldn’t recommend that you do.)</p>
<p><span style="font-size: 13.3333px;">So that&#8217;s what I came up with.  Anybody else find anything different?</span></p>
<div class="shr-publisher-2419"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F2419' data-shr_title='Coding+challenge%2C+crowd-sourcing+finding+the+answers'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F2419' data-shr_title='Coding+challenge%2C+crowd-sourcing+finding+the+answers'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.securitycurve.com/wordpress/archives/2419/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Musings on seniors and ID theft</title>
		<link>http://www.securitycurve.com/wordpress/archives/1712?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=musings-on-seniors-and-id-theft</link>
		<comments>http://www.securitycurve.com/wordpress/archives/1712#comments</comments>
		<pubDate>Wed, 30 Jun 2010 12:49:22 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Analysis]]></category>
		<category><![CDATA[Useless Shizz]]></category>
		<category><![CDATA[Drivel]]></category>
		<category><![CDATA[Stealing Stuff]]></category>

		<guid isPermaLink="false">http://www.securitycurve.com/wordpress/?p=1712</guid>
		<description><![CDATA[Given the string of well-publicized ID theft schemes recently, it seemed HelpNet&#8217;s choice of putting out tips for seniors to avoid identity theft was a good idea. Of course, then it occurred to me that maybe HelpNet wasn&#8217;t in the top ten of sites that the elderly are likely to read with any frequency.   [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class="wp-caption alignright" style="width: 310px"><img src="http://www.nataliedee.com/061909/corn-eating-tips.jpg" alt="" width="300" height="289" /><p class="wp-caption-text">Useful tip from nataliedee.com</p></div>
<p>Given the string of well-publicized <a href="http://www.net-security.org/secworld.php?id=9495" target="_blank">ID theft schemes recently</a>, it seemed HelpNet&#8217;s choice of putting out <a href="http://www.net-security.org/secworld.php?id=9501" target="_blank">tips for seniors to avoid identity theft</a> was a good idea.</p>
<p>Of course, then it occurred to me that maybe HelpNet wasn&#8217;t in the top ten of sites that the elderly are likely to read with any frequency.    So good effort, HelpNet&#8230; but your tips, though useful, are likely to go unread.</p>
<p>Which is a shame.  Because seniors (particularly those that don&#8217;t use computers or the Internet) are at risk &#8211; more-so because of the online access to records and data.  Those folks don&#8217;t realize they are move vulnerable now than they were twenty years ago.  But they are.</p>
<p>Of course, it&#8217;s no wonder why.  Note that I&#8217;m not about to dig on HelpNet, but I think the following screen capture of the article-reading experience illustrates just a tiny bit of why this problem is as big as it is.  Namely, conflicting and contradictory advice &#8211; even from the same source.  Check it out:</p>
<p><a href="http://www.securitycurve.com/wordpress/wp-content/uploads/2010/06/hn_irony1.jpg" rel="lightbox[1712]"><img class="alignnone size-medium wp-image-1724" title="hn_irony" src="http://www.securitycurve.com/wordpress/wp-content/uploads/2010/06/hn_irony1-300x176.jpg" alt="" width="300" height="176" /></a></p>
<p>If you can&#8217;t read the text and don&#8217;t want to follow the link, the text warns about the dangers with supplying your email address to web sites&#8230; right under the box where you can submit your email address to their website.  Mixed message.</p>
<p>Anyway, just a few thoughts.</p>
<div class="shr-publisher-1712"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F1712' data-shr_title='Musings+on+seniors+and+ID+theft'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F1712' data-shr_title='Musings+on+seniors+and+ID+theft'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.securitycurve.com/wordpress/archives/1712/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Friday afternoon (security) humor</title>
		<link>http://www.securitycurve.com/wordpress/archives/1676?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=friday-afternoon-security-humor</link>
		<comments>http://www.securitycurve.com/wordpress/archives/1676#comments</comments>
		<pubDate>Fri, 25 Jun 2010 22:54:39 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Useless Shizz]]></category>

		<guid isPermaLink="false">http://www.securitycurve.com/?p=1676</guid>
		<description><![CDATA[Came across this today (from here) and couldn&#8217;t resist passing it along.  Please to enjoy the security humor.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><img class="alignright" src="http://techliberation.com/wp-content/uploads/2008/08/myfirstcavitysearch.jpg" alt="" width="300" height="300" />Came across this today (from <a href="http://www.mckeay.net/category/humor/page/2/" target="_blank">here</a>) and couldn&#8217;t resist passing it along.  Please to enjoy the security humor.  </p>
<div class="shr-publisher-1676"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F1676' data-shr_title='Friday+afternoon+%28security%29+humor'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F1676' data-shr_title='Friday+afternoon+%28security%29+humor'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.securitycurve.com/wordpress/archives/1676/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun Friday Stuff</title>
		<link>http://www.securitycurve.com/wordpress/archives/537?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fun-friday-stuff</link>
		<comments>http://www.securitycurve.com/wordpress/archives/537#comments</comments>
		<pubDate>Fri, 23 Jan 2009 19:24:23 +0000</pubDate>
		<dc:creator>Ed</dc:creator>
				<category><![CDATA[Useless Shizz]]></category>

		<guid isPermaLink="false">http://securitycurve.com/wordpress/?p=537</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><img src="http://www.drones.com/BooceUke.jpg" align=right hspace=5 vspace=5>OK, so in the spirit of kicking back on the Friday, please to enjoy the picture of this self-proclaimed <a href="http://en.wikipedia.org/wiki/Drones_Club/">drone</a> kicking up some rowdy festiveness on his <a href="http://en.wikipedia.org/wiki/Banjolele">banjolele</a>.</p>
<p>Or, if you prefer something that makes you think instead, check out this <a href="http://throughthelookingglass.typepad.com/through_the_looking_glass/2009/01/worth-a-watch.html">video of pure awesomeness</a> courtesy of Liz Safran&#8217;s <a href="http://throughthelookingglass.typepad.com/">Through the Looking Glass blog</a>.  The blog is worth a subscribe, by the way, if you don&#8217;t follow it already.</p>
<div class="shr-publisher-537"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F537' data-shr_title='Fun+Friday+Stuff'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.securitycurve.com%2Fwordpress%2Farchives%2F537' data-shr_title='Fun+Friday+Stuff'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.securitycurve.com/wordpress/archives/537/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

