<?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>Static in the Ether &#187; Annoyances</title>
	<atom:link href="http://lair.moria.org/blog/archives/tag/annoyances/feed" rel="self" type="application/rss+xml" />
	<link>http://lair.moria.org/blog</link>
	<description>Unix, Information Security &#38; Systems Administration</description>
	<lastBuildDate>Wed, 11 Nov 2009 09:14:29 +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>18 hours on we havent had a meltdown</title>
		<link>http://lair.moria.org/blog/archives/193</link>
		<comments>http://lair.moria.org/blog/archives/193#comments</comments>
		<pubDate>Wed, 01 Apr 2009 07:58:43 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Annoyances]]></category>
		<category><![CDATA[Conficker]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[virus]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=193</guid>
		<description><![CDATA[Eighteen hours into the much hyped first days of Confickers new update cycle (started at 00h00 local time on the 1st of April), and surprisingly the Internet has not melted down.  Masses of FUD have been spread, and probably a LOT of AV product has been sold. What has been a positive spinoff of this [...]]]></description>
			<content:encoded><![CDATA[<p>Eighteen hours into the much hyped first days of Confickers new update cycle (started at 00h00 local time on the 1st of April), and surprisingly the Internet has not melted down.  Masses of FUD have been spread, and probably a LOT of AV product has been sold. What has been a positive spinoff of this is that awareness has been created among the general public.  What has snot been so positive is that people getting they information form the popular press have no way of actually stripping out the facts.</p>
<p>During a break after I presented a talk on Cyber warfare last night, I had a number of questions relating to the proported meltdown today -</p>
<ul>
<li> &#8220;Should we keep our machines off?&#8221;</li>
<li>&#8220;How do we stop this?&#8221;</li>
<li>&#8220;How do I stop getting infected?&#8221;</li>
<li>&#8220;What antivirus must we buy?&#8221;</li>
</ul>
<p>Here in deepest darkest africa, we have two unintended benefits that come form the general means of network engineering done here. Both stem in reality from the paucity of real bandwidth currently (and historically available).  The first is that most organisations block direct port 80/tcp (http) and related port access to the Internet, forcing the requirements to use proxy servers. This cuts off confickers ability to update. In the resedential SOHO market, theoreticlaly direct end to end port 80 access is possible , but more often than not there is a transparent proxy in the way. I doubt ISPs are doing any domain filtering on these however. What works as a means of self limitation is that fact that should any massive wave of attacks spring forth from the SOHO /Residential type users, it will be cut short as they rappidly burn though their &#8220;bandwidth cap&#8221; &#8211; in most cases 1-3 Gig.</p>
<p>What is interesting is what the actual next move will be.  I think its highly unlikley that this will be used for an all-out offensive and then disposed of. The authors have carefully engineered through four releases of the Hybridised Malware, and in essence have made a fairly substantial investment.   The most likely scenario is that tis is yet another botnet for sale &#8211; albeit a potentially massive one.</p>
<p>Botnets themselves are nothign new, we have seen what Storm has done ( and is still doing).</p>
<p>For  now we bunker down and wait&#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/193/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remote Desktop Annoyances with Nvidia drivers</title>
		<link>http://lair.moria.org/blog/archives/156</link>
		<comments>http://lair.moria.org/blog/archives/156#comments</comments>
		<pubDate>Mon, 27 Oct 2008 05:46:26 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Annoyances]]></category>
		<category><![CDATA[Nvidia]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[Server 2003]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=156</guid>
		<description><![CDATA[For the last few months I&#8217;ve been plagued by the inability to at times remote desktop to some of my Windows XP based system. While not critical, it is nice to be able to connect home and carry on working on a document/email I was busy with before departing to work. After some hunting, I [...]]]></description>
			<content:encoded><![CDATA[<p>For the last few months I&#8217;ve been plagued by the inability to at times remote desktop to some of my Windows XP based system. While not critical, it is nice to be able to connect home and carry on working on a document/email I was busy with before departing to work.</p>
<p>After some hunting, I narrowed the culprit down to the Nvida graphics drivers post version 169.39. Driver Release 175.16 was the first to show the issue, 175.19 made it worse.</p>
<p>My solution at the time roll back 169.19 and sacrifice some of the support for my CUDA enabled cards.  Last week I took the plunge and went for 178.13, which while resolving some other issues still broke the Remote desktop functionality.</p>
<p>The solution appears to be a tweek is needed in ones registry.</p>
<ol>
<li>Start, Run, type <strong>regedit</strong> and press OK</li>
<li>Navigate to the Key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]</li>
<li>Right click in the Details pane and Select New –&gt; DWORD Value</li>
<li>Name it  <strong>SessionImageSize</strong></li>
<li>After it is created, double click on it and change its value to: 20 ( this is based on recommendations from <a href="http://computingondemand.com/?p=1141">here</a>) and effectively maps to raising the session memory to 32 MB.</li>
<li>Save and Reboot</li>
</ol>
<p>I tried this and no luck.  For my particular configuration SLI motherboards with Running 3 heads ofa 7600GT and 7300GS, I needed to raise the <strong>SessionImageSize</strong> value to 41 implying the use of 64MB of memory.  I&#8217;m not sure if this is due to the large amount of ram in the system ( 4gigs) or the particular use of two non SLI&#8217;d cards. the &#8216;default&#8217; value of 20 seems to have solved the problem on my other Intel based system running a single  8500GT.</p>
<p>Microsoft take on the issue  is contained in <a title="You are unexpectedly logged off when you try to connect to a computer that is running Windows Server 2003 or Windows XP" href="http://support.microsoft.com/kb/886212/en-us">KB886212</a> which proposes the solution of try another driver or rollback the driver.</p>
<p>Searching for &#8220;<strong>SessionImageSize</strong>&#8221; in the Microsoft knowledge base doesn&#8217;t seem to help either</p>
<p>Its worth nothign that the problem is occuring across different chipsets, Graphics cards, and on both SP2 and SP3 systems. The fix of increating the <strong>SessionImageSize to 0&#215;41</strong> seems to be working fine on a Windows Server 2003 (SP2) system as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/156/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Migrating URLs with apache and mod_rewrite</title>
		<link>http://lair.moria.org/blog/archives/47</link>
		<comments>http://lair.moria.org/blog/archives/47#comments</comments>
		<pubDate>Fri, 06 Jun 2008 17:35:30 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Annoyances]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=47</guid>
		<description><![CDATA[Having now migrated to WordPress from my own very customised version of phpBloxsom, which ran the previous incarnation of this blog, Ive been left with the issue of dealing with all the sites pulling my RSS feeds. With the change of software has come a change of url for the location of the feeds. Apache&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Having now migrated to WordPress from my own very customised version of phpBloxsom, which ran the previous incarnation of this blog, Ive been left with the issue of dealing with all the sites pulling my RSS feeds.  With the change of software has come a change of url for the location of the feeds.</p>
<p>Apache&#8217;s mod_rewrite seems to be the obvious candidate for making this as transparent as possible. In essence what needed to happen was incoming requests for:</p>
<p><code> "GET /blog/?flav=rss&amp;category=Security HTTP/1.0" and<br />
<code>"GET /blog/?flav=rss HTTP/1.0" </code> respectively need to be converted into:</code></p>
<p><code><br />
<a title="Security RSS feed" href="http://lair.moria.org/blog/archives/category/security/feed">http://lair.moria.org/blog/archives/category/security/feed</a> </code></p>
<p><code>and</code></p>
<p><code> <a title="Static in the Ether - RSS feed" href="http://lair.moria.org/blog/feed">http://lair.moria.org/blog/feed</a></code> respectively</p>
<p>This was achieved matching on the QUERY_STRING variable within apache.  The real trick came trying to get the new URLS to appear clean.  This proved to be more difficult than I expected. My initial rewrite rules resulted int he following:<br />
<code><br />
"GET /blog/?flav=rss HTTP/1.0" 301 249 "<br />
"GET /blog/feed/?flav=rss HTTP/1.0" 200 54274 ""<br />
</code><br />
The agent was directed to the right url but it still looks ugly.  Note the use of a HTTP/301 status code indicating permanently moved rather than a 302 which mod_redirect usually provides.  The solution to the appending of the query string turned out to be to force my own null string onto the redirect. The <a href="http://wiki.apache.org/httpd/RewriteQueryString">Apache Wiki</a> was where I finally found the right answer. so the way to remove a QUERY_STRING is to append a blank string &#8220;?&#8221; to the redirect .</p>
<p>The final setup in my .htaccess for WordPress looks as follows:</p>
<pre><code>
RewriteCond %{QUERY_STRING} ^flav=rss$ [NC]
RewriteRule ^$ http://lair.moria.org/blog/feed? [R=301,L]
RewriteCond %{QUERY_STRING} ^flav=rss&amp;(category)=Security$ [NC]
RewriteRule ^$ http://lair.moria.org/blog/archives/category/security/feed? [R=301,L]
RewriteCond %{QUERY_STRING} ^flav=atom$ [NC]
RewriteRule ^$ http://lair.moria.org/blog/feed/atom? [R=301,L]</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/47/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XP failing to hibernate</title>
		<link>http://lair.moria.org/blog/archives/14</link>
		<comments>http://lair.moria.org/blog/archives/14#comments</comments>
		<pubDate>Sat, 03 May 2008 10:54:56 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[Annoyances]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=14</guid>
		<description><![CDATA[The problem For some time my Laptop and Desktop XP systems have been misbehaving, intermittently when going into hibernate, the desktop much more since it got its upgrade to 4 gigs of Ram. Symptoms include just going blank with heaps of hard disk activity and then just sitting with the HDD light flickering, or stating [...]]]></description>
			<content:encoded><![CDATA[<h2>The problem</h2>
<p>For some time my Laptop and Desktop XP systems have been misbehaving, intermittently when going into hibernate,  the desktop much more since it got its upgrade to 4 gigs of Ram.  Symptoms include just going blank with heaps of hard disk activity and then just sitting with the HDD light flickering, or stating that there are insufficient resources available —  despite heaps of free disk space on  the system drive.The other evening I had ad enough and went on a hunt for a potential solution other than the &#8220;re-install windows&#8221; solution.</p>
<p>This was particularly irritating when the laptop failed to hibernate, and you get home to find a rather warm laptop bag.  The other problem being in light of the joyous power cuts we have been experiencing, my UPS software is configured to hibernate on power fail rather than shut down something which wasn&#8217;t happening and the UPS batteries were ending up draining.  After trying the logical solutions of enable/disable hibernate, defrag the drive, removing the <code>hiberfile.sys</code>, rinse repeat etc. with no tangible effect it was time to look elsewhere.</p>
<h2>The solution</h2>
<p>The solution was surprisingly simple once I got the right <a href="http://www.google.com/search?hl=en&amp;newwindow=1&amp;q=xp+fails+to+hibernate+solution">sequence of terms</a> plugged into Google.  Microsoft has published a <a title="Microsoft KB 909095" href="http://support.microsoft.com/?kbid=909095">hotfix (Microsoft KB 909095)</a> for exactly this issue.  Although billed as:</p>
<blockquote><p>The computer occasionally does not hibernate and you receive an &#8220;Insufficient System Resources Exist to Complete the API&#8221; error message in Windows XP with Service Pack 2, in Windows XP Tablet PC Edition 2005, or in Windows XP Media Center Edition 2005</p></blockquote>
<p>It installs fine on any XP SP2 system, as stated further down in the Microsoft page.  With some trepidation I applied to my desktop fully expecting a warning or complaint &#8211; none occurred.  A reboot later I had hibernate working perfectly again. The cause of the problem is :</p>
<blockquote><p>To prepare the computer to hibernate, the Windows kernel power manager requires a block of contiguous memory. The size of this contiguous memory is proportional to the number of physical memory regions that the computer is using. A computer that uses lots of RAM is likely to use more physical memory regions when the computer prepares to hibernate. Therefore, a larger amount of contiguous memory is required to prepare the computer to hibernate.</p>
<p>Additionally, the number of physical memory regions varies according to the programs, services, and device drivers that the computer uses. Therefore, the hibernate feature occasionally fails.</p></blockquote>
<p>What I found interesting is that both systems are up to date, and I&#8217;ve never been offered this in any of the Windows update sessions, despite the hotfix being available since August 2006!</p>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/14/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
