Metasploit on Ubuntu

The Metasploit Project is an open source computer security project which provides information about security vulnerabilities and aids in penetration testing and IDS signature development. Its most well-known sub-project is the Metasploit Framework, a tool for developing and executing exploit code against a remote target machine. Other important sub-projects include the Opcode Database, shellcode archive, and security research. (Wikipedia).

I find this article on the web it;s very useful to installing Metasploit.
Installing Metasploit:

Before installing metasploit we need to install the following packages:

$ sudo apt-get install ruby libruby rdoc

$ sudo apt-get install libyaml-ruby

$ sudo apt-get install libzlib-ruby

$ sudo apt-get install libopenssl-ruby

$ sudo apt-get install libdl-ruby

$ sudo apt-get install libreadline-ruby

$ sudo apt-get install libiconv-ruby

$ sudo apt-get install rubygems

Once the dependencies have been installed, we are ready to install metasploit.

Download the latest Metasploit at http://www.metasploit.com/framework/downloader/

when i write this article the latest version is framework-3.2.tar.gz

Follow the instruction and accept the license, after finish download untar the file:

$ tar -xvzf framework-3.2.tar.gz

Updating Metasploit Database

Before we use metasploit update the database first, go to the folder metasploit:

$ cd metasploit-x.x

and run svn

$ svn update

You must have subversion installed to run svn command if not you can install subversion with this command:

$ sudo apt-get install subversion

Running Metasploit

And now we ready run metasploit, use the following command:

$ ./msfconsole

After that you can use metasploit command window

note: for beginner like me, i suggest download tutorial pdf from: