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
[Mac] Tab Auto Complete Crashes Metasploit #4240
Comments
I have also experienced the same issue. This also occurs when using the db_import functionality. My stacktrace displays the same line numbers and files as posted above. OS: Ubuntu 14.04.1 LTS I was able to reliably reproduce this issue. It appears that tab completing directory names works just fine, but when the tab completion will result in a unique file name, it crashes. PoC:
|
Workaround is to start msfconsole with the -L switch. Ruby readline has problems -Josh
|
Looks like this is actually a bug in the upstream rb-readline library: https://github.com/luislavena/rb-readline |
This is a duplicate of #4128. Closing this ticket and tracking there. |
FWIW: @PeleusGitHub this was a great bug report. 👍 |
The short story, @PeleusGitHub , is to use Metasploit as |
This is now patched in upstream rb-readline. |
For Metasploit to get this patch, rb-readline needs to release a new gem. |
I can reproduce this on Kali Linux 1.1.0 (3.18.0-kali1-686-pae). Ruby: ruby 1.9.3p194 (2012-04-20 revision 35410) [i486-linux] Description: Example/PoC:
|
This is patched in master. Is your Kali up to date? That looks like a January update version. |
Thanks, @hmoore-r7 I've updated to master and confirm that I can no longer reproduce it. |
OS: OSX 10.10
Ruby: ruby 1.9.3-p550
Metasploit: metasploit v4.10.1-dev [core:4.10.1.pre.dev api:1.0.0]
Description:
Tab autocomplete on any file name at the end of the directory path crashes msfconsole / meterpreter / whatever is being used at the time.
Example:
Let's say I want to set a PASS_FILE to be the value of '/Users/peleus/Bench/unix_passwords.txt'
The following occurs at each point of the file entry.
'set PASS_FILE /User[tab]' -> OK
'set PASS_FILE /Users/[tab]' -> OK
'set PASS_FILE /Users/peleus/Ben[tab]' -> OK
'set PASS_FILE /Users/peleus/Bench/u[tab]' -> Crash
'set PASS_FILE /Users/peleus/Bench/unix_passwords.txt[tab]' -> Crash
This occurs not only with modules (auxiliary / exploit's etc) but also within open meterpreter sessions (say designating a file to upload).
The text was updated successfully, but these errors were encountered: