Metasploit 安装

2015-11-18  籽藤 

最近在啃《Metasploit 渗透测试指南》,相较于国人写的那些 Kali Linux 入门教程,安装过程就占个一大截,那些所谓的教程纯碎是凑篇幅。而此书并没有花笔墨介绍安装,但对渗透测试各个阶段涉及到的工具和基础知识都做了详细介绍,对初学者而言是一本不可多得的好书。

与其他安装教程不同的是,我是先安装了 metasploitframework,然后再安装 metasploit 的各种依赖项。以下是 Mac 下各依赖项的安装:

安装 RVM

curl-sSL https://get.rvm.io | bash -s stable--ruby

安装 Ruby:用 rvm 安装 ruby,我是用 ruby 2.2.1

重新加载 rvm 配置

source /Users/applewu/.rvm/scripts/rvm

安装 postgresql 数据库,完成初始化,创建用户和数据库:

brew install postgresql

initdb /usr/local/var/postgres

mkdir -p ~/Library/LaunchAgents

ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

createuser msf -P -h localhost

createdb -Omsf msf -h localhost

安装 Nmap

brew install nmap

依赖项安装完毕之后,就可以从 /opt/metasploit-framework/bin/ 运行 msfconsole 了(如图)




        



414°/4140 人阅读/0 条评论 发表评论

登录 后发表评论