<?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>[boomshadow.net~]#</title>
	<atom:link href="http://boomshadow.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://boomshadow.net</link>
	<description>Tech, filmmaking, &#38; thoughts.</description>
	<lastBuildDate>Sat, 19 May 2012 06:49:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>SSH Key Authentication</title>
		<link>http://boomshadow.net/tools-utilities/ssh-key-authentication/</link>
		<comments>http://boomshadow.net/tools-utilities/ssh-key-authentication/#comments</comments>
		<pubDate>Fri, 11 May 2012 15:00:34 +0000</pubDate>
		<dc:creator>Jacob "Boom Shadow" Tirey</dc:creator>
				<category><![CDATA[Tools-Utilities]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://boomshadow.net/?p=915</guid>
		<description><![CDATA[One of the critical parts of administrating your server is by logging into SSH as root. With the command line, you can roll up the proverbial sleeves and really dig in: installing software, changing system configuration, investigating problems, etc&#8230; But what about the security concern of logging into a system with all that control and&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://boomshadow.net/wp-content/uploads/2012/05/3d-keys.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/05/3d-keys-150x150.gif" alt="" title="3D Keys" width="150" height="150" class="alignleft size-thumbnail wp-image-930" /></a>One of the critical parts of administrating your server is by logging into SSH as root. With the command line, you can roll up the proverbial sleeves and really dig in: installing software, changing system configuration, investigating problems, etc&#8230; But what about the security concern of logging into a system with all that control and you&#8217;ve only got a password? This is where Key authentication comes in.</p>
<p>Instead of typing in a password, you can generate an encrypted key pair that is used to authenticate you when logging in. The server will look to see if you have this key file on your computer instead. There is a good little overview of the process from cPanel <a href="http://www.cpanel.net/2007/06/using-public-key-authentication-for-ssh-and-transfers.html" target="_blank">here</a>.</p>
<p>This is a great security measure to implement as it allows you to control which systems can access your server. You can also turn password authentication off and your server will be immune to SSH password attacks. This is major step in security hardening and is highly advised.</p>
<h4>Generating the Keys</h4>
<p>To get started, we are going to need to generate a Key pair on your computer (the public and private key). Load up a terminal and run:</p>
<pre>ssh-keygen -t rsa</pre>
<p>It will ask where to save the key file. You can leave it at the default location.</p>
<pre class="brush: ; gutter: false;">
Enter file in which to save the key (/Users/user/.ssh/id_rsa): id_rsa
</pre>
<p>Next, it will ask for a passphrase.</p>
<pre class="brush: ; gutter: false;">
Enter passphrase (empty for no passphrase):
</pre>
<p>You can leave this blank if you simply want to leave the private key unlocked. This will make logins quite easy as you won&#8217;t have to type anything in and you will &#8220;auto-login&#8221;. However, for an added layer of security, you can set a password to unlock the private key.</p>
<p>It will ask for the passphrase again. Press ener to leave it blank.</p>
<pre class="brush: ; gutter: false;">
Enter same passphrase again:
</pre>
<p>Finally, it will output confirmation of the keys&#8217; location and the fingerprint:</p>
<pre class="brush: ; gutter: false;">
Your identification has been saved in id_rsa.
Your public key has been saved in id_rsa.pub.
The key fingerprint is:
7b:2d:25:c2:2e:2a:1a:ea:76:3a:96:ed:1a:29:8b:9b
</pre>
<h4>Copying the Public Key</h4>
<p>Now you will need to get a copy of the public key you just made. Simply cat the file:</p>
<pre class="brush: ; gutter: false;">
cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwsIU0uzZVu6uf2GgM9B4Z7sNn5jMEs1yDrjvdI4ChXrkADegfltv0CESXknoU4NI57Dw0kyc3eJ7bADyI0uBH0PxDTZAOSKKyogsnRtgXbFLKHXpOOyiG51M9tjobObNo6SDmzbeVD5GzlmnPpgMMUoqpjYe3P45g6ouw/3Gcwt+BwZG5loSknk9lkndbyTmhb5gc4jAMYIQ3QAWCtPES04jyUWMFZ/oUn5bMaTKG2aHCgn0wTYR8ih3Ewptp0XV2z77WUmGnJV6t5wE1kZqltdh52aHTeRLoYAFoFWPt4i6sUjhFPufjeyxdXsSR5dsdqUFZRX1dsCJkGWZzfLb3w== user@computer.local
</pre>
<h4>Importing Key to the Server</h4>
<p>We&#8217;ll add the key to the server and authorize it (we have to tell the server that this particular key is allowed to access the server). Log into WHM and navigate to: Main >> Security Center >> Manage root’s SSH Keys. Click on &#8216;Import Key&#8217;</p>
<p><a href="http://boomshadow.net/wp-content/uploads/2012/05/Import-key.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/05/Import-key-300x295.gif" alt="" title="Import SSH Key" width="300" height="295" class="aligncenter size-medium wp-image-920" /></a></p>
<p>On the next screen, you will want to scroll down and look for the last box that says &#8220;Paste the Public Key in this box:&#8221;. Paste your public key into that box. Leave the other boxes blank. It will automatically fill in the name. Hit &#8216;Import&#8217;.</p>
<p><a href="http://boomshadow.net/wp-content/uploads/2012/05/Paste-key.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/05/Paste-key-240x300.gif" alt="" title="Paste the Key" width="240" height="300" class="aligncenter size-medium wp-image-923" /></a></p>
<p>On the next screen it will tell you the import was successful. Click on &#8220;Return to SSH Manager&#8221;. This brings you back to the Key management screen. You will click on &#8220;Manage Authorization&#8221;</p>
<p><a href="http://boomshadow.net/wp-content/uploads/2012/05/manage-authorization.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/05/manage-authorization-300x194.gif" alt="" title="Manage Authorization" width="300" height="194" class="aligncenter size-medium wp-image-924" /></a></p>
<p>Finally, click on the button for &#8220;Authorize&#8221;.</p>
<p><a href="http://boomshadow.net/wp-content/uploads/2012/05/authorize-key.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/05/authorize-key-300x136.gif" alt="" title="Authorize Key" width="300" height="136" class="aligncenter size-medium wp-image-925" /></a></p>
<p>You are done! Try logging into SSH and it should look for your key.</p>
<h4>Server Hardening &#8211; Disable Password Authentication</h4>
<p>Now, you can take your security one step further and completely disable password logins for SSH. You will have no more fears of hackers trying to guess your SSH passwords.</p>
<p>To set this up, while still in WHM, navigate to: Main >> Security Center >> SSH Password Authorization Tweak. Click on &#8220;Disable Password Auth&#8221;</p>
<p><a href="http://boomshadow.net/wp-content/uploads/2012/05/disable-password.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/05/disable-password-300x119.gif" alt="" title="Disable Password Authentication" width="300" height="119" class="aligncenter size-medium wp-image-927" /></a></p>
<p>And that is that. As cPanel so eloquently puts it: Now, sit back and relax as hackers will no longer be able to gain ssh access through password cracking. They will, instead, receive errors like:</p>
<pre class="brush: ; gutter: false;">
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
</pre>
<h2>Notes</h2>
<p>The encryption method used for this was &#8216;RSA&#8217;. RSA is natively implemented in more places (it is the default key type on most generators and commercial RSA certificates are much more widely deployed) and it defaults to 2048 bit key length. At the time of this writing, for DSA to be compliant, it has to be exactly 1024 bit, which is less secure. The general consensus is that both DSA and RSA are pretty equal in security quality and speed when used merely for authentication. Either you choose will be fine as long as you follow safe security practices: use higher bit key encryption, only use SSH v2, keep your software up to date, and protect your private key. </p>
<p>References:<br />
<a href="http://security.stackexchange.com/questions/5096/rsa-vs-dsa-for-ssh-authentication-keys/5100#5100" target="_blank">http://security.stackexchange.com/questions/5096/rsa-vs-dsa-for-ssh-authentication-keys/5100#5100</a></p>
<p><a href="http://encryptme.wordpress.com/2011/05/25/ssh-keys-rsa-vs-dsa/" target="_blank">http://encryptme.wordpress.com/2011/05/25/ssh-keys-rsa-vs-dsa/</a></p>
<p><a href="http://www.linuxforums.org/forum/security/48093-openssh-user-host-authentication-rsa-versus-dsa-provides-stronger-security.html#post498142" target="_blank">http://www.linuxforums.org/forum/security/48093-openssh-user-host-authentication-rsa-versus-dsa-provides-stronger-security.html#post498142</a></p>
<h2>Note about this article</h2>
<p>This article is one I had written for the ServInt blog as part of the &#8216;Tech bench&#8217; series. You can view it on the <a href="http://blog.servint.net/2012/05/11/the-tech-bench-ssl-key-authentication/" title="ServInt Blog" target="_blank">ServInt blog here</a>. Used with permission.</p>
]]></content:encoded>
			<wfw:commentRss>http://boomshadow.net/tools-utilities/ssh-key-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to forward/archive all email for a user</title>
		<link>http://boomshadow.net/tech/forward-all-emails/</link>
		<comments>http://boomshadow.net/tech/forward-all-emails/#comments</comments>
		<pubDate>Thu, 03 May 2012 16:18:57 +0000</pubDate>
		<dc:creator>Jacob "Boom Shadow" Tirey</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[archiving]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[forward]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://boomshadow.net/?p=890</guid>
		<description><![CDATA[Ever wanted to archive all of your incoming and outgoing mail, or ever wanted to spy on your employee's mail (if you were to be so dubiously inclined)? Today, I show you how to configure Exim to quietly send a copy of all incoming and outgoing message for an address.]]></description>
			<content:encoded><![CDATA[<p><a href="http://boomshadow.net/wp-content/uploads/2012/05/Email-Forwarding.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/05/Email-Forwarding-150x150.gif" alt="Email Forwarding icon" title="Email-Forwarding" width="150" height="150" class="alignleft size-thumbnail wp-image-906" /></a></p>
<p>Today I am going to show you something pretty nifty: how to forward a copy of all incoming and outgoing mail for a particular email user. If you are the cautious type, or simply the email hoarding type like myself <img src='http://boomshadow.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  , this can be really handy for easy archival of all your mail. Exim can be configured so that your server will automatically (and quietly) send a copy of every message you send and receive over to another email address. This is all done without you noticing anything extra in the &#8216;To&#8217; or &#8216;CC&#8217; fields. Silent and effective.</p>
<p>This could also be used to secretly keep track of your users&#8217; emails and monitoring what they do. I had a friend of mine recently ask me to help him set this up for him on a new Sales employee he had. He wanted to make sure they were taking care of the clients properly. While I may not personally agree with the privacy concerns of spying on another person&#8217;s email, I acknowledge that it can be used in this purpose and there are those out there who have no problem implementing it for this reason.</p>
<p>However, that is an argument of principles best saved for another time. I personally believe that all knowledge is power and people will do with their lives as they feel is best. I will show you the tech side of how to set this up; you can do with it as you please.</p>
<p>*Note: You will need SSH root access to make the following changes </p>
<h4>Find the Exim System Filter file</h4>
<p>The changes we are making will be to the &#8216;System Filter File&#8217;. Obviously, we&#8217;re gonna need to know where it is located. It could be different on your cPanel box, so be sure to look it up.</p>
<p>Log into WHM and navigate to the section: Main >> Service Configuration >> Exim Configuration Manager. Alternatively, you can simply type &#8216;Exim&#8217; into the search bar and it will be the first result.</p>
<p><a href="http://boomshadow.net/wp-content/uploads/2012/05/WHM-Exim.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/05/WHM-Exim.gif" alt="Exim configuration menu in WHM" title="WHM-Exim" width="550" height="208" class="aligncenter size-full wp-image-897" /></a></p>
<p>Next, scroll down and locate the &#8220;System Filter File&#8221; section. It should list the default location. On my server, it is:</p>
<pre>/etc/cpanel_exim_system_filter</pre>
<p><a href="http://boomshadow.net/wp-content/uploads/2012/05/Exim-default.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/05/Exim-default.gif" alt="Default setting in Exim configuration" title="Exim-default" width="550" height="191" class="aligncenter size-full wp-image-899" /></a></p>
<p>Leave WHM open for now because we will be coming back to it shortly.</p>
<h4>Edit the Exim System Filter file</h4>
<p>One thing I must note is that you will not actually be directly editing the system filter file. <a href="http://forums.cpanel.net/f43/hidden-copies-incoming-outgoing-emails-201801.html#post922442" target="_blank">cPanel staff has stated</a> that if you do, the changes will get overwritten during cPanel updates. Instead, we are going to make a copy of it and make our changes to the new custom file. cPanel updates will not change your custom file.</p>
<p>*Note: Exim version changes, however, WILL overwrite custom files. When cPanel 11.34 comes out, Exim is likely to get a version change. Make sure you back up this file ahead of time. </p>
<p>Let&#8217;s get started. Log into SSH and copy the system filter file:</p>
<pre>cp /etc/cpanel_exim_system_filter /etc/cpanel_exim_system_filter_custom</pre>
<p>Next, edit the newly made file:</p>
<pre>nano /etc/cpanel_exim_system_filter_custom</pre>
<p>And place the following template at the very bottom:</p>
<pre>
### FORWARD ALL INCOMING AND OUTGOING MAIL FOR A USER ###

if ("$h_to:, $h_cc:, $h_bcc" contains "user@domain.com")
   or ("$h_from:" contains "user@domain.com")
then
   unseen deliver "archive-address@domain.com"
endif
</pre>
<p>The code above will send a copy of any email that is sent &#8220;To&#8221;, &#8220;CC&#8221;, and even &#8220;BCC&#8221; to your address. It will also send a copy for all outgoing mail. Be sure to replace the example addresses above with your actual email addresses. Save and exit the file.</p>
<h4>Reconfigure &#038; Restart Exim</h4>
<p>Now, you need to go back to WHM and change the system filter file location. Basically, we&#8217;re going to reconfigured Exim to use that new file we made instead of the default one. Copy and paste the full path to your new file into the 3rd field:</p>
<p><a href="http://boomshadow.net/wp-content/uploads/2012/05/Exim-changed.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/05/Exim-changed.gif" alt="Modified Exim configuration" title="Exim-changed" width="550" height="191" class="aligncenter size-full wp-image-898" /></a></p>
<p>Scroll down and hit &#8216;Save&#8217;. Finally, all you need to do now is restart Exim:</p>
<pre>service exim restart</pre>
<p>And that is that! Your server will now start archiving all your email to the address you specified. You&#8217;re going to start getting a lot of extra mail at that address so be sure you have some automatic message organization setup such as User level filtering in cPanel or Message filters in your email client to sort them all the messages into folders. If not, you may have a little bit of a messy inbox next time you log in <img src='http://boomshadow.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h2>References</h2>
<p>Special thanks goes out to <a href="http://forums.cpanel.net/members/cpaneltristan/" target="_blank">cPanel Tristan</a>. You always know your stuff and are great at helping! I really enjoy getting you in the ticket system and then also finding fixes in the forums that happen to be posted by you as well. It makes my day every time. Research for this article found on the cPanel forums <a href="http://forums.cpanel.net/f43/hidden-copies-incoming-outgoing-emails-201801.html#post828491" target="_blank">here</a></p>
<p>Also, thanks goes to Vinayak on the cPanel forums <a href="http://forums.cpanel.net/f43/want-save-all-outgoing-email-read-later-108285.html#post481941" target="_blank">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://boomshadow.net/tech/forward-all-emails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More light painting</title>
		<link>http://boomshadow.net/thoughts/more-light-painting/</link>
		<comments>http://boomshadow.net/thoughts/more-light-painting/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 13:22:10 +0000</pubDate>
		<dc:creator>Jacob "Boom Shadow" Tirey</dc:creator>
				<category><![CDATA[Thoughts]]></category>
		<category><![CDATA[light painting]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://boomshadow.net/?p=847</guid>
		<description><![CDATA[Last night I decided to have some fun and play around with light painting once again. Its such simple creative fun. Here are the resulting photos.]]></description>
			<content:encoded><![CDATA[
<p>Last night I decided to have some fun and play around with <a href="http://www.diyphotography.net/painting_with_light" target="_blank">light painting</a> once again. I love how easy it is to do and you have instant gratification on the results (assuming you&#8217;re using a digital SLR). No post-production editing, no rendering, no file transcoding. Just flip through the images directly on the camera. All you need is an SLR camera and some LED lights (and glow sticks for fun if you want to get really creative!)</p>
<p>Someday soon, I&#8217;ll have to post the pictures from my first session with light painting. For now, enjoy fun times #2:</p>

<div class="ngg-galleryoverview" id="ngg-gallery-2-847">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://boomshadow.net/thoughts/more-light-painting/?show=slide">
			[Show as slideshow]		</a>
	</div>

	
	<!-- Thumbnails -->
		
	<div id="ngg-image-19" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1265.jpg" title="Thomas illuminated. Colin decided to draw a penis behind him. Quite funny in a juvenile way." class="shutterset_set_2" >
								<img title="Thomas" alt="Thomas" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1265.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-20" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1266.jpg" title="Smoke swirls. Made by swinging the necklace glow sticks." class="shutterset_set_2" >
								<img title="Smoke swirls" alt="Smoke swirls" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1266.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-21" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1267.jpg" title="Emma wrote her name, obviously. It turned out really well." class="shutterset_set_2" >
								<img title="Emma's name" alt="Emma's name" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1267.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-22" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1268.jpg" title="I'm not sure what was trying to be written here. But I think it looks like cool digital graffiti." class="shutterset_set_2" >
								<img title="Graffiti" alt="Graffiti" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1268.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-23" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1269.jpg" title="Colin holding up a bottle. Attempt #1. Heavy use of different glow sticks produced a lot of vibrant colors." class="shutterset_set_2" >
								<img title="Colin and bottle" alt="Colin and bottle" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1269.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-25" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1271.jpg" title="Colin illuminating his favorite pastime: Jack Daniels." class="shutterset_set_2" >
								<img title="Colin and Jack Daniels" alt="Colin and Jack Daniels" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1271.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-26" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1272.jpg" title="Nate holding up his good gal: Tina. (AKA: Vodka)" class="shutterset_set_2" >
								<img title="Nate and Tina" alt="Nate and Tina" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1272.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-27" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1276.jpg" title="The most interesting Doug in the world." class="shutterset_set_2" >
								<img title="Suave Doug" alt="Suave Doug" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1276.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-28" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1277.jpg" title="Nathan Silva. Enough said." class="shutterset_set_2" >
								<img title="Nate" alt="Nate" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1277.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-29" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1278.jpg" title="Emma Silva looking as lovely as can be. Light painted!" class="shutterset_set_2" >
								<img title="Emma" alt="Emma" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1278.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-30" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1280.jpg" title="Light painting manifestation of a fart. Not my idea, surprisingly, but I was all on board for it! It was hard to keep my head still." class="shutterset_set_2" >
								<img title="Digial fart" alt="Digial fart" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1280.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-31" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1282.jpg" title="BAM!! What more is there to say?" class="shutterset_set_2" >
								<img title="BAM" alt="BAM" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1282.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-32" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1283.jpg" title="Batman. Pure awesomeness." class="shutterset_set_2" >
								<img title="Batman" alt="Batman" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1283.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-33" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1284.jpg" title="Emma was writing &quot;Love and Hate&quot;. Not quite there, but its all for fun. I love how letters look when light painted. So vibrant !" class="shutterset_set_2" >
								<img title="Love and Hate" alt="Love and Hate" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1284.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-34" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1285.jpg" title="I attempted to draw a heart and an arrow going through it. Almost nailed it :P" class="shutterset_set_2" >
								<img title="Heart and Arrow" alt="Heart and Arrow" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1285.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-35" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1286.jpg" title="Doug got really creative here and greatly slowed down his spins on the necklace glow sticks. It made for some great color smoke." class="shutterset_set_2" >
								<img title="Colors Smoke" alt="Colors Smoke" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1286.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-36" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/img_1287.jpg" title="Thomas drew a boat. It arguably looks more like a cake though. :)" class="shutterset_set_2" >
								<img title="A boat" alt="A boat" src="http://boomshadow.net/wp-content/gallery/light-painting-april-2012/thumbs/thumbs_img_1287.jpg" width="250" height="166" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


<p>This sprint commercial was my original inspiration for trying light painting. Check it out:<br />
<object width="640" height="360"><param name="movie" value="http://www.youtube.com/v/lW_9SYaWAQg&#038;hl=en_US&#038;feature=player_embedded&#038;version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/lW_9SYaWAQg&#038;hl=en_US&#038;feature=player_embedded&#038;version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="360"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://boomshadow.net/thoughts/more-light-painting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hosts file modification</title>
		<link>http://boomshadow.net/tools-utilities/hosts-mod/</link>
		<comments>http://boomshadow.net/tools-utilities/hosts-mod/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 18:00:57 +0000</pubDate>
		<dc:creator>Jacob "Boom Shadow" Tirey</dc:creator>
				<category><![CDATA[Tools-Utilities]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://boomshadow.net/?p=771</guid>
		<description><![CDATA[Need help modifying your hosts file so you can test your domain? This utility will show you how to modify your computer's hosts file on any operating system: Linux, Mac, or Windows. The page will detect your OS and print instructions specific to you.]]></description>
			<content:encoded><![CDATA[<p><a href="http://boomshadow.net/wp-content/uploads/2012/03/linux-mac-windows.gif"><img class="alignleft size-full wp-image-825" title="Linux Mac and Windows" src="http://boomshadow.net/wp-content/uploads/2012/03/linux-mac-windows.gif" alt="Linux, Mac, and Windows logo" width="100" height="100" /></a><br />
When you visit a website, your computer has to look up the IP address for that site so that it knows where to go. Before your computer goes out to find the IP address, it will first check the local hosts file. The hosts file on your computer is a plain text file that contains a map of hostnames to IP addresses.</p>
<p>If you wanted to override the actual IP address of a site, you could &#8216;trick&#8217; your computer by manually setting the IP address for a website and telling it where to go to find a website. This is extremely common and useful to do when testing a website that you are transferring to a new serer.</p>
<p>Imagine you are moving your website to a new powerful system. However, you do not want the existing site to go down; you want it to stay up at all times. You can copy the site and all it&#8217;s contents to the new server, but how do you test it without changing the DNS? You want to make sure that the site is going to work on the new server without any errors before you start sending traffic over to it. The best method to do this is to change your computer&#8217;s hosts file. You can send only your computer to the new server without affecting the live site at all.</p>
<p>The process for modifying the hosts file varies depending on what Operating System you are running. With the help of my good buddy Colin, we have developed a handy utility that will tell you how to modify your hosts file no matter you are running Linux, Mac, or Windows. The following section of this page will detect your OS and print instruction specific to you. Hope you enjoy!</p>
[hostsfile]
<h2>Note about this article</h2>
<p>This utility is one I had written for the ServInt blog as part of the &#8216;Tech bench&#8217; series. You can view it on the <a title="ServInt Blog" href="http://blog.servint.net/2012/04/20/the-tech-bench-hosts-file-modification/" target="_blank">ServInt blog here</a>. They are using the utility with my permission.</p>
]]></content:encoded>
			<wfw:commentRss>http://boomshadow.net/tools-utilities/hosts-mod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assassin&#8217;s Creed for Kinect</title>
		<link>http://boomshadow.net/video/assassins-creed-for-kinect/</link>
		<comments>http://boomshadow.net/video/assassins-creed-for-kinect/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 20:01:46 +0000</pubDate>
		<dc:creator>Jacob "Boom Shadow" Tirey</dc:creator>
				<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://boomshadow.net/?p=819</guid>
		<description><![CDATA[Ever wanted to control your favorite assassin with your body to act out every fun kill? Now you can with the all new Kinect powered Assassin's Creed.]]></description>
			<content:encoded><![CDATA[
<p>Here is the demo video for Ubisoft&#8217;s Assassin&#8217;s Creed that my buddy Anibal and I worked on:</p>
<p><iframe width="640" height="360" src="http://www.youtube.com/embed/7NufHsmITjM?rel=0" frameborder="0" allowfullscreen></iframe></p>
<p>That&#8217;s right, its an April Fool&#8217;s day prank! Anibal and I worked on the visual effects and they used my house for all the Girl gamer party shots (as well as the table crash). It was a ton of fun making it and a lot of work to pump out in only a few short weeks.</p>
<p>Starring: <a href="http://fragdolls.com/" target="_blank">The Frag Dolls</a></p>
]]></content:encoded>
			<wfw:commentRss>http://boomshadow.net/video/assassins-creed-for-kinect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change a document root on cPanel</title>
		<link>http://boomshadow.net/tech/change-document-root-cpanel/</link>
		<comments>http://boomshadow.net/tech/change-document-root-cpanel/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 12:36:57 +0000</pubDate>
		<dc:creator>Jacob "Boom Shadow" Tirey</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[cpanel]]></category>

		<guid isPermaLink="false">http://boomshadow.net/?p=790</guid>
		<description><![CDATA[How to change the document root for domains on cPanel]]></description>
			<content:encoded><![CDATA[<p><a href="http://boomshadow.net/wp-content/uploads/2012/03/cpanel-logo.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/03/cpanel-logo-150x150.gif" alt="cPanel Logo" title="cPanel Logo" width="150" height="150" class="alignleft size-thumbnail wp-image-809" /></a></p>
<h4>What is the document root?</h4>
<p>When you visit a web site, you are accessing a particular folder on the web server. The server knows to only serve up those files located at that folder to incoming visitors. The location of that web folder is called the &#8220;Document Root&#8221;.</p>
<p>It is similar to using a coat check. You present your ticket to the attendant and they fetch it from the back room.<br />
In this metaphor, the coat is the site you want to visit and the attendant is the web server. The visitor doesn&#8217;t know the exact location where the coat is stored, but the coat does reside at a specific location.</p>
<p>For example, when you visit johns-carpentry.com, the server is pulling up the files at: /home/johnc/public_html. The document root is set by the Apache configuration.</p>
<p>What we are going to discuss today is what if you wanted to change that location? You would need to change the &#8216;Document root&#8217; for the domain. cPanel&#8217;s default location may not serve your needs or you simply want to reorganize. In any case, I&#8217;ll show you how to make that change on cPanel.</p>
<h4>Changing Addon Domains</h4>
<p>There are two types of domains on a cPanel box that can have document roots: Main (primary) domains and Addon domains. Addon domains are easy to change the document root. Simply log into your cPanel and navigate to: Domains >> Addon domains</p>
<p><a href="http://boomshadow.net/wp-content/uploads/2012/03/addon.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/03/addon.gif" alt="Addon domains section in cPanel" title="Addon Domains" width="548" height="184" class="aligncenter size-full wp-image-796" /></a></p>
<p>Next, edit the Addon domain path. To do so, simply click the edit icon next to the path, and type in your new path.</p>
<p><a href="http://boomshadow.net/wp-content/uploads/2012/03/addon-remove.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/03/addon-remove.gif" alt="Remove an addon domain in cPanel" title="Remove Addon" width="548" height="166" class="aligncenter size-full wp-image-799" /></a></p>
<p>It’s that simple!</p>
<h4>Changing Primary domains</h4>
<p>For changing the main/primary domain, you will need to have root SSH access. Edit the following (replacing your user &#038; domain info):</p>
<pre>/var/cpanel/userdata/USERNAME/DOMAIN.COM</pre>
<p>Look for the following line:</p>
<pre>documentroot: /home/USERNAME/public_html</pre>
<p>Modify it according to your needs. Save it and exit. Then, rebuild the Apache conf and restart Apache:</p>
<pre>/scripts/rebuildhttpdconf
service httpd restart</pre>
<p>The change will be immediate. Simply clear your browser cache and force refresh the page!</p>
<h2>Note about this article</h2>
<p>This article is one I had written for the ServInt blog as part of the &#8216;Tech bench&#8217; series. You can view it on the <a href="http://blog.servint.net/2012/03/30/the-tech-bench-changing-a-document-root-in-cpanel/" title="ServInt Blog" target="_blank">ServInt blog here</a>. Used with permission.</p>
]]></content:encoded>
			<wfw:commentRss>http://boomshadow.net/tech/change-document-root-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install PHP memcache</title>
		<link>http://boomshadow.net/tech/installs/how-to-install-php-memcache/</link>
		<comments>http://boomshadow.net/tech/installs/how-to-install-php-memcache/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 13:32:25 +0000</pubDate>
		<dc:creator>Jacob "Boom Shadow" Tirey</dc:creator>
				<category><![CDATA[Software Installations]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[php modules]]></category>

		<guid isPermaLink="false">http://boomshadow.net/?p=755</guid>
		<description><![CDATA[This guide will show you how to install PHP memcache via PECL.]]></description>
			<content:encoded><![CDATA[<p><a href="http://boomshadow.net/wp-content/uploads/2012/02/pecl-logo.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/02/pecl-logo.gif" alt="The logo for PECL library" title="PECL logo" width="115" height="115" class="alignleft size-full wp-image-760" /></a><br />
This guide will help you install PHP Memcache on a CentOS server.</p>
<h4>What is PHP memcache?</h4>
<p>In my <a href="http://boomshadow.net/tech/installs/how-to-install-memcached/" target="_blank">previous article</a>, I showed you how to install Memcached, the service daemon. Now, if you would like your PHP software to interface with that daemon, you will want to install a PHP extension for it.</p>
<p>There are actually two separate implementations of a PHP Client that wraps the memcached (daemon); both are provided via the <a href="http://pecl.php.net/" target="_blank">PECL library</a>. One is called <a href="http://pecl.php.net/package/memcache" target="_blank">&#8216;memcache&#8217;</a> and the other is called <a href="http://pecl.php.net/package/memcached" target="_blank">&#8216;memcached&#8217;</a>. I know that it is a little confusing that &#8216;memcached&#8217; shares the same name as the daemon itself, but it IS a separate PHP wrapper.</p>
<p>This article will focus on installing &#8216;memcache&#8217; as it is the most commonly used. You can use the information to install &#8216;memcached&#8217; as well; the installation steps are the same. The main difference is that &#8216;memcached&#8217; requires the libMemcached library. You can see a comparison of the two different PHP clients here: <a href="http://code.google.com/p/memcached/wiki/PHPClientComparison" target="_blank">http://code.google.com/p/memcached/wiki/PHPClientComparison</a></p>
<h4>Installation, the quick method</h4>
<p>The easiest method is to simply use PECL&#8217;s &#8216;install&#8217; command. This will grab the latest stable release, configure it with the default options, and add it to the server&#8217;s php.ini:</p>
<pre>pecl install memcache</pre>
<p>*Note: Un-installation is just as easy:</p>
<pre>pecl uninstall memcache</pre>
<h4>Installation, the manual method</h4>
<p>The quick &#8216;install&#8217; method uses the default configuration options and should serve most peoples&#8217; purposes. However, if you need more control over the installation options, you can manually install from source and add it flags as you need.</p>
<p>Download the source package via PECL:</p>
<pre>
cd /usr/local/src/
pecl download memcache
</pre>
<p>Unpack the tar and enter into the newly extracted directory (be sure to replace the X&#8217;s with your downloaded version):</p>
<pre>
tar -xvzf memcache-X.X.X.tgz
cd memcache-X.X.X
</pre>
<p>Configure and install:</p>
<pre>
phpize
./configure &#038;&#038; make &#038;&#038; make install
</pre>
<h4>Verify the install</h4>
<p>Verify the installation by displaying all the installed PHP modules. See if &#8216;memcache&#8217; is listed:</p>
<pre>
php -m
memcache
</pre>
<h4>Problems with manual installation</h4>
<p>The &#8216;make install&#8217; should load the module into your server&#8217;s extension directory automatically. However, if you do not see memcache listed in a &#8216;php -m&#8217;, you will need to add the module manually</p>
<p>First, you&#8217;ll want to very the location of your server&#8217;s extensions directory:</p>
<pre>grep extension_dir /usr/local/lib/php.ini</pre>
<p>It should return something similar to the following:</p>
<pre>extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"</pre>
<p>Next, copy the memcache module into that directory (be sure to replace the path with the one found on your server):</p>
<pre>cp modules/memcache.so /usr/local/lib/php/extensions/no-debug-non-zts-20060613</pre>
<p>Finally, add the module to your php.ini:</p>
<pre>echo 'extension=memcache.so' >> /usr/local/lib/php.ini</pre>
<h4>Thoughts</h4>
<p>It used to be a common issue that the quick &#8216;install&#8217; method could not be used for servers where the /tmp partition was mounted &#8216;noexec&#8217;. The problem was that the &#8216;configure&#8217; process could not execute because the PECL client downloaded the module into in /tmp. When /tmp is mounted &#8216;noexec&#8217;, servers cannot execute scripts from /tmp.</p>
<p>However, PECL now downloads and executes the script from /root/tmp. No need to worry about compiler errors with /tmp. You can use the &#8216;install&#8217; method even with a secured /tmp.</p>
<h2>Note about this article</h2>
<p>This article is one I had written for the ServInt blog as part of the &#8216;Tech bench&#8217; series. You can view it on the <a href="http://blog.servint.net/2012/03/16/the-tech-bench-how-to-install-php-memcache/" title="ServInt Blog" target="_blank">ServInt blog here</a>. Used with permission.</p>
]]></content:encoded>
			<wfw:commentRss>http://boomshadow.net/tech/installs/how-to-install-php-memcache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Memcached</title>
		<link>http://boomshadow.net/tech/installs/how-to-install-memcached/</link>
		<comments>http://boomshadow.net/tech/installs/how-to-install-memcached/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 19:42:38 +0000</pubDate>
		<dc:creator>Jacob "Boom Shadow" Tirey</dc:creator>
				<category><![CDATA[Software Installations]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[centos 4]]></category>
		<category><![CDATA[centos 5]]></category>
		<category><![CDATA[centos 6]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://boomshadow.net/?p=704</guid>
		<description><![CDATA[Memcache is one of the most popular caching tools used in hosting today. This guide will show you how to install it.]]></description>
			<content:encoded><![CDATA[<p># Updates<br />
# 02/22/12 &#8211; Updated RPM locations</p>
<p><a href="http://boomshadow.net/wp-content/uploads/2012/02/memcached-icon.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/02/memcached-icon-150x150.gif" alt="Memcached icon with Zoolander critters" title="Memcached Icon" width="100" height="100" class="alignleft size-thumbnail wp-image-710" /></a>This guide will help you setup Memcached on a CentOS server.</p>
<h4>What is caching</h4>
<p>Before diving into Memcache specifically, let&#8217;s take a step back. What is caching? Why should you care and why should you use it? Caching is used for two very important reasons: to speed up the delivery of the pages and to alleviate system resources. Caching is used to speed up dynamic sites; database driven sites will benefit most form caching. Think about a WordPress site. Each page you visit is not an actually file, but rather an amalgamation of the theme, widgets, posts, footers, headers, etc&#8230; Each time a page is accessed, PHP will generate the page requested on the fly from the database. It takes time to query the database to create the page. These database queries put a strain on the resources of your server.</p>
<p>However, what if instead of continually generating a new page, the same page, for every visitor, you were to turn those pages into static HTML files? No database querying is needed for the new visitors. A static file can be served up much faster and with significantly less resource consumption. Your visitors see their requested page sooner, and you save on CPU cycles. Everyone is happy. This is what caching does.</p>
<h4>What is Memcached</h4>
<p>Memcached is a general-purpose distributed memory caching system. It is one of the most popular caching tools and is used in such popular sites as: YouTube, Reddit, Zynga, Facebook, and Twitter.</p>
<p>According to Memcached&#8217;s <a href="http://www.memcached.org/" target="_blank">official site</a>, Memcached is defined as: Free &#038; open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.</p>
<p>In simpler terms, it decreases database load by storing objects in memory.</p>
<h4>Installing Memcached (daemon)</h4>
<p>The quickest and easiest method would be to install via Yum. First, you must grab the RPM that matches your OS:</p>
<p>CentOS 6 (64 bit):</p>
<pre>su -c 'rpm -Uvh http://mirrors.kernel.org/fedora-epel/6/x86_64/epel-release-6-5.noarch.rpm'</pre>
<p>CentOS 6 (32 bit):</p>
<pre>su -c 'rpm -Uvh http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-5.noarch.rpm'</pre>
<p>CentOS 5 (64 bit):</p>
<pre>su -c 'rpm -Uvh http://mirrors.kernel.org/fedora-epel/5/x86_64/epel-release-5-4.noarch.rpm'</pre>
<p>CentOS 5 (32 bit):</p>
<pre>su -c 'rpm -Uvh http://mirrors.kernel.org/fedora-epel/5/i386/epel-release-5-4.noarch.rpm'</pre>
<p>CentOS 4 (32 bit):</p>
<pre>su -c 'rpm -Uvh http://mirrors.kernel.org/fedora-epel/4/i386/epel-release-4-10.noarch.rpm'</pre>
<p>Now, to install it with Yum:</p>
<pre>yum install memcached</pre>
<p>Start the memcached service:</p>
<pre>/etc/init.d/memcached start</pre>
<p>Configure the memcached service to start when the server boots:</p>
<pre>chkconfig memcached on</pre>
<p>Finally, disable the RPM so that it is not used for future Yum functions:</p>
<pre>perl -pi -e "s/enabled=1/enabled=0/g;" /etc/yum.repos.d/epel.repo</pre>
<h4>PHP memcache</h4>
<p>For information on how to install the PHP extension so that your PHP software can interface with memcached (daemon), see my article here: <a href="http://boomshadow.net/tech/installs/how-to-install-php-memcache/" target="_blank">How to install PHP memcache</a></p>
<h2>Note about this article</h2>
<p>This article is one I had written for the ServInt blog as part of the &#8216;Tech bench&#8217; series. You can view it on the <a href="http://blog.servint.net/2012/02/20/the-tech-bench-memcached/" title="ServInt Blog" target="_blank">ServInt blog here</a>. Used with permission.</p>
]]></content:encoded>
			<wfw:commentRss>http://boomshadow.net/tech/installs/how-to-install-memcached/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Spoofed Bingbot attacks against WP</title>
		<link>http://boomshadow.net/tech/fixes/spoofed-bingbot/</link>
		<comments>http://boomshadow.net/tech/fixes/spoofed-bingbot/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 17:19:04 +0000</pubDate>
		<dc:creator>Jacob "Boom Shadow" Tirey</dc:creator>
				<category><![CDATA[Fixes]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[investigation]]></category>
		<category><![CDATA[mage]]></category>
		<category><![CDATA[spoofing]]></category>
		<category><![CDATA[user agent]]></category>
		<category><![CDATA[vhost]]></category>

		<guid isPermaLink="false">http://boomshadow.net/?p=648</guid>
		<description><![CDATA[Been seeing an influx of bot traffic attacking your site, bringing your server to it's knees? Well, I have a solution for that.]]></description>
			<content:encoded><![CDATA[<p># Updates<br />
# 02/04/12 &#8211; Revised wording to reinforce Bing&#8217;s perspective<br />
# 02/02/12 &#8211; Modified block code to identify bingbot as &#8216;badbingbot&#8217; in case &#8216;bingbot&#8217; is already being used somewhere</p>
<p><a href="http://boomshadow.net/wp-content/uploads/2012/02/bingbot-wordpress.gif"><img src="http://boomshadow.net/wp-content/uploads/2012/02/bingbot-wordpress-150x150.gif" alt="Bingbot WordPress pic" title="Bingbot WordPress" width="150" height="150" class="alignleft size-thumbnail wp-image-676" /></a><br />
In the last 24 hours, I have seen a large scale attack on the admin logins for thousands of WordPress sites. The attackers are using the <a href="http://whatsmyuseragent.com/WhatsAUserAgent.asp" target="_blank">User Agent</a> &#8216;Bingbot&#8217;. Bingbot certainly is NOT the culprit in these attacks, but is, unfortunately, being spoofed. These spoofing bots are attacking the wp-admin page. So far, I have only seen this affect WP Mage and Mage Monster users.</p>
<p>A brute force attack on any login is certainly undesirable; you obviously don&#8217;t want any unauthorized person accessing your admin area. However, the real problem comes from the CPU strain this is putting on the hosting server. These constant requests to hundreds of websites on the server will drive up the CPU load, effectively tying up the resources. The server will not be able to serve up pages to legitimate traffic or legitimate search engine bots that are trying to crawl the sites.</p>
<p>There is a solution you can use to combat this problem. The solution is to block the Bingbot user agent from accessing your these admin pages. An IP based firewall block would do no good as the source IP&#8217;s have no common denominator; the IP&#8217;s are too spread out and come from many different geographical locations.</p>
<p>By implementing the following fix, you can reduce the loads back to normal operating levels allowing your site&#8217;s pages to load once again and you will not affect your rank with Bing. After a couple of days, the attack should have subsided and you should be able to safely reverse the changes. However, per Duane Forrester of Bing&#8217;s webmaster tools, you do not have to undo the block. There is no harm in permanently preventing your admin pages from being indexed (for reference, see <a href="http://boomshadow.net/tech/fixes/spoofed-bingbot/#comment-428950333">his comment here</a>).</p>
<h4>Are you affected?</h4>
<p>You can run a quick check to see if your sites are being hit with this spoofed Bingbot attack. Check your sites&#8217; domlogs and look for any Bingbot <a href="http://whatsmyuseragent.com/WhatsAUserAgent.asp" target="_blank">User Agent</a> requests that are hitting WordPress admin pages:</p>
<pre>
grep bingbot /usr/local/apache/domlogs/* | grep wp-login
</pre>
<p>If you receive numerous results from running that, especially from various IP addresses, it means that you are being affected. If you see many &#8216;POST&#8217; commands in there, it means they are also trying to log into WordPress.</p>
<p>Example:</p>
<pre>
/usr/local/apache/domlogs/domain.com:24.153.219.159 - - [01/Feb/2012:15:27:18 -0500] "GET /wp-login.php?redirect_to=http%3A%2F%2FDOMAIN.COM%2Fwp-admin%2F&#038;reauth=1 HTTP/1.1" 200 2206 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
/usr/local/apache/domlogs/domain.com:24.153.219.159 - - [01/Feb/2012:15:27:18 -0500] "POST /wp-login.php HTTP/1.1" 200 3084 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"
</pre>
<h4>How to block them</h4>
<p>Now that you&#8217;ve verified that this directly affects you, time to block them and restore your server&#8217;s vitality.</p>
<h3>#1 &#8211; Edit the pre-virtual host conf</h3>
<p>We need to tell the server what is a &#8220;bad bot&#8221;. In this case, it is Bingbot. Then, we tell it to block it:</p>
<pre>
nano /usr/local/apache/conf/includes/pre_virtualhost_global.conf
</pre>
<p>At the bottom of the file add:</p>
<pre>
SetEnvIfNoCase User-Agent &quot;.*bingbot&quot; badbingbot

&lt;Files wp-login.php&gt;
	order allow,deny
	allow from all
	Deny from env=badbingbot
&lt;/Files&gt;
</pre>
<p>If you do not want to block Bingbot on every domain and would rather only block it on a few particular affected domains, you can, instead, make the change to each domains&#8217; virtual host via an include file. For more information, see cPanel&#8217;s documentation here: <a href="http://docs.cpanel.net/twiki/bin/view/EasyApache3/InsideVHost" target="_blank">http://docs.cpanel.net/twiki/bin/view/EasyApache3/InsideVHost</a></p>
<h3>#2 &#8211; Restart Apache</h3>
<p>Now it is time to restart Apache so that our changes can take effect:</p>
<pre>
service httpd restart
</pre>
<h4>Test it</h4>
<p>Which Apache restarted, you should see your CPU load start dropping immediately. You will want to test it to make sure that bingbot is successfully blocked. Do what the attackers are doing, access your page while spoofing your User agent as Bingbot:</p>
<pre>
wget -U "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)" http://domain.com/wp-login.php
</pre>
<p>Be sure to change &#8216;domain.com&#8217; with your actual domain name. You should receive a 403 Forbidden error. If not, the file that is downloaded should be completely empty, meaning no content was served up.</p>
]]></content:encoded>
			<wfw:commentRss>http://boomshadow.net/tech/fixes/spoofed-bingbot/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>SOPA/PIPA &#8211; Join the Fight</title>
		<link>http://boomshadow.net/video/sopa-pipa-join-the-fight/</link>
		<comments>http://boomshadow.net/video/sopa-pipa-join-the-fight/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 19:32:19 +0000</pubDate>
		<dc:creator>Jacob "Boom Shadow" Tirey</dc:creator>
				<category><![CDATA[Video]]></category>
		<category><![CDATA[films]]></category>
		<category><![CDATA[pipa]]></category>
		<category><![CDATA[sopa]]></category>

		<guid isPermaLink="false">http://boomshadow.net/?p=620</guid>
		<description><![CDATA[A video about the congressional bills: SOAP and PIPA. Help join the fight against them!]]></description>
			<content:encoded><![CDATA[
<p>There are two very important pieces of legislature that is being considered by Congress: SOPA &#038; PIPA. These bills are terrible in that they will irrevocably harm Internet freedom. I would go into more detail here, but I think a visual aid is a far better tool. This is a video I directed to help combat these bills. Made for <a href="http://StopTheWall.us" target="_blank">StopTheWall.us</a> via Engine Advocacy and <a href="https://twitter.com/mrcjdawson" target="_blank">Christian Dawson</a></p>
<p><iframe src="http://player.vimeo.com/video/35353431?title=0&amp;byline=0&amp;portrait=0" width="601" height="301" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></p>
<p>Animation: Brian &#038; Chris Pennington w/ <a href="http://www.duomediaproductions.com/" target="_blank">DUO Media Productions</a><br />
Writers: Christian Dawson, Thomas Wilson, and myself<br />
Sound: DUO Media &#038; Sean Richwine<br />
Directed by: Me (Boom Shadow)  <img src='http://boomshadow.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://boomshadow.net/video/sopa-pipa-join-the-fight/attachment/pirate-ship-icon/" rel="attachment wp-att-626"><img src="http://boomshadow.net/wp-content/uploads/2012/01/pirate-ship-icon-150x150.gif" alt="Picture of the Internet Pirater&#039;s Ship" title="The Internet Pirater&#039;s Ship" width="75" height="75" class="alignleft size-thumbnail wp-image-626" /></a></p>
<p><a href="http://www.redbubble.com/people/boomshadow/works/8474399-anit-sopa-pipa-pirates" target="_blank">Pirate ship icon now available as a fun sticker!</a><br />
.<br />
.<br />
.</p>
]]></content:encoded>
			<wfw:commentRss>http://boomshadow.net/video/sopa-pipa-join-the-fight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

