系统相关
首页 > 系统相关> > centos7 安装msf

centos7 安装msf

作者:互联网

安装依赖

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

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

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

centos7 安装msf5 - 左小龙 - 博客园 (cnblogs.com)

标签:metasploit,rvm,devel,centos7,framework,install,msf,安装
来源: https://www.cnblogs.com/erlee/p/16067321.html