Mac installation Metasploit

Source: Internet
Author: User
Tags install homebrew

Can't sleep in the morning, read, and then want to do on the virtual machine Mac, previously installed in the win, the comparison is not good use, I think like the application of Linux does not have to always indulge in win users, and then developed so troublesome things, such as docker,metasploit, good, not wordy, Let's go

Premise: My virtual machine Mac is pure version, version 10.12.6, install software Xcode (although I don't know if there is no impact, I will not play)

1. Install homebrew (recommended to the official website to see the installation command)

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

2. Download and install Metasploit

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

Command+enter into the directory, double-click the pkg installation package, next, the next step, the installation is complete.

3. Installation of various exotic poses

Brew Update

Brew Install PostgreSQL (good luck, no error here)

Psql--version (View database version)

Brew Services Start PostgreSQL (This is how I run the database here)

sudo gem install bundler

Then I run cd/opt/metasploit-framework/embedded/framework/&&./msfconsole

It's not going to work, and then follow the prompts to install

sudo gem install Rex-mime

Curl-l Get.rvm.io | Bash-s Stable

SOURCE ~/.BASHRC

SOURCE ~/.bash_profile

And then here's a hint to ruby version No, continue to install Ruby

RVM Install ruby-2.4.1

Then run, or error, and then I did not understand, tried a lot, here will not repeat the

Bundle Install

You should have done this.

The installation process will be a problem, generally follow the prompts to do good

I performed a lot of installation and uninstallation of the sudo gem install bundler during execution, and finally the bundle install succeeded

Here to enter the directory run Msfconsole, originally wanted to do an alias, and then did not succeed, although the trouble, it is, anyway, is the virtual machine

Finally, attach my installation command

/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-LGet. 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

Reference links

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

The time in the early morning wasted, write the article also took time, really troublesome ah, welcome you message exchange

Mac installation Metasploit

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.