Tuesday 9 September 2008

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.

We now need to download the metasploit 3.0. Use the following link for download:

http://framework.metasploit.com/msf/downloader/?id=framework-3.0.tar.gz

Accept the license.

The location (for download) is not important. After the download is complete we need to untar it:

$ tar -xvzf framework-3.0.tar.gz


Updating Metasploit

Before we run metasploit, its a good idea to update its database. Change to metasploit folder:

$ cd metasploit-3.0

Update:

$ svn update

Note: in case you don't have subversion installed use the following command:

$ sudo apt-get install subversion


Running Metasploit

To run metasploit use the following command:

$ ./msfconsole

No comments: