Results 1 to 8 of 8

Thread: SET - msfpath not defined

  1. #1
    Join Date
    2016-Apr
    Posts
    3

    SET - msfpath not defined

    When trying to create a mass email with a payload, I get to the part where it asks for my port. As soon as I enter that in I get the following error;

    Code:
    [!] Something went wrong, printing the error: name 'msfpath' is not defined
    Looking at my set_config.py in /etc/setoolkit/ I am seeing

    Code:
    METASPLOIT_PATH="/usr/share/metasploit-framework"
    Is this incorrect? Am I looking at the wrong config file? Thank you for any assistance.

  2. #2
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    805
    That's the right path to the MSF. However, according to the notes in /etc/setoolkit/set_config.py, you should modify /etc/setoolkit/set.config for changes.

    Depending on your version of SET, you may want to update.

  3. #3
    Join Date
    2016-Apr
    Posts
    3
    Looking in /etc/setoolkit/set.config the path matches without the quotes. I tried adding those in just in case but that didnt even allow the program to open. Removed the quotes again.

    The SET version I am running is 7.0.4 and it seems to be the most up to date.

  4. #4
    Join Date
    2016-Apr
    Posts
    3
    I was able to get this fixed somehow. Suddenly my msfconsole started giving me a staying

    Code:
    Could not find i18n-0.7.0 in any of the sources
    After running the below, it fixed itself now. Thank you.

    Code:
    apt-get install postgresql-server-dev-all libpq-dev libpcap-dev libsqlite3-dev
    cd /usr/share/metasploit-framework/
    bundle install

  5. #5
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    805
    You're welcome...glad you got it going & thanks for posting the fix

  6. #6
    Join Date
    2016-Apr
    Posts
    2
    Had the same problem and your fix did the trick. Thanks mate!

  7. #7
    Join Date
    2016-May
    Posts
    1
    I'm getting your same original problem:

    [!] Something went wrong, printing the error: name 'msfpath' is not defined

    Checking the set.config file, I have the same path. How did you solve this originally?

    Thanks

  8. #8
    Join Date
    2016-Apr
    Posts
    2
    Did u try draka's solution? or just scrolled past every comment? anyway, this is what solved the issue for me and draka:
    apt-get install postgresql-server-dev-all libpq-dev libpcap-dev libsqlite3-dev
    cd /usr/share/metasploit-framework/
    bundle install

Similar Threads

  1. 'DebianOSBaseUtil' is not defined Kali Linux 2021.1
    By Javy26 in forum Building Archive
    Replies: 0
    Last Post: 2021-03-17, 17:20
  2. Replies: 5
    Last Post: 2015-08-21, 20:39
  3. Binwalk Plugins is not defined
    By HaQue in forum TroubleShooting Archive
    Replies: 6
    Last Post: 2013-12-05, 09:25
  4. Replies: 3
    Last Post: 2013-12-03, 15:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •