<?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>XBarK - Techie corner</title>
	<atom:link href="http://www.xbark.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xbark.com</link>
	<description></description>
	<lastBuildDate>Wed, 06 Apr 2011 13:11:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Cleaning Infected Windows XP Laptop</title>
		<link>http://www.xbark.com/windows-xp/virus-infected/cleaning-infected-windows-xp-laptop/</link>
		<comments>http://www.xbark.com/windows-xp/virus-infected/cleaning-infected-windows-xp-laptop/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 20:48:32 +0000</pubDate>
		<dc:creator>XBarK</dc:creator>
				<category><![CDATA[Virus Infected]]></category>

		<guid isPermaLink="false">http://www.xbark.com/?p=53</guid>
		<description><![CDATA[The computer boots into Windows and greets you with the fake WindowsRepair software: The infection got into the system from an infected windows media audio file (.wma). With lack of...]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">The computer boots into Windows and greets you with the fake WindowsRepair software:<a href="http://www.xbark.com/wp-content/uploads/2011/04/WindowsRepair1.jpg"></a></p>
<p style="text-align: left;"><a href="http://www.xbark.com/wp-content/uploads/2011/04/WindowsRepair1.jpg"><br />
</a><a href="http://www.xbark.com/wp-content/uploads/2011/04/WindowsRepair2.jpg"><img class="aligncenter size-full wp-image-56" title="WindowsRepair" src="http://www.xbark.com/wp-content/uploads/2011/04/WindowsRepair2.jpg" alt="" width="570" height="382" /></a></p>
<p>The infection got into the system from an infected windows media audio file (.wma). With lack of competent protection and outdated Windows XP SP2 OS (XP is on SP3 at time of writing with about 90 updates on top of it) the virus was able to easily exploit a vulnerability in media player and get into the system.</p>
<p>One unusual thing about this one is that the computer does not display anything on the C drive (C drive shows up empty) Also, &#8220;All programs&#8221; in the start menu shows empty:</p>
<p><a href="http://www.xbark.com/wp-content/uploads/2011/04/cdrv.jpg"><img class="aligncenter size-full wp-image-57" title="cdrv" src="http://www.xbark.com/wp-content/uploads/2011/04/cdrv.jpg" alt="" width="534" height="400" /></a><a href="http://www.xbark.com/wp-content/uploads/2011/04/strt_m.jpg"><img class="aligncenter size-full wp-image-58" title="strt_m" src="http://www.xbark.com/wp-content/uploads/2011/04/strt_m.jpg" alt="" width="380" height="447" /></a></p>
<p>Clearly the files in the C drive must be there since Windows is running (the Windows folder resides in the C drive) and further you can see that the files are there by executing a program using the run command. This tips us off that the files are made “hidden” by the malware. I will go over how to fix this problem after the infections are removed.</p>
<p><strong><span style="color: #ff0000;">The cleaning:</span></strong></p>
<p>I will use:</p>
<p>Malwarebytes (<a href="http://www.malwarebytes.org/">http://www.malwarebytes.org</a>)</p>
<p>Spybot-S&amp;D (<a href="http://www.safer-networking.org/en/download/index.html">http://www.safer-networking.org/en/download/index.html</a>)</p>
<p>I downloaded the latest version of the programs on a clean computer. I also downloaded the latest offline definition files (I don’t usually like to allow infected computers to go on the internet). Spybot lists the includes (offline definitions) right below the program download.</p>
<p>Malwarebytes has the offline definitions at the following URL: <a href="http://malwarebytes.gt500.org/">http://malwarebytes.gt500.org</a>.</p>
<p>I saved the four files (two program setups and two update executables) on a flash drive. Once you plug in the flash drive in the infected computer it will not show up in My Computer (remember the system does not display anything).</p>
<p>Get past this inconvenience by: Right clicking My Computer → click Manage. Under Computer Management select Disk Management → right click the volume on the right side → click Open. This will bring up the explorer window with your flash drive contents.</p>
<p><strong><span style="color: #ff0000;">Note:</span></strong> Sometimes the malware prevents you from executing and installing a program. To get the install going you need to right click on the setup program → click Run as&#8230; → select &#8220;The following user&#8221; (administrator is usually already selected for you) if you have administrator password type it here if; you don&#8217;t then just leave the password field blank. This will allow you to install the program and updates.</p>
<p>Run the scan with both programs and let them identify the malware:</p>
<p><a href="http://www.xbark.com/wp-content/uploads/2011/04/malware_bytes.jpg"><img class="aligncenter size-full wp-image-59" title="malware_bytes" src="http://www.xbark.com/wp-content/uploads/2011/04/malware_bytes.jpg" alt="" width="667" height="512" /></a></p>
<p><a href="http://www.xbark.com/wp-content/uploads/2011/04/spy_bot.jpg"><img class="aligncenter size-full wp-image-60" title="spy_bot" src="http://www.xbark.com/wp-content/uploads/2011/04/spy_bot.jpg" alt="" width="674" height="449" /></a></p>
<p>Once the scans are complete remove the detected files, restart the computer, connect to the internet and check for any updates for Malwarebytes and Spybot. After the program update is complete run another scan (many times the programs detect some leftover files or another malware on the second scan).</p>
<p>When you are finally done scanning and removing the infections the only thing left is to get your files to show up under Windows (the cleaning will not restore this).</p>
<p>We know that the malware made all files hidden. To make windows change the attribute back to normal, do the following:</p>
<p>Click Start → Run</p>
<p>type “cmd” in the run dialog (without the quotes) and press enter</p>
<p>At the Command Prompt dialog that opens type:</p>
<p><span style="color: #ff0000;">attrib -H C:\*.* /S /D</span></p>
<p><span style="color: #ff0000;"><span style="color: #000000;"><span style="color: #ff0000;"><strong>NOTE:</strong></span> FYI; this command tells Windows to remove the hidden attribute (that&#8217;s -H) in the C drive (C:\) for all files (that&#8217;s *.*) </span></span>processes files in all directories in the specified path (/S) and all folders (/D). If you have any other drives affected by this you needs to change C:\ to the appropriate drive letter.</p>
<p>Here is the full reference from Microsoft:</p>
<p>________________________________________________________________________________________</p>
<p><strong><span style="font-size: small;">Attrib</span></strong></p>
<p>Displays, sets, or removes the read-only, archive, system, and hidden attributes assigned to files or directories. Used without parameters, attrib displays attributes of all files in the current directory.<br />
Syntax:</p>
<p><strong><span style="font-size: small;">attrib</span></strong><span style="font-size: small;"> [{</span><strong><span style="font-size: small;">+r</span></strong><span style="font-size: small;">|</span><strong><span style="font-size: small;">-r</span></strong><span style="font-size: small;">}] [{</span><strong><span style="font-size: small;">+a</span></strong><span style="font-size: small;">|</span><strong><span style="font-size: small;">-a</span></strong><span style="font-size: small;">}] [{</span><strong><span style="font-size: small;">+s</span></strong><span style="font-size: small;">|</span><strong><span style="font-size: small;">-s</span></strong><span style="font-size: small;">}] [{</span><strong><span style="font-size: small;">+h</span></strong><span style="font-size: small;">|</span><strong><span style="font-size: small;">-h</span></strong><span style="font-size: small;">}] [[</span><em><span style="font-size: small;">Drive</span></em><strong><span style="font-size: small;">:</span></strong><span style="font-size: small;">][</span><em><span style="font-size: small;">Path</span></em><span style="font-size: small;">] </span><em><span style="font-size: small;">FileName</span></em><span style="font-size: small;">] [</span><strong><span style="font-size: small;">/s</span></strong><span style="font-size: small;">[</span><strong><span style="font-size: small;">/d</span></strong><span style="font-size: small;">]]</span></p>
<p>Parameters</p>
<p><strong><span style="font-size: small;">+r : </span></strong><span style="font-size: small;">Sets the read-only file attribute.</span></p>
<p><strong><span style="font-size: small;">-r : </span></strong><span style="font-size: small;">Clears the read-only file attribute.</span></p>
<p><strong><span style="font-size: small;">+a : </span></strong><span style="font-size: small;">Sets the archive file attribute.</span></p>
<p><strong><span style="font-size: small;">-a : </span></strong><span style="font-size: small;">Clears the archive file attribute.</span></p>
<p><strong><span style="font-size: small;">+s : </span></strong><span style="font-size: small;">Sets the system file attribute.</span></p>
<p><strong><span style="font-size: small;">-s : </span></strong><span style="font-size: small;">Clears the system file attribute.</span></p>
<p><strong><span style="font-size: small;">+h : </span></strong><span style="font-size: small;">Sets the hidden file attribute.</span></p>
<p><strong><span style="font-size: small;">-h : </span></strong><span style="font-size: small;">Clears the hidden file attribute.</span></p>
<p><strong><span style="font-size: small;">[</span></strong><em><span style="font-size: small;">Drive</span></em><strong><span style="font-size: small;">:][</span></strong><em><span style="font-size: small;">Path</span></em><strong><span style="font-size: small;">] </span></strong><em><span style="font-size: small;">FileName</span></em><strong><span style="font-size: small;"> : </span></strong><span style="font-size: small;">Specifies the location and name of the directory, file, or set of files for which you want to display or change attributes. You can use wildcard characters (that is, ? and *) in the </span><em><span style="font-size: small;">FileName</span></em><span style="font-size: small;"> parameter to display or change the attributes for a group of files.</span></p>
<p><strong><span style="font-size: small;">/s : </span></strong><span style="font-size: small;">Applies </span><strong><span style="font-size: small;">attrib</span></strong><span style="font-size: small;"> and any command-line options to matching files in the current directory and all of its subdirectories.</span></p>
<p><strong><span style="font-size: small;">/d : </span></strong><span style="font-size: small;">Applies </span><strong><span style="font-size: small;">attrib</span></strong><span style="font-size: small;"> and any command-line options to directories.</span></p>
<p><strong><span style="font-size: small;">/? : </span></strong><span style="font-size: small;">Displays help at the command prompt.</span></p>
<p>_________________________________________________________________________________________</p>
<p>I have used the above method with success for many different infections of similar nature like XP Home Security 2011:</p>
<p><a href="http://www.xbark.com/wp-content/uploads/2011/04/XP_home_SC_2011.jpg"><img class="aligncenter size-full wp-image-72" title="XP_home_SC_2011" src="http://www.xbark.com/wp-content/uploads/2011/04/XP_home_SC_2011.jpg" alt="" width="675" height="481" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xbark.com/windows-xp/virus-infected/cleaning-infected-windows-xp-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOW TO: Add watermark with Paint.NET</title>
		<link>http://www.xbark.com/graphics/how-to-add-watermark-with-paint-net/</link>
		<comments>http://www.xbark.com/graphics/how-to-add-watermark-with-paint-net/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 20:58:47 +0000</pubDate>
		<dc:creator>XBarK</dc:creator>
				<category><![CDATA[Graphics]]></category>

		<guid isPermaLink="false">http://www.xbark.com/?p=42</guid>
		<description><![CDATA[I use Paint.NET on regular basis. It&#8217;s one of those tools that&#8217;s light on resources and packed with features. It lets you get the job done without overwhelming you with...]]></description>
			<content:encoded><![CDATA[<p>I use Paint.NET on regular basis. It&#8217;s one of those tools that&#8217;s light on resources and packed with features. It lets you get the job done without overwhelming you with advanced features (if I need to do advanced image editing I fire up GIMP). I needed to add a watermark on one of the images I took so naturally I opened Paint.NET and checked the menus for a watermark feature (I have seen this in other programs) and to my disappointment found none.</p>
<p>So here are few simple steps for adding a watermark to your image with Paint.NET:</p>
<ul>
<li>Open your image</li>
<li>Click Layers in the menu bar and 	Add New Layer</li>
<li>With the new Layer selected (the 	Layers window in Paint.NET is on the bottom right by default. If you 	turned it off you can get it back by going to Window-&gt;Layers). 	Click the text tool and type the text of your watermark.<a href="http://www.xbark.com/wp-content/uploads/2011/03/Layers-paint_net.jpg"><br />
</a><a href="http://www.xbark.com/wp-content/uploads/2011/03/Layers-paint_net.jpg"></a><a href="http://www.xbark.com/wp-content/uploads/2011/03/Layers-paint_net1.jpg"><img class="size-full wp-image-48 aligncenter" title="Layers paint_net" src="http://www.xbark.com/wp-content/uploads/2011/03/Layers-paint_net1.jpg" alt="" width="173" height="184" /></a>&nbsp;</p>
<ul>
<li><span style="color: #ff0000;"><strong>NOTE:</strong></span> White color text is usually 	the best for watermarks</li>
</ul>
</li>
<li>Now double click the new Layer (in 	the Layers window) this brings up Layer Properties.</li>
<li>In Layer Properties change the 	Mode to Overlay and adjust the Opacity to your liking (about 110 is 	usually what I pick).</li>
</ul>
<p><a href="http://www.xbark.com/wp-content/uploads/2011/03/Layer-Prop-paint_net.jpg"><a href="http://www.xbark.com/wp-content/uploads/2011/03/Layer-Prop-paint_net1.jpg"><img class="size-full wp-image-51 aligncenter" title="Layer Prop paint_net" src="http://www.xbark.com/wp-content/uploads/2011/03/Layer-Prop-paint_net1.jpg" alt="" width="280" height="216" /></a><br />
</a></p>
<ul>
<li>Save your image and you are done.</li>
</ul>
<p>You will need to flatten the image. Don’t worry Paint.NET will prompt you to do this when you try to save the image in any standard format like .jpg (or you can always select your Layer and click Layers and Marge Layer Down from the menu).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xbark.com/graphics/how-to-add-watermark-with-paint-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firewood FAIL :)</title>
		<link>http://www.xbark.com/funny/firewood-fail/</link>
		<comments>http://www.xbark.com/funny/firewood-fail/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 20:16:12 +0000</pubDate>
		<dc:creator>XBarK</dc:creator>
				<category><![CDATA[Funny]]></category>

		<guid isPermaLink="false">http://www.xbark.com/?p=36</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.xbark.com/wp-content/uploads/2011/03/FireWood_.jpg"><img class="alignnone size-full wp-image-38" title="Fire Wood FAIL" src="http://www.xbark.com/wp-content/uploads/2011/03/FireWood_.jpg" alt="" width="1024" height="575" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xbark.com/funny/firewood-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Windows Server 2008 Enterprise for ASP and C# web form hosting</title>
		<link>http://www.xbark.com/windows-server-2008/asp-and-c-web-form-hosting/installing-windows-server-2008-for-asp-and-c-web-form-hosting/</link>
		<comments>http://www.xbark.com/windows-server-2008/asp-and-c-web-form-hosting/installing-windows-server-2008-for-asp-and-c-web-form-hosting/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 21:13:33 +0000</pubDate>
		<dc:creator>XBarK</dc:creator>
				<category><![CDATA[ASP and C# web form hosting]]></category>

		<guid isPermaLink="false">http://www.xbark.com/?p=11</guid>
		<description><![CDATA[The goal is to have a central server where the developed forms are published. This will allow any user on the network (and through VPN) to view the forms and...]]></description>
			<content:encoded><![CDATA[<p>The goal is to have a central server where the developed forms are published. This will allow any user on the network (and through VPN) to view the forms and fill them in as necessary. The web forms use MSSQL connection (available through Visual Studio 2008) to send the user&#8217;s input to a database as well as read from the database and provide the user with choices. This is not a business critical operation for me so the machine is regular workstation with a mirrored drive. The actual workspace that contains the developed forms is on a daily back up schedule and archived off-site. In case the machine fails (mother board, PSU etc..) I have many others with the same specs and all I have to do is  swap the drives. If both drives fail I can load the Ghost image on a different machine and republish the forms (since it&#8217;s not business critical some down time is not a problem). If this was a business critical process I would use a server with full hardware support and RAID-5.</p>
<ul>
<li><strong><span style="color: #ff0000;">Side NOTE</span></strong>: If you have a server with good specs this is a great candidate for a Virtual Machine, in my case I don&#8217;t really have anything to spare at the moment.</li>
</ul>
<p>With Windows 2008 SP2 I don&#8217;t fear loading Windows Server on a workstation anymore. In the past you did not even want to attempt this because workstations did not have any drivers for Windows Server. You ware stuck searching forever trying to find something compatible (sometimes with no luck). With Windows 2008 SP2 most drivers are there out of the box (specifically the ones for networking). In my case on a Dell GX520 I only need the audio and video drives (without any video drivers I can still set my resolution as high as 1600&#215;1200 with 32bit). Another good thing is that most Windows 7 drivers work just fine in Windows Server 2008 SP2 (In my case the chip-set and Video drivers).</p>
<ul>
<li>Windows 2008 Install is very 	straight forward. I wiped the drive and let the system install (the 	install itself is about 30min on Intel Duo 3.2 with 4gb ram and SATA 	7200 drives).</li>
<li>The first thing I do on a clean 	install of Windows Server is load Firefox. I can&#8217;t stand IE even 	without the pointless Enhanced Security Configuration. Microsoft 	made IE block every single website (including their own) by default 	and called it a security feature; I suppose you can&#8217;t except much 	from a company with the security track record like theirs (I do 	think the rest of Windows Server 2008 is a big improvement over the 	past so at least that&#8217;s a step in the right direction). I also 	disable account control (anything that pops up for every single 	program is not a security measure, because you will get in habit of 	clicking continue every time anyway).</li>
<li>Second step is updates (over 400MB 	at this point plus Service Pack 2). One of the most 	important things with servers is keeping them up to date. There are 	some exceptions to this rule (if you run old software on the server 	and you know updates will break it, or must wait for the updates to 	be approved by the vendor of the applications you are running. RIM 	has been known to do this).</li>
<li>After this step I usually take 	care of the basic configurations.This includes:
<ul>
<li>Setting the time zone (unless 		Pacific works for you), put in the static IP, join the computer to 		the domain, and enable Remote Desktop. Microsoft makes this very 		easy by showing you a dialog with Initial Tasks.</li>
<li>Install Anti Virus</li>
</ul>
</li>
</ul>
<ul>
<li>Adding Server Role &#8211; After the server is configured, fully 	updated and running without any issues, the server roles are added 	(there is a link to it in the Initial Tasks dialog). In this case we 	choose Web Server (IIS). The features chosen for this install are: 	Common HTTP Features, Application Development, I also select Windows Authentication and Digest Authentication in security (the other check 	marks are left as they come by default).</li>
<li><strong><span style="color: #ff0000;">NOTE:</span></strong>- Windows will not say anything after the roles are installed, but you may need to restart your server to see the security roles under Authentication and also some of other features you may have selected.</li>
<li>Configure IIS 7 to work with Active Directory
<ul>
<li>In Active Directory &#8211; create a global security group that you will use for access control to the website.</li>
<li>In IIS &#8211; (Windows Authentication must be installed for Active Directory)  Click the name of the website in the IIS Manager. This will display the home page:</li>
</ul>
<p><a href="http://www.xbark.com/wp-content/uploads/2011/03/web_home.jpg"><img class="size-medium wp-image-24 aligncenter" title="web_home" src="http://www.xbark.com/wp-content/uploads/2011/03/web_home-300x193.jpg" alt="IIS 7 Website home page" width="240" height="155" /></a></p>
<ul>
<li>Under Authentication make sure that Anonymous is disabled and Windows Authentication is enabled.</li>
<li>Under Authorization Rules you only need one rule. Click Add Allow Rule from the right hand side. In the next dialog select the third option (Specified roles or user groups), type in the name of the Active Directory group you created and click OK. All users that are in the group will have access to the server.</li>
</ul>
</li>
</ul>
<p>Now you are ready to publish forms from Visual Studio (if you are on another machine you need to put the name of the server in the properties before you publish).</p>
<p>Since I do not require anything special on my site. I will use the default site that comes pre-configured with the installation of the Web Server role.</p>
<p>If you want to read in detail about configuring a new site from scratch check out this blog: <a title="IIS 7.0 Server-Side" href="http://mvolo.com/blogs/serverside/archive/2007/07/12/Creating-IIS7-sites_2C00_-applications_2C00_-and-virtual-directories.aspx" target="_blank"></a></p>
<p><a title="IIS 7.0 Server-Side" href="http://mvolo.com/blogs/serverside/archive/2007/07/12/Creating-IIS7-sites_2C00_-applications_2C00_-and-virtual-directories.aspx" target="_blank">http://mvolo.com/blogs/serverside/archive/2007/07/12/Creating-IIS7-sites_2C00_-applications_2C00_-and-virtual-directories.aspx</a></p>
<p>TechNet for IIS 7 is found here: <a title="TechNet IIS7" href="http://technet.microsoft.com/en-us/library/cc753433%28WS.10%29.aspx" target="_blank"></a></p>
<p><a title="TechNet IIS7" href="http://technet.microsoft.com/en-us/library/cc753433%28WS.10%29.aspx" target="_blank">http://technet.microsoft.com/en-us/library/cc753433%28WS.10%29.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xbark.com/windows-server-2008/asp-and-c-web-form-hosting/installing-windows-server-2008-for-asp-and-c-web-form-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

