分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > IT知识

Mac安装metasploit

发布时间:2023-09-06 01:09责任编辑:熊小新关键词:meta

早上睡不着,看书,然后想在虚拟机Mac上搞一下,以前在win下安装过,比较不好用,我认为像Linux的应用不需要总是迁就win的用户,然后开发出来那么麻烦的东西,比如docker,metasploit,好了,不啰嗦了,开始吧

前提:我的虚拟机Mac是纯净版,版本10.12.6,安装软件xcode(虽然我不知道有没有影响,我也不会玩)

1.安装homebrew(建议去官网看安装命令)

1.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.
brew install ?wget

2.下载安装metasploit

wget http://osx.metasploit.com/metasploitframework-latest.pkg

command+enter进入所在目录,双击pkg安装包,下一步,下一步就好,安装完成

3.各种奇葩姿势安装

brew update

brew  install  postgresql    (运气好,这里没报错)

 psql --version (查看数据库版本)

brew services start postgresql (我这里是这样运行数据库的)

sudo   gem install bundler

然后我进行运行cd /opt/metasploit-framework/embedded/framework/    && ./msfconsole

结果肯定不行啊,然后根据提示安装

sudo gem install rex-mime

curl -L get.rvm.io | bash -s stable

source ~/.bashrc

source ~/.bash_profile

然后这里提示ruby版本不行,继续安装ruby

rvm install ruby-2.4.1

然后运行,还是报错,然后我没看懂,尝试了许多,这里就不赘述了

bundle install

执行完这个应该就可以了

安装过程会出现问题,一般按提示操作就好

我在执行过程中大量执行了sudo   gem install bundler这个的安装和卸载,最后执行bundle install得以成功

这里要进入目录运行msfconsole,本来想做个alias,然后没有成功,虽然麻烦,就这样吧,反正是虚拟机

最后附上我的安装命令

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew install wgetwget http://osx.metasploit.com/metasploitframework-latest.pkgcd /opt/metasploit-framework/sudo gem install bundlerbrew updatebrew install ?postgresqlpsql --versionbrew services start postgresqlsudo gem install bundlercd /opt/metasploit-framework/embedded/framework/./msfconsole sudo gem install rex-mimecurl -L get.rvm.io | bash -s stablesource ~/.bashrc ?source ~/.bash_profilervm install ruby-2.4.1./msfconsole sudo gem install bundler./msfconsole gem uninstall bundlergem uninstall -i /Users/bin/.rvm/gems/ruby-2.4.1@global bundler./msfconsole sudo gem install bundler ?-n /usr/local/bin/lunchy./msfconsole gem uninstall bundlergem uninstall -i /Users/bin/.rvm/gems/ruby-2.4.1@global bundler./msfconsole lunchy start postgresbundle install./msfconsole 

参考链接    

http://blog.csdn.net/u012566895/article/details/50523476

大早上的时间浪费掉了,写文章也花时间,真麻烦啊,欢迎各位留言交流

Mac安装metasploit

原文地址:http://www.cnblogs.com/byrjx/p/7492785.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved