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

Running framework tools directly does not work #126

Open
adfoster-r7 opened this issue May 7, 2020 · 3 comments
Open

Running framework tools directly does not work #126

adfoster-r7 opened this issue May 7, 2020 · 3 comments

Comments

@adfoster-r7
Copy link
Contributor

adfoster-r7 commented May 7, 2020

It's currently not possible to run framework tools directly:

/opt/metasploit-framework/embedded/framework/tools/exploit/pattern_create.rb

On Kali this gives the following error:

Traceback (most recent call last):                                                                                   
        3: from /opt/metasploit-framework/embedded/framework/tools/exploit/pattern_create.rb:16:in `<main>'          
        2: from /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:62:in `gem'                                      
        1: from /usr/lib/ruby/2.7.0/rubygems/dependency.rb:323:in `to_spec'                                          
/usr/lib/ruby/2.7.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'rex-text' (>= 0) among 90 total gem(s) 
(Gem::MissingSpecError)                                                                                              
Checked in 'GEM_PATH=/root/.gem/ruby/2.7.0:/var/lib/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/share/rubygems-integrati│
on/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0', execute `gem env`│
for more information 

A fix is most likely required in Metasploit ommnibus to add wrappers to the tools, or something similar.

Full context:
rapid7/metasploit-framework#13411

Identical issue: rapid7/metasploit-framework#18011

@busterb
Copy link
Contributor

busterb commented May 7, 2020

for reference, the native Kali package has this behavior: https://twitter.com/g0tmi1k/status/973570367490088960?lang=en

@hum4nG0D
Copy link

hum4nG0D commented Jun 4, 2021

gem install rex-text fixed the issue for me.

https://hornenielsen.wordpress.com/2016/07/13/gem-install-rex-text-saves-the-day/

@0xPhoenixx
Copy link

gem install rex-text fixed the issue for me.

https://hornenielsen.wordpress.com/2016/07/13/gem-install-rex-text-saves-the-day/

Thanks @hum4nG0D, fixed it for me.

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