centos7 安装msf5
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