Installing Metasploit 3.0 On Ubuntu 7.10

Want to support HowtoForge? Become a subscriber!
 
Submitted by bt3wifu (Contact Author) (Forums) on Fri, 2008-01-18 15:43. :: Ubuntu

Installing Metasploit 3.0 On Ubuntu 7.10

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).

 

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


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by ghost (not registered) on Thu, 2008-12-11 22:37.

bt3wifu, thank you for manual!
by your article I install this program from the first times:)

 

P.S. sorry for my English


Submitted by Kyle Brandt (not registered) on Sat, 2008-11-22 23:01.

You might want to include libglade2-ruby and libgtk2-ruby so the gui version (msfgui) works .  Also here they all are as one command:

sudo apt-get install ruby libyaml-ruby libzlib-ruby libop
enssl-ruby libdl-ruby libreadline-ruby libiconv-ruby rubygems subversion libglade2-ruby libgtk2-ruby

Thanks for this post!

Submitted by DevilMan (registered user) on Tue, 2008-02-26 21:45.

    Excellent guide. Worked on Kubuntu Gutsy with Metasploit 3.1 flawlessly. Outstanding. Thank you very much.

Devilman 

Submitted by billhuber (registered user) on Mon, 2008-01-21 17:08.

The subversion update command did not work for me using the above procedure. The error message complained about a missing subversion file. Downloading a tarball does not appear to be a good way of setting up working copy for subversion. If you are going to use Subversion to keep up to date you may have better luck if you start off with "checking out" a working copy of Metasploit. Downloading Metasploit using Subversion takes a little longer but it works. I used this procedure:

  1. Install Subverion if you do not have it already installed.
  2. Create the metasploit directory, "mkdir metasploit-3.0".
  3. Change to that directory, "cd metasploit-3.0".
  4. Create the create a working copy of Metasploit with the command "svn co http://metasploit.com/svn/framework3/trunk/ .". Note: There is a space and a period after the URL.
  5. Run the "svn update" command to make sure that subversion is working properly and you have the lastest copy of Metasploit.
  6. Run Metasploit.
Submitted by Anonymous (not registered) on Sat, 2011-01-29 15:18.

i installed the metasploit but dont know how to run it

i m using ubuntu 10