Script to help with installing and configuring Metasploit Framework, Armitage and the Plugins I have written on OSX and Linux
To use the script on OSX Java, Xcode and Command Development Tools from Xcode must be installed before running the script. In the case of OSX I also added the option of installing GNU GCC in the case you want to compile the old Ruby 1.8.7 that requieres it. When you download the script you must make it executable, when ran with no arguments or with -h it will how the usage help message:
$ chmod +x msf_install.shTo start the installation you just run the script with the -i option and the installation will start. In the case of OSX it will:
$ ./msf_install.sh -h
Scritp for Installing Metasploit Framework
By Carlos_Perez[at]darkoperator.com
Ver 0.1.0
-i :Install Metasploit Framework.
-p:password for MEtasploit databse msf user. If not provided a roandom one is generated for you.
-g :Install GNU GCC (Not necessary uless you wish to compile and install ruby 1.8.7 in OSX
-h :This help message
- Check that dependencies are meet.
- Check if Homebrew is installed and of not it will install it.
- Install Ruby 1.9.3
- Install base ruby gems.
- Install and configure Postgres for use with Metasploit
- Install GCC if selected.
- Download and install Metasploit Framework.
- Installs all necessaries Ruby Gems using bundler.
- Configure the database connection and sets the proper environment variables.
- Download and install the latest version of Armitage.
- Download and install the Pentest plugin and DNSRecon Import plugin.
in the case of Ubuntu 12.10 and 13.04 it will:
- Install all necessary packages
- Install base ruby gems.
- Configure Postgres for use with Metasploit
- Download and install Metasploit Framework.
- Installs all necessaries Ruby Gems using bundler.
- Configure the database connection and sets the proper environment variables.
- Download and install the latest version of Armitage.
- Download and install the Pentest plugin and DNSRecon Import plugin.