Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Homebrew
- Install homebrew by running the following command:
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Once Homebrew installs, run ‘brew doctor’ to finalize the installation of homebrew.
- brew doctor
- RUBY
- brew install rbenv ruby-build
- # Add rbenv to bash so that it loads every time you open a terminal
- echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
- source ~/.bash_profile
- # Install Ruby
- rbenv install 2.2.2
- rbenv global 2.2.2
- ruby -v
- POSTGRESQL
- nstalling and configuring PostgreSQL
- Now, time to install the backend database that Metasploit uses.
- brew install postgresql --without-ossp-uuid
- If the Homebrew install did NOT complete this for you, the next step is to initialize the database for first time usage.
- initdb /usr/local/var/postgres
- us
- As of 9.3.5_1 it looks like the homebrew installer wraps up by running this command for you.
- Ensure that postgreSQL is set to launch on boot by issuing the following:
- mkdir -p ~/Library/LaunchAgents
- cp /usr/local/Cellar/postgresql/9.4.1/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
- Start the PostgreSQL service:
- launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
- Configuring VNCViewer
- As Metasploit uses vncviewer for its VNC payloads, and OS X comes with a VNC client, we need to create the needed vncviewer file that will call the OS X vnc viewer.
- echo '#!/usr/bin/env bash'>> /usr/local/bin/vncviewer
- echo open vnc://\$1 >> /usr/local/bin/vncviewer
- chmod +x /usr/local/bin/vncviewer
- Installing the following gems needed for running the framework:
- gem install pg sqlite3 msgpack activerecord redcarpet rspec simplecov yard bundler
- Install Armitage
- Execute the following commands to prepare the environment and download armitage to the correct location:
- brew install pidof
- curl -# -o /tmp/armitage.tgz http://www.fastandeasyhacking.com/download/armitage-latest.tgz
- tar -xvzf /tmp/armitage.tgz -C /usr/local/share
- bash -c "echo \'/usr/bin/java\' -jar /usr/local/share/armitage/armitage.jar \$\*" > /usr/local/share/armitage/armitage
- perl -pi -e 's/armitage.jar/\/usr\/local\/share\/armitage\/armitage.jar/g' /usr/local/share/armitage/teamserver
- create sym links for Armitage:
- ln -s /usr/local/share/armitage/armitage /usr/local/bin/armitage
- ln -s /usr/local/armitage/teamserver /usr/local/bin/teamserver
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement