0

Installed Metasploit on my macOS Catalina from the rapid7 website - pkg installation. When trying to run the command msfconsole the terminal displays the following error:

zsh: command not found: msfconsole
6
  • Where did you install it, which directories are in your $PATH?
    – nohillside
    Commented Sep 5, 2020 at 17:01
  • @nohillside in my .profile I have these lines: PATH=$PATH:/opt/metasploit-framework/binexport and also PATH=$PATH:/opt/metasploit-framework/bin
    – David
    Commented Sep 5, 2020 at 17:05
  • What is the result of echo $PATH?
    – nohillside
    Commented Sep 5, 2020 at 17:09
  • 1
    @nohillside /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
    – David
    Commented Sep 5, 2020 at 17:10
  • According to null-byte.wonderhowto.com/how-to/…, it is located in /opt/metasploit-framework/bin/. Could you check it and report back?
    – jaume
    Commented Sep 5, 2020 at 18:07

1 Answer 1

0

zsh uses .zprofile in your home directory

Try copying the contents of .profile to .zprofile and then launch a new terminal window

1
  • I didnt have .zprofile in my home directory, I created a new text document and named it .zprofile copied the contents of .profile and it worked! Thank you.
    – David
    Commented Sep 6, 2020 at 15:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .