cd /news/cybersecurity/installing-metasploit-on-an-m1-macbo… · home topics cybersecurity article
[ARTICLE · art-9564] src=gist.github.com ↗ pub= topic=cybersecurity verified=true sentiment=· neutral

Installing Metasploit on an M1 Macbook Air

The article provides instructions for installing Metasploit Framework on an M1 MacBook Air using the official macOS installer, including steps to bypass security blocks in System Preferences. After installation, it guides users to add the Metasploit binary path to their shell configuration file and demonstrates a successful setup by launching `msfconsole`, which initializes a database and displays the Metasploit interface.

read2 min views18 publishedAug 19, 2022

This method installs Metasploit from the official OSX installer found at https://osx.metasploit.com/metasploitframework-latest.pkg

  • Download the installer from https://osx.metasploit.com/metasploitframework-latest.pkg
  • Run the installer.
  • You should get it blocked from running.
  • Go to OSX System Preferences -> Security & Privacy and tell OSX to "Open it anyway".
  • The installer will start.
  • At some point you will have to type your password to give the installer elevated privileges to continue.
  • Done.
Use vim or your preferred text editor to open ~/.zshrc (or ~/.bashrc if you use Bash) and add the line below to the end.
export PATH="/opt/metasploit-framework/bin:$PATH"

Execute the following command in your terminal. This does the same thing as Option 1 without needing an editor. echo -e export PATH="/opt/metasploit-framework/bin:$PATH" >> ~/.zshrc Below is the copy/paste of my commandline. Note the first few lines, where I was prompted for input. ❯ msfconsole ** Welcome to Metasploit Framework Initial Setup ** Please answer a few questions to get started. Would you like to use and setup a new database (recommended)? Y [?] Would you like to init the webservice? (Not Required) [no]: no Clearing http web data service credentials in msfconsole Running the 'init' command for the database: Creating database at /Users/tyrell/.msf4/db Creating db socket file at /var/folders/j_/9dwy14jj58jcb3m4gxk4b0000000gn/T Starting database at /Users/tyrell/.msf4/db...success Creating database users Writing client authentication configuration file /Users/tyrell/.msf4/db/pg_hba.conf Stopping database at /Users/tyrell/.msf4/db Starting database at /Users/tyrell/.msf4/db...success Creating initial database schema Database initialization successful ** Metasploit Framework Initial Setup Complete ** Call trans opt: received. 2-19-98 13:24:18 REC:Loc Trace program: running wake up, Neo... the matrix has you follow the white rabbit. knock, knock, Neo. (. ,-, . ,;' / . ,'/ .' . X /.' .-;--''--.._ ( .' / , ' Q ' , ,._ \

,.| ' `-.;_'
: . ` ; ` ` --,.._;

' , ) .'._ , ' /_

; ,''-,;' ``-
``-..__``--`

https://metasploit.com

=[ metasploit v6.2.14-dev-961db67c4a301c0b5ef3ed981ad0edf9677ebcb0]
+ -- --=[ 2239 exploits - 1181 auxiliary - 398 post ]
+ -- --=[ 864 payloads - 45 encoders - 11 nops ]
+ -- --=[ 9 evasion ]

Metasploit tip: Use the edit command to open the currently active module in your editor msf6 > At this stage, you have a working Metasploit Framework installation in your Macbook.

── more in #cybersecurity 4 stories · sorted by recency
── more on @metasploit 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/installing-metasploi…] indexed:0 read:2min 2022-08-19 ·