{"slug": "installing-metasploit-on-an-m1-macbook-air", "title": "Installing Metasploit on an M1 Macbook Air", "summary": "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.", "body_md": "This method installs Metasploit from the official OSX installer found at https://osx.metasploit.com/metasploitframework-latest.pkg\n- Download the installer from https://osx.metasploit.com/metasploitframework-latest.pkg\n- Run the installer.\n- You should get it blocked from running.\n- Go to OSX System Preferences -> Security & Privacy and tell OSX to \"Open it anyway\".\n- The installer will start.\n- At some point you will have to type your password to give the installer elevated privileges to continue.\n- Done.\nUse vim or your preferred text editor to open ~/.zshrc (or ~/.bashrc if you use Bash) and add the line below to the end.\nexport PATH=\"/opt/metasploit-framework/bin:$PATH\"\nExecute the following command in your terminal. This does the same thing as Option 1 without needing an editor.\necho -e export PATH=\"/opt/metasploit-framework/bin:$PATH\" >> ~/.zshrc\nBelow is the copy/paste of my commandline. Note the first few lines, where I was prompted for input.\n❯ msfconsole\n** Welcome to Metasploit Framework Initial Setup **\nPlease answer a few questions to get started.\nWould you like to use and setup a new database (recommended)? Y\n[?] Would you like to init the webservice? (Not Required) [no]: no\nClearing http web data service credentials in msfconsole\nRunning the 'init' command for the database:\nCreating database at /Users/tyrell/.msf4/db\nCreating db socket file at /var/folders/j_/9dwy14jj58jcb3m4gxk4b0000000gn/T\nStarting database at /Users/tyrell/.msf4/db...success\nCreating database users\nWriting client authentication configuration file /Users/tyrell/.msf4/db/pg_hba.conf\nStopping database at /Users/tyrell/.msf4/db\nStarting database at /Users/tyrell/.msf4/db...success\nCreating initial database schema\nDatabase initialization successful\n** Metasploit Framework Initial Setup Complete **\nCall trans opt: received. 2-19-98 13:24:18 REC:Loc\nTrace program: running\nwake up, Neo...\nthe matrix has you\nfollow the white rabbit.\nknock, knock, Neo.\n(`. ,-,\n` `. ,;' /\n`. ,'/ .'\n`. X /.'\n.-;--''--.._` ` (\n.' / `\n, ` ' Q '\n, , `._ \\\n,.| ' `-.;_'\n: . ` ; ` ` --,.._;\n' ` , ) .'\n`._ , ' /_\n; ,''-,;' ``-\n``-..__``--`\nhttps://metasploit.com\n=[ metasploit v6.2.14-dev-961db67c4a301c0b5ef3ed981ad0edf9677ebcb0]\n+ -- --=[ 2239 exploits - 1181 auxiliary - 398 post ]\n+ -- --=[ 864 payloads - 45 encoders - 11 nops ]\n+ -- --=[ 9 evasion ]\nMetasploit tip: Use the edit command to open the\ncurrently active module in your editor\nmsf6 >\nAt this stage, you have a working Metasploit Framework installation in your Macbook.", "url": "https://wpnews.pro/news/installing-metasploit-on-an-m1-macbook-air", "canonical_source": "https://gist.github.com/tyrell/33ffd31c8539a6200e27a2e1ef27efa4", "published_at": "2022-08-19 21:49:30+00:00", "updated_at": "2026-05-22 17:10:30.382679+00:00", "lang": "en", "topics": ["cybersecurity", "developer-tools", "open-source"], "entities": ["Metasploit", "OSX", "Apple", "Bash", "Zsh"], "alternates": {"html": "https://wpnews.pro/news/installing-metasploit-on-an-m1-macbook-air", "markdown": "https://wpnews.pro/news/installing-metasploit-on-an-m1-macbook-air.md", "text": "https://wpnews.pro/news/installing-metasploit-on-an-m1-macbook-air.txt", "jsonld": "https://wpnews.pro/news/installing-metasploit-on-an-m1-macbook-air.jsonld"}}