Friday, July 14, 2017

Install Metasploit the easy way without RVM

Install metasploit the easy way

Don't copy&paste, think before.
- wget https://cache.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz && tar xzf stable-snapshot.tar.gz && cd stable-snapshot
- Debian: apt-get install gcc libpq-dev libsqlite3-dev zlib1g-dev libssl-dev readline-common libpq-dev libpcap-dev
- Centos: yum install gcc gcc-c++ zlib-devel openssl-devel readline-devel postgresql-devel libpcap-devel sqlite-devel
- ./configure && make && make install && cd ..
- git clone https://github.com/rapid7/metasploit-framework
- gem install bundle
- cd metasploit-framework && bundle install
- Make symlinks: for MSF in $(ls msf*); do ln -s `pwd`/$MSF /usr/local/bin/$MSF;done