

In my case since I do mostly development with Metasploit and do not use it on a daily basis now that I changed jobs, my set up will not be a system wide one, since many times I will branch and make copies of the framework to experiment and modify. Now that we have Ruby we can download and install Metasploit Now we can install the gems we need on the RVM versions of Ruby and on the local version that comes with Lion: rvm gem install wirble sqlite3 pg activerecord wirb hirb awesome_print interactive_editor gem install wirble sqlite3 pg activerecord wirb hirb awesome_print interactive_editor To install RVM system wide you issue the following command: bash > ~/.gemrc Installation is the same as the other formulas above using the brew install command.Ĭonfiguring RVM and Installing Ruby VersionsĪs many of you may already know I contribute a lot of time, code and resources for free to the Metasploit project and consider my self a Metasploit Junkie when it comes to coding for it, so for me having Ruby install just right is important as well as to have several versions of ruby to test against, for this I use RVM the Ruby Version Manager. The line that needs to be added is line afte the make install command where you move in to the python directory and install the python libraries. Next we install Libdnet since we will need this to be able to install scapy later on, we need to edit the formula and add the additional call to install the python libraries for us:

Once modified save and install using the command below: 1: brew install john Make sure you modified the url variable and the md5 variable, and remove the patch section like shown above. I start by editing John the Ripper formula to download and Install the latest community patched version brew edit john The first thing would be to install Apples Package of Java, to do this just issue the command Java in the console and follow the instructions that will appear on the screen. Once PostgreSQL is up and running I can work on installing other packages that need a bit more work. Start PostgreSQL Server and Create User and Database for Metasploit 1: # Start databse sever 2: pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start 3: # Create user named msf, provide a good password for it and answer no to all other questions 4: createuser msf -P -h localhost 5: # Create database for use with metasploit called msf and make the user msf the owner 6: createdb -O msf msf -h localhost Lets start by initializing the database: initdb /usr/local/var/postgresĬonfigure Database for Startup at Logon mkdir -p ~/Library/LaunchAgents cp /usr/local/Cellar/postgresql/9.0.4/ ~/Library/LaunchAgents/

The PostgreSQL package after install will need a bit of more work since a system database must be created, set up the engine to start at user logon and create a base user and database for Metasploit that is why I use PostgreSQL for. On my system I started by adding some base tools for formulas that did not needed any modifications on my part, I installed Nmap, THC Hydra, MacVim, Tmux, Hping and PostgreSQL: brew install nmap hydra macvim tmux wget hping postgresql readline These variables will enable color for terminal and the files shown just like most default settings on Linux, set compiler flags and the ever so annoying SVN Keywords command: Once open append the lines bellow to set the proper variables. To be able to modify the system wide profile we must first make it writable and then open it for editing: Install Homebrew ruby -e "$(curl -fsSL )"īefore installing any packages I recommend you modify that shell profile to add environment variables for the new compiler in version 4 of Xcode so we do not get any errors compiling Ruby Gems, Python Eggs and software found in the Homebrew Formulas. The first thing is to do a software update and make sure you have any new patches that there may be from Apple for the OS, then go in to the App Store and download and install the latest version of Xcode for Lion once this has been done we can install the latest version of Homebrew, an alternative package manager for OSX similar to MacPorts.

But the major pain point has always been not the pre-package apps but the terminal environment so here I will share my basic setup of that environment. In addition to this I download and install VMware Fusion, Nessus, Netbeans, Colloquy, Chrome, Firefox, Adium, Skype, WebSecurify just to mention a few. On this blog post I will covered what I learned to setup my basic environment that use from terminal to do my development and research on my Macbook, in addition to the steps you will see here I also.
