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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM