標籤:開發 dex bre 2.4 targe ssl pos 安裝 master
早上睡不著,看書,然後想在虛擬機器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