Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#51545 - [metasploit] pattern_create.rb can't find rex-text gem

Attached to Project: Community Packages
Opened by gozes (gozes) - Thursday, 27 October 2016, 09:06 GMT
Last edited by Levente Polyak (anthraxx) - Friday, 28 October 2016, 12:42 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
when trying to use the pattern_create tool that comes with metasploit pattern_create fails to run and complains that it can't find the rex-text gem. See error below

Additional info:
/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'rex-text' (>= 0) among 24 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/home/gozes/.gem/ruby/2.3.0:/usr/lib/ruby/gems/2.3.0', execute `gem env` for more information
from /usr/lib/ruby/2.3.0/rubygems/dependency.rb:328:in `to_spec'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
from /usr/share/metasploit/tools/exploit/pattern_create.rb:11:in `<main>'

gem env info

RubyGems Environment:
- RUBYGEMS VERSION: 2.5.1
- RUBY VERSION: 2.3.1 (2016-04-26 patchlevel 112) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/2.3.0
- USER INSTALLATION DIRECTORY: /home/gozes/.gem/ruby/2.3.0
- RUBY EXECUTABLE: /usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- SPEC CACHE DIRECTORY: /home/gozes/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/lib/ruby/gems/2.3.0
- /home/gozes/.gem/ruby/2.3.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--user-install"
- REMOTE SOURCES:
- https://rubygems.org/


Steps to reproduce:
type
/usr/share/metasploit/tools/exploit/pattern_create.rb -h
This task depends upon

Closed by  Levente Polyak (anthraxx)
Friday, 28 October 2016, 12:42 GMT
Reason for closing:  Fixed
Additional comments about closing:  4.12.38-1
Comment by Levente Polyak (anthraxx) - Thursday, 27 October 2016, 09:36 GMT
you are not even using the metasploit package from our repositories
Comment by gozes (gozes) - Thursday, 27 October 2016, 11:27 GMT
that is true because I been using the arch strike pkg from before MSF was in the community repo.
that said, I just remove the arch strike pkg and install the one from the community and got this

/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'rex-text' (>= 0) among 24 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/home/gozes/.gem/ruby/2.3.0:/usr/lib/ruby/gems/2.3.0', execute `gem env` for more information
from /usr/lib/ruby/2.3.0/rubygems/dependency.rb:328:in `to_spec'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
from /opt/metasploit/tools/exploit/pattern_create.rb:11:in `<main>'

by running /opt/metasploit/tools/exploit/pattern_create.rb -h
Comment by Levente Polyak (anthraxx) - Thursday, 27 October 2016, 11:37 GMT
Yep, check it already -- that's the reason I did not close this bug ;)
Just wanted to make you aware that you want to switch to the one from our repos to get support :)
Comment by gozes (gozes) - Thursday, 27 October 2016, 15:08 GMT
Comment by Levente Polyak (anthraxx) - Thursday, 27 October 2016, 22:04 GMT
should be fixed in 4.12.38-1 please try it
Comment by gozes (gozes) - Friday, 28 October 2016, 06:40 GMT
just did a pacman -Syu and try it and still get the same error
Comment by Levente Polyak (anthraxx) - Friday, 28 October 2016, 08:02 GMT
that can't be are you sure you got the 4.12.38-1 version and its from out repository?
If yes please append the output of:

> pacman -Qi metasploit

and

> /opt/metasploit/tools/exploit/pattern_offset.rb -q 3Ac4
Comment by gozes (gozes) - Friday, 28 October 2016, 08:36 GMT
oops sorry about that my -Syu command failed because pacman was complaining that some python2-pycparser files existed and I didn't notice. I just had to pacman -S --force python2-pycparser and upgrade again. the update was apply and just tested that pattern_create works now

Loading...