-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
parrern_create.rb could not find 'rex-text' #13411
Comments
@benjaminholloway I think this is happening as the tool has been invoked using the system's Ruby install, rather than the embedded Ruby that came with metasploit-framework. Could you confirm if the following command works as a work around? I've added
|
@jmartin-r7 Is this something you've come across before? I tried checking if this was a duplicate issue, but couldn't find any references. I was thinking we might want to update metasploit ommibus to have similar framework wrappers for the standalone tools? Or maybe replacing the shebang within the top of each tool would be enough, i.e. for pattern_create.rb: - #!/usr/bin/env ruby
+ #!/opt/metasploit-framework/embedded/bin/ruby Happy to raise an issue over at metasploit-omnibus if that's a better place to discuss this 👍 |
adfoster-r7 you are my hero. that works, thank you very much, temporary fix - /opt/metasploit-framework/embedded/bin/ruby /opt/metasploit-framework/embedded/framework/tools/exploit/pattern_create.rb -l 3000 I am pretty new with computers, this is the first time I have used this command, I think I understand your second comment, however when I change
Should I raise the issue with metasploit? Im sure it will sound more eloquent from you. |
@adfoster-r7 we have run into a similar issue in the past. Adding wrappers for tools or some other adjustment in metasploit-omnibus is likely the right place to fix this. |
To add clarification this is likely related to how the ruby version and bundler impact the load path. In the past we have found starting things from the embedded framework directory where the metasploit-framework.gemspec is located tends to prompt correct gemset enforcement by bundler. |
Thanks for the extra context! I've created a separate issue in the metasploit ommibus repo to keep track of this now rapid7/metasploit-omnibus#126 |
Steps to reproduce
in kali with metasploit Framework Version: 5.0.88-dev- running the command as root
/opt/metasploit-framework/embedded/framework/tools/exploit/pattern_create.rb -l 3000
I am trying to follow along with a guide to produce some random text for buffer overflow, not used this command before, when i do i get an error;
Expected behaviour
give out a string of text
You might also want to check the last ~1k lines of
/opt/metasploit/apps/pro/engine/config/logs/framework.log
or~/.msf4/logs/framework.log
for relevant stack tracesThe text was updated successfully, but these errors were encountered: