Created
November 18, 2019 14:43
-
-
Save linuxfemale/79d69f2699b06083abbdc7e127ebb80d to your computer and use it in GitHub Desktop.
Metasploit Framework on Ubuntu 18.04 LTS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install curl | |
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get update | |
sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn | |
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
curl -sSL https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
rvm install 2.6.3 | |
rvm use 2.6.3 --default | |
ruby -v | |
mkdir ~/Development | |
cd ~/Development | |
git clone https://github.com/nmap/nmap.git | |
cd nmap | |
./configure | |
make | |
sudo make install | |
make clean | |
cd /opt | |
sudo git clone https://github.com/rapid7/metasploit-framework.git | |
sudo chown -R `whoami` /opt/metasploit-framework | |
cd metasploit-framework | |
rvm ruby-2.6.3 do rvm gemset create metasploit-framework | |
rvm --default use ruby-$2.6.3@metasploit-framework | |
gem install bundler | |
bundle install | |
yard config --gem-install-yri | |
sudo bash -c 'for MSF in $(ls msf*); do ln -s /opt/metasploit-framework/$MSF /usr/local/bin/$MSF;done' | |
sudo apt install postgresql-10 libpq-dev | |
sudo -u postgres createuser arif -s | |
sudo -u postgres psql | |
postgres=# \password arif | |
echo "export PATH=$PATH:/usr/lib/postgresql/10/bin" >> ~/.bashrc | |
. ~/.bashrc | |
sudo usermod -a -G postgres arif | |
sudo su - arif | |
cd /opt/metasploit-framework/ | |
./msfdb init | |
msfconsole |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment