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

Starting msfconsole in a directory that contain spaces gives an error #134

Closed
DidierA opened this issue Sep 14, 2020 · 4 comments
Closed

Comments

@DidierA
Copy link

DidierA commented Sep 14, 2020

if you run 'msfconsole' and the current directory contains spaces in its name, an error is reported:

lv426:~ % cd dir\ with\ space 
lv426:~/dir with space % /usr/bin/msfconsole 
/usr/bin/msfconsole: 14: cd: can't cd to /home/didier/dir

line 14 of /usr/bin/msfconsole contains cd $CWD, it should be cd "$CWD"

@bcoles
Copy link

bcoles commented Sep 14, 2020

How did you install Metasploit?

Edit: Oh, this is the metasploit-omnibus repo, not metasploit-framework. nevermind then

@DidierA
Copy link
Author

DidierA commented Sep 14, 2020

To confirm:

% apt info metasploit-framework
Package: metasploit-framework
Version: 6.0.7+20200913102427~1rapid7-1
Priority: extra
Section: misc
Maintainer: Rapid7 Release Engineering <r7_re@rapid7.com>
Installed-Size: 572 MB
Homepage: https://rapid7.com
License: Unspecified
Vendor: Omnibus <omnibus@getchef.com>
Download-Size: 240 MB
APT-Manual-Installed: yes
APT-Sources: http://downloads.metasploit.com/data/releases/metasploit-framework/apt lucid/main amd64 Packages
Description: The full stack of metasploit-framework

@cannujBarfu0negjiz
Copy link

README.md

if you run 'msfconsole' and the current directory contains spaces in its name, an error is reported:

lv426:~ % cd dir\ with\ space 
lv426:~/dir with space % /usr/bin/msfconsole 
/usr/bin/msfconsole: 14: cd: can't cd to /home/didier/dir

line 14 of /usr/bin/msfconsole contains cd $CWD, it should be cd "$CWD"

@adfoster-r7
Copy link
Contributor

Thanks for the error report; this should be fixed by #186 - and available by default in a day or so from now when the next automated build is released 👍

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

4 participants