0x1 安裝依賴
yum install sqlite-devel libxslt-devel libxml2-devel java-1.7.0-openjdk libpcap-devel nano openssl-devel zlib-devel libffi-devel gdbm-devel readline-devel wget gcc-c++ patch readline zlib bzip2 autoconf automake libtool bison iconv-devel libyaml-devel make postgresql-devel
0x2 安裝rvm
curl -sSL https://rvm.io/mpapis.asc | gpg --import - curl -L get.rvm.io | bash -s stable #經常出現獲取不到的情況,看他提示運行相關操作 source /etc/profile.d/rvm.sh rvm reload
0x3 安裝ruby-2.6
rvm install ruby-2.6.2
0x4 下載編譯msf5
git clone https://github.com/rapid7/metasploit-framework.git cd metasploit-framework gem install bundle bundle install
0x5 添加快捷啟動
ln -s /root/metasploit-framework/msfconsole /usr/bin/msfconsole