Mac for Hackers: How to Install the Metasploit Framework « Null Byte :: WonderHowTo

Metasploitis an extremely popular pentesting tool capable of enumeration, exploitation, and injecting shell code, and is a part of almost every hacking toolkit. So there's no way I could leave this out of our series ongetting your Mac set up for hacking.Luckily for those of us who use Apple machines, the install process is much less time-consuming than it used to be. Just a couple of years ago, I would have had to download all the required pieces and configure them manually. Now, the Metasploit Framework has an install package for macOS (previously called Mac OS X).Of course, we could use the Metasploit that's inour Kali Linux VM we just installed, but I generally only use Kali when a tool is unavailable for Macs, such as Aircrack-ng. Plus, running tools directly on your main operating system is generally faster and easier than running them in a virtual machine.Previously:How to Install Kali Linux as a Virtual MachineStep 1: Download the Metasploit Framework InstallerOur fist step is to download the Metasploit installer package fromRapid7.There are different editions, such as Pro, Express, Community, and Framework. Express costs$5,000, and Pro about 6 times that, and it's probably safe to say most of us don't have that kind of cash lying around. While the Community edition is free, we want the command-line interface, Metasploit Framework.To save you some time,here is the download for Mac. Once it has downloaded, open the package and follow the directions in the installer. You will be prompted to enter your password.Step 2: Configure MetasploitNow we will need to configure Metasploit. Opena terminal windowand change directories to the folder containing msfconsole (the main interface for the Metasploit Framework):cd /opt/metasploit-framework/bin/Next, run msfconsole with the command:./msfconsoleThe first question asks if you want to add/opt/metasploit-framework/binto your path. Select yes, so you can execute msf commands from any working directory.Next, you will be asked if you want to set up a new database. Installing the database will allow us to list credentials, list hosts, and more—which is what we want.Once the database is set up, msfconsole will drop you into the msfconsole! The install is complete.Now let's check to see if the database is working:db_statusAs we can see, the database is connected and working.Don't Miss:Exploring the Inner Architecture of MetasploitStep 3: Update MetasploitBefore diving intothe basics of Metasploit, let's make sure it's up to date first. In a terminal window, execute the command:msfupdateYou will be prompted for your root password. Once given, Metasploit will update.Now Get Hacking!Installing Metasploit on macOS has never been easier. With Metasploit installed and running, you should be able to get hacking right away, so make sure to search here on Null Byte for some good guides that use msfconsole. We'vegot plenty to keep you occupiedfor a long time.Installing many other hacking tools on macOS is also a cinch—the inclusion of Ruby and Python with the OS really help with this. But it's not only the languages, having a POSIX-compliant backend means that porting software from Linux to Mac is easier. Apple products seem to have become more popular with developers and IT professionals, and the more IT professionals using them, the more ports we'll see!Next Up:How to Organize Your Tools by Pentest StagesFollow Null Byte onTwitterandGoogle+Follow WonderHowTo onFacebook,Twitter,Pinterest, andGoogle+Want to start making money as a white hat hacker?Jump-start your hacking career with our2020 Premium Ethical Hacking Certification Training Bundlefrom the newNull Byte Shopand get over 60 hours of training from cybersecurity professionals.Buy Now (90% off) >Other worthwhile deals to check out:97% off The Ultimate 2021 White Hat Hacker Certification Bundle99% off The 2021 All-in-One Data Scientist Mega Bundle98% off The 2021 Premium Learn To Code Certification Bundle62% off MindMaster Mind Mapping Software: Perpetual LicenseCover image (original) byGennady Kireev/123RF; Screenshots by Barrow/Null ByteRelatedHow to Hack Like a Pro:Getting Started with MetasploitHack Like a Pro:How to Exploit and Gain Remote Access to PCs Running Windows XPRaspberry Pi:MetasploitHack Like a Pro:Metasploit for the Aspiring Hacker, Part 14 (Creating Resource Script Files)Hack Like a Pro:Metasploit for the Aspiring Hacker, Part 9 (How to Install New Modules)Mac for Hackers:How to Get Your Mac Ready for HackingHack Like a Pro:Exploring the Inner Architecture of MetasploitHack Like a Pro:Metasploit for the Aspiring Hacker, Part 10 (Finding Deleted Webpages)Hack Like a Pro:How to Hack Windows Vista, 7, & 8 with the New Media Center ExploitHack Like a Pro:Metasploit for the Aspiring Hacker, Part 4 (Armitage)Hack Like a Pro:Metasploit for the Aspiring Hacker, Part 2 (Keywords)Hack Like a Pro:Metasploit for the Aspiring Hacker, Part 13 (Web Delivery for Windows)How To:Stop the New Java 7 Exploit from Installing Malware on Your Mac or PCHack Like a Pro:How to Create a Smartphone Pentesting LabHack Like a Pro:How Windows Can Be a Hacking Platform, Pt. 1 (Exploit Pack)Hack Like a Pro:How to Remotely Install a Keylogger onto Your Girlfriend's ComputerHack Like a Pro:Metasploit for the Aspiring Hacker, Part 1 (Primer & Overview)How To:Create a Metasploit Exploit in Few MinutesHack Like a Pro:Metasploit for the Aspiring Hacker, Part 6 (Gaining Access to Tokens)How To:Chain VPNs for Complete AnonymityIPsec Tools of the Trade:Don't Bring a Knife to a GunfightDrive-By Hacking:How to Root a Windows Box by Walking Past It