<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>*/ baber /*</title>
	<atom:link href="http://baber.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://baber.wordpress.com</link>
	<description>A blog on Internet Security</description>
	<lastBuildDate>Sun, 17 Apr 2011 16:16:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='baber.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>*/ baber /*</title>
		<link>http://baber.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://baber.wordpress.com/osd.xml" title="*/ baber /*" />
	<atom:link rel='hub' href='http://baber.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Fixing MySQL Gem Errors in BT4</title>
		<link>http://baber.wordpress.com/2011/01/08/fixing-mysql-gem-errors-in-bt4/</link>
		<comments>http://baber.wordpress.com/2011/01/08/fixing-mysql-gem-errors-in-bt4/#comments</comments>
		<pubDate>Sat, 08 Jan 2011 19:06:51 +0000</pubDate>
		<dc:creator>baber</dc:creator>
				<category><![CDATA[Backtrack]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://baber.wordpress.com/?p=20</guid>
		<description><![CDATA[Armitage is a new GUI for Metasploit, which is very interactive and makes hacking or like white-hats call it pen-testing real easy. To install Armitage, all you have to do is download it and run it on Linux using the following command: ./armitage.sh The reason I&#8217;m writing this blog is that while trying to run [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baber.wordpress.com&amp;blog=782904&amp;post=20&amp;subd=baber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Armitage is a new GUI for Metasploit, which is very interactive and makes hacking or like white-hats call it pen-testing real easy.</p>
<p>To install Armitage, all you have to do is download it and run it on Linux using the following command:<br />
<code>./armitage.sh</code></p>
<p>The reason I&#8217;m writing this blog is that while trying to run it with Metasploit and MySQL, I came across two errors and it took me a while to find the answers.</p>
<p>I was trying to install Armitage on Backtrack4, not 4r2 version for which the instructions are available <a href="http://vishnuvalentino.com/computer/10-steps-to-set-up-armitage-in-backtrack-for-penetration-test/">here</a>.</p>
<p>So the first error i was getting was when installing the gem mysql. The gem is required if you want to use MySQL database. When I tried installing the gem in Metasploit itself or in shell I was getting the following error:</p>
<p><code>ERROR:  could not find gem mysql locally or in a repository</code></p>
<p>So I need to update the gem repository and I tried:<br />
<code>gem update --system</code></p>
<p>This returned an error:<br />
<code>ERROR:  While executing gem ... (RuntimeError)<br />
    gem update --system is disabled on Debian. RubyGems can be updated using the<br />
 official Debian repositories by aptitude or apt-get.</code></p>
<p>Wandered on the Interwebs for a while and found no solution. So I tried updating the ruby gems by doing:</p>
<p><code>apt-get install rubygems</code></p>
<p>And this updated the package and the following command now worked:</p>
<p><code>gem install mysql</code></p>
<p>But wait, I&#8217;m still not able to connect to the MySQL database in Metasploit or Armitage, when I run the following command:</p>
<p><code>msf &gt; db_connect root:toor@127.0.0.1/msf3</code></p>
<p>The error I get is:</p>
<p><code><br />
[-] Error while running command db_connect: Failed to connect to the database: uninitialized constant MysqlCompat::MysqlRes</p>
<p>Call stack:<br />
/opt/metasploit3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1702:in `db_connect_mysql'<br />
/opt/metasploit3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1548:in `cmd_db_connect'<br />
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:246:in `run_command'<br />
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:208:in `block in run_single'<br />
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `each'<br />
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `run_single'<br />
/opt/metasploit3/msf3/lib/rex/ui/text/shell.rb:143:in `run'<br />
/opt/metasploit3/msf3/msfconsole:128:in `'<br />
</code></p>
<p>WTF&#8230;<br />
Searched for the error on Google and found an article on how to resolve this error on Mac OS X. Unix Linux same shit. Knew it will work. So ran the following command:</p>
<p><code>sudo gem install --no-rdoc --no-ri  -v=2.7 mysql -- --with-mysql-dir=/usr/local/mysql  --with-mysql-config=/usr/bin/mysql_config<br />
</code></p>
<p> It worked and Armitage now successfully connected to the Metaploit db in MySQL.</p>
<p>Happy Hacking!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/baber.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/baber.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/baber.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/baber.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/baber.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/baber.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/baber.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/baber.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/baber.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/baber.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/baber.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/baber.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/baber.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/baber.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baber.wordpress.com&amp;blog=782904&amp;post=20&amp;subd=baber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://baber.wordpress.com/2011/01/08/fixing-mysql-gem-errors-in-bt4/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3cb5fe1be7d052c6280540dcc91ada7d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">baber</media:title>
		</media:content>
	</item>
		<item>
		<title>Backtrack4 VM Image Slow</title>
		<link>http://baber.wordpress.com/2010/04/08/backtrack4-vm-image-slow/</link>
		<comments>http://baber.wordpress.com/2010/04/08/backtrack4-vm-image-slow/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 15:49:40 +0000</pubDate>
		<dc:creator>baber</dc:creator>
				<category><![CDATA[Backtrack]]></category>
		<category><![CDATA[artsd]]></category>
		<category><![CDATA[kde]]></category>

		<guid isPermaLink="false">http://baber.wordpress.com/?p=12</guid>
		<description><![CDATA[After running the Backtrack 4 image, I found the image to be running really very slow on my Vista box with Workstation 6.5. After digging around, I found that this is because of the aRtsd daemon using 80% of the CPU. Rtsd is the sound server daemon. So to fix this problem, you can either [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baber.wordpress.com&amp;blog=782904&amp;post=12&amp;subd=baber&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After running the Backtrack 4 image, I found the image to be running really very slow on my Vista box with Workstation 6.5. After digging around, I found that this is because of the aRtsd daemon using 80% of the CPU. <a href="http://en.wikipedia.org/wiki/ARts">Rtsd</a> is the sound server daemon. So to fix this problem, you can either kill the daemon or turn it off. See below on how-to-do:</p>
<p>To kill the process<br />
<code>kill -9 </code></p>
<p>To turn of the service<br />
<code>KDE -&gt; System-&gt;Settings-&gt;Sound &amp; Multimedia -&gt; Sound System -&gt; Uncheck [Enable the sound system]</code></p>
<p>Happy B4cktr4ck1ng</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/baber.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/baber.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/baber.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/baber.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/baber.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/baber.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/baber.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/baber.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/baber.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/baber.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/baber.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/baber.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/baber.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/baber.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=baber.wordpress.com&amp;blog=782904&amp;post=12&amp;subd=baber&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://baber.wordpress.com/2010/04/08/backtrack4-vm-image-slow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3cb5fe1be7d052c6280540dcc91ada7d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">baber</media:title>
		</media:content>
	</item>
	</channel>
</rss>
