Mac安裝metasploit

來源:互聯網
上載者:User

標籤:開發   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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.