Skip to content

Installed metasploit binaries are not correctly found #3465

@f4nthomas

Description

@f4nthomas

Hi Dev Team,

Script version : 1.3.1.75#dev
Python: v2.7.15
OS: Win 10 64-bit
Metasploit framework: v5.0.5
CMD: python sqlmap.py -r some_request_file.raw --dbms=mysql --os-pwn

The installed metasploit framework binaries are not properly found by sqlmap, getting an error:

unable to locate Metasploit Framework installation. You can get it at 'https://www.metasploit.com/download/'

even the msframework is already correctly installed on system. It seems it's caused because of missing windows suffixes '.bat' for the pre-defined metasploit binary files within the file: 'option.py' on lines: 588 ,590, 592

The tool works fine, when I manually modify all three related lines by adding the missing win suffix ".bat" for each pre-defined msf binary, like are: msfcli , msfconsole, msfvenom, msfencode, msfpayload

after update -> msfcli.bat , msfconsole.bat, msfvenom.bat, msfencode.bat, msfpayload.bat

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions