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

Installed metasploit binaries are not correctly found #3465

Closed
f4nthomas opened this Issue Feb 3, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@f4nthomas
Copy link

f4nthomas commented Feb 3, 2019

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

@stamparm stamparm closed this in 6fe827f Feb 4, 2019

@stamparm stamparm self-assigned this Feb 4, 2019

@stamparm stamparm added this to the 1.4 milestone Feb 4, 2019

@stamparm

This comment has been minimized.

Copy link
Member

stamparm commented Feb 4, 2019

p.s. this will solve the script finding, though, Metasploit is still not supported by sqlmap on Windows OS (#28 <- will try to deal with it soon)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment