-
Notifications
You must be signed in to change notification settings - Fork 208
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 wrappers don't support spaces inside CWD #137
Comments
same issue as #134 |
All instances of There are a few other instances of unquoted
metasploit-omnibus/config/templates/metasploit-framework-wrappers/msfwrapper.erb Line 110 in 6c77070
This may (or may not) cause an issue, depending on the (user-specified?) install location:
Given the presence of multiple missing quotes for command arguments, it may be worth reviewing the wrappers more thoroughly. Default
|
Inside Ubuntu 20.04 on WSL2 on a Windows 10 x64 20H2 host, after installing the latest Metasploit as of today via the omnibus installer:
Examining the source of
msfvenom
shows it gathers the current working directory (CWD), then changes to it later without quotes:Since WSL2 makes the home directory based on the Windows username ("Jeff McJunkin") in my case, the path has spaces, and needs to be quoted.
The other shell wrappers do the same:
The fix should be simple -- change
cd $CWD
in all the shell wrappers tocd "$CWD"
. This will likely be a more common issue as WSL2 adoption rises, but it's not a WSL2-specific bug.The text was updated successfully, but these errors were encountered: