Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metasploit path doesn't found. #1084

Open
Mina93-min opened this issue Jun 30, 2024 · 1 comment
Open

Metasploit path doesn't found. #1084

Mina93-min opened this issue Jun 30, 2024 · 1 comment

Comments

@Mina93-min
Copy link

Hello ,

While I trying to open SET it gives me error that couldn't find metasploit and should change the directory in set.config file.

my metasploit in /opt/metasploit/ I changed to this directory. And also it still give me the same error after I change it I enter to models 5 to update set config and also it didn't solve anything.

I use CSI LINUX ,SET version 8.0.3 , metasploit v 6.4.3-dev

@jlopez0501
Copy link

jlopez0501 commented Oct 13, 2024

I was having the same issue. Here's how I fixed it.

I changed the METASPLOIT_PATH variable in the set.config to my msfconsole directory. Mine is /opt/metasploit-framework/bin/msfconsole

I then edited the meta_path function within the setcore.py file. I added another os.path.isfile nested if statement structured like this. Obviously, you will have to change it to reflect your msfconsole path.

if os.path.isfile("/opt/metasploit-framework/bin/msfconsole"):
    if trigger == 0:
        msf_path = "/opt/metasploit-framework/bin/"
        trigger = 1

After this I had to rerun the setup.py script and ran setoolkit again and it worked. I wish you luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants