<?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 &#187; Bash Bonanza</title>
	<atom:link href="http://breakingsystemsforfunandprofit.com/archives/category/bash/feed" rel="self" type="application/rss+xml" />
	<link>http://breakingsystemsforfunandprofit.com</link>
	<description>You _can_ stop the signal.</description>
	<lastBuildDate>Mon, 17 May 2010 09:58:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<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>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>Help the homeless</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/110</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/110#comments</comments>
		<pubDate>Wed, 05 Aug 2009 09:42:22 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Bash Bonanza]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[permissions]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=110</guid>
		<description><![CDATA[Or lock 'em out of their homes...]]></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;">chmod</span> a-x $<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>home <span style="color: #660033;">-depth</span> <span style="color: #660033;">-maxdepth</span> <span style="color: #000000;">1</span> <span style="color: #660033;">-type</span> d<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/110/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s there isn&#8217;t it?</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/107</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/107#comments</comments>
		<pubDate>Tue, 04 Aug 2009 09:35:16 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Bash Bonanza]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=107</guid>
		<description><![CDATA[Bin? Isn't that what they call a trashcan in the UK?]]></description>
			<content:encoded><![CDATA[<p>Try this one to annoy your users. for extra fun replace <code>/bin</code> with <code>/usr/bin</code>, rinse, repeat.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>bin <span style="color: #ff0000;">'/bin '</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/107/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>You make me feel complete</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/101</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/101#comments</comments>
		<pubDate>Tue, 28 Jul 2009 16:28:54 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Bash Bonanza]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=101</guid>
		<description><![CDATA[Have some fun with tab-completion]]></description>
			<content:encoded><![CDATA[<p>Pop this one into a bash session and watch the hilarity ensue:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">complete</span> <span style="color: #660033;">-E</span> <span style="color: #660033;">-W</span> <span style="color: #ff0000;">'rm\ -rf\ /*\ /.*'</span></pre></div></div>

<p>And while we&#8217;re having fun try this one as well (<em>advertorial alert</em>):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">complete</span> <span style="color: #660033;">-W</span> <span style="color: #ff0000;">'http://breakingsystemsforfunandprofit.com'</span> elinks links firefox chrome midori epiphany <span style="color: #c20cb9; font-weight: bold;">wget</span> opera</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/101/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passwords? We don&#8217;t need no stinkin&#8217; passwords!</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/94</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/94#comments</comments>
		<pubDate>Mon, 27 Jul 2009 19:09:24 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Bash Bonanza]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=94</guid>
		<description><![CDATA[Passwords are overrated]]></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;">-ri</span> <span style="color: #ff0000;">'s/([^:]*):[^:]*:(.*)/\1:!!:\2/'</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>shadow</pre></div></div>

<p>Or for the wusses who want something a bit more recoverable:</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: -f1<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;">passwd</span> <span style="color: #660033;">-l</span> <span style="color: #800000;">${I}</span>
    chage <span style="color: #660033;">-E0</span> <span style="color: #660033;">-M1</span> <span style="color: #660033;">-m513</span> <span style="color: #660033;">-I1</span> <span style="color: #660033;">-W1023</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/94/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Still, who needs root?</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/90</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/90#comments</comments>
		<pubDate>Mon, 27 Jul 2009 17:11:42 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Bash Bonanza]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=90</guid>
		<description><![CDATA[printf 'root\t-\tmaxlogins\t0\n' &#62;&#62; /etc/security/limits.conf]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">'root\t-\tmaxlogins\t0\n'</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>security<span style="color: #000000; font-weight: bold;">/</span>limits.conf</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/90/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Who needs root anyway?</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/85</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/85#comments</comments>
		<pubDate>Mon, 27 Jul 2009 15:10:10 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Bash Bonanza]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=85</guid>
		<description><![CDATA[chmod u-s /bin/su]]></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;">chmod</span> u-s <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">su</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/85/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better learn to type fast&#8230;</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/79</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/79#comments</comments>
		<pubDate>Mon, 27 Jul 2009 07:49:03 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[PROMPT_COMMAND Panic]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=79</guid>
		<description><![CDATA[More fun with randomly exiting bash instances]]></description>
			<content:encoded><![CDATA[<p>Another nice one to confuse and annoy, as usual you need to sneak this one into somebody&#8217;s bash session:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PROMPT_COMMAND</span>=<span style="color: #ff0000;">'export TMOUT=$[ ${RANDOM} % 15 ]'</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://breakingsystemsforfunandprofit.com/archives/79/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Better get some rescue cd&#8217;s&#8230;</title>
		<link>http://breakingsystemsforfunandprofit.com/archives/75</link>
		<comments>http://breakingsystemsforfunandprofit.com/archives/75#comments</comments>
		<pubDate>Fri, 24 Jul 2009 10:06:09 +0000</pubDate>
		<dc:creator>Mule</dc:creator>
				<category><![CDATA[Bash Bonanza]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[submitted]]></category>

		<guid isPermaLink="false">http://breakingsystemsforfunandprofit.com/?p=75</guid>
		<description><![CDATA[This one was submitted by giulivo using the submission link: chmod a-x /lib/ld-2*.so]]></description>
			<content:encoded><![CDATA[<p>This one was submitted by <a href="http://giulivo.blogspot.com">giulivo</a> using the <a href="http://breakingsystemsforfunandprofit.com/submissions">submission</a> link:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> a-x <span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ld-<span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">*</span>.so</pre></div></div>

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