digininja / CeWL

CeWL is a Custom Word List Generator
1.96k stars 258 forks source link

Can't install rexml/document #76

Closed f00d4w0rm4 closed 3 years ago

f00d4w0rm4 commented 3 years ago

Hello! I can't get cewl to run because I can't install rexml/document. I installed rexml. Any advice??

╭─f00d4w0rm5@Garuda in ~ took 1s
╰─λ cewl --help
CeWL 5.5.1 (Grouping) Robin Wood (robin@digi.ninja) (https://digi.ninja/)

Error: rexml/document gem not installed
use: "gem install rexml/document" to install the required gem

╭─f00d4w0rm5@Garuda in ~ took 685ms
╰─λ gem install rexml/document
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Not Found 404 (https://index.rubygems.org/info/rexml/document)
digininja commented 3 years ago

Install bundler and then use that to install all the dependencies.

gem install bundler

bundle install

On Fri, 28 May 2021 at 16:23, f00d4w0rm4 @.***> wrote:

Hello! I can't get cewl to run because I can't install rexml/document. I installed rexml. Any advice??

╭─f00d4w0rm5@Garuda in ~ took 1s

╰─λ cewl --help

CeWL 5.5.1 (Grouping) Robin Wood @.***) (https://digi.ninja/)

Error: rexml/document gem not installed

use: "gem install rexml/document" to install the required gem

╭─f00d4w0rm5@Garuda in ~ took 685ms

╰─λ gem install rexml/document

ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)

bad response Not Found 404 (https://index.rubygems.org/info/rexml/document)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/digininja/CeWL/issues/76, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4SWK2USZZRG2ZREKXS2TTP6YQZANCNFSM45W4HX4Q .

f00d4w0rm4 commented 3 years ago

Thanks for your quick response! I'm getting a new error now, here's what I did:

╭─f00d4w0rm5@Garuda in repo: CeWL🔒 on  master via  v3.0.1 took 1ms
╰─λ gem install bundler
Fetching bundler-2.2.18.gem
WARNING:  You don't have /home/f00d4w0rm5/.local/share/gem/ruby/3.0.0/bin in your PATH,
gem executables will not run.
Successfully installed bundler-2.2.18
1 gem installed

╭─f00d4w0rm5@Garuda in repo: CeWL🔒 on  master via  v3.0.1 took 2s
╰─λ bundle install
/usr/lib/ruby/3.0.0/rubygems.rb:281:in `find_spec_for_exe': Could not find 'bundler' (1.17.2) required by your /home/f00d4w0rm5/Documents/Hacking/tools/wordlists/CeWL/Gemfile.lock. (Gem::GemNotFoundException)
To update to the latest version installed on your system, run `bundle update --bundler`.
To install the missing version, run `gem install bundler:1.17.2`
from /usr/lib/ruby/3.0.0/rubygems.rb:300:in `activate_bin_path'
from /usr/bin/bundle:23:in `<main>'

╭─f00d4w0rm5@Garuda in repo: CeWL🔒 on  master via  v3.0.1 took 1s
[🔴] × sudo bundle update --bundler
Using bundler 2.2.18
Using mime 0.4.4
Using mime-types-data 3.2019.0331
Using mime-types 3.2.2
Using mini_exiftool 2.9.0
Using mini_portile2 2.5.1
Using racc 1.5.2
Using nokogiri 1.11.4 (x86_64-linux)
Using spider 0.5.3
Using zip 2.0.2
Warning: the lockfile is being updated to Bundler 2, after which you will be unable to return to Bundler 1.
Bundle updated!

╭─f00d4w0rm5@Garuda in repo: CeWL🔒 on  master [!] via  v3.0.1 took 1s
╰─λ bundle install
Using bundler 2.2.18
Using mime 0.4.4
Following files may not be writable, so sudo is needed:
/usr/bin
/usr/lib/ruby/gems/3.0.0
/usr/lib/ruby/gems/3.0.0/build_info
/usr/lib/ruby/gems/3.0.0/cache
/usr/lib/ruby/gems/3.0.0/doc
/usr/lib/ruby/gems/3.0.0/extensions
/usr/lib/ruby/gems/3.0.0/gems
/usr/lib/ruby/gems/3.0.0/plugins
/usr/lib/ruby/gems/3.0.0/specifications
Using mime-types-data 3.2019.0331
Using mime-types 3.2.2
Using mini_exiftool 2.9.0
Using mini_portile2 2.5.1
Using racc 1.5.2
Using nokogiri 1.11.4 (x86_64-linux)
Using spider 0.5.3
Using zip 2.0.2
Bundle complete! 6 Gemfile dependencies, 10 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

╭─f00d4w0rm5@Garuda in repo: CeWL🔒 on  master [!] via  v3.0.1 took 1s
╰─λ ./cewl.rb --help
CeWL 5.5.1 (Grouping) Robin Wood (robin@digi.ninja) (https://digi.ninja/)
<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': /usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: _1 is reserved for numbered parameter (SyntaxError)
/usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: _2 is reserved for numbered parameter
/usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: _3 is reserved for numbered parameter
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types.rb:228:in `<top (required)>'
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime-types.rb:3:in `<top (required)>'
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
from /home/f00d4w0rm5/Documents/Hacking/tools/wordlists/CeWL/cewl_lib.rb:13:in `<top (required)>'
from ./cewl.rb:43:in `require_relative'
from ./cewl.rb:43:in `<main>'
<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- mime-types (LoadError)
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/f00d4w0rm5/Documents/Hacking/tools/wordlists/CeWL/cewl_lib.rb:13:in `<top (required)>'
from ./cewl.rb:43:in `require_relative'
from ./cewl.rb:43:in `<main>'
digininja commented 3 years ago

The second to last command looks like it is failing as it can't access some files, try running it with sudo as it suggests.

The warnings at the start of running are known about and are a problem with a dependency but don't affect things.

On Fri, 28 May 2021, 17:10 f00d4w0rm4, @.***> wrote:

Thanks for your quick response! I'm getting a new error now, here's what I did:

╭─f00d4w0rm5@Garuda in repo: CeWL🔒 on  master via  v3.0.1 took 1ms

╰─λ gem install bundler

Fetching bundler-2.2.18.gem

WARNING: You don't have /home/f00d4w0rm5/.local/share/gem/ruby/3.0.0/bin in your PATH,

gem executables will not run.

Successfully installed bundler-2.2.18

1 gem installed

╭─f00d4w0rm5@Garuda in repo: CeWL🔒 on  master via  v3.0.1 took 2s

╰─λ bundle install

/usr/lib/ruby/3.0.0/rubygems.rb:281:in `find_spec_for_exe': Could not find 'bundler' (1.17.2) required by your /home/f00d4w0rm5/Documents/Hacking/tools/wordlists/CeWL/Gemfile.lock. (Gem::GemNotFoundException)

To update to the latest version installed on your system, run bundle update --bundler.

To install the missing version, run gem install bundler:1.17.2

from /usr/lib/ruby/3.0.0/rubygems.rb:300:in `activate_bin_path'

from /usr/bin/bundle:23:in `

'

╭─f00d4w0rm5@Garuda in repo: CeWL🔒 on  master via  v3.0.1 took 1s

[🔴] × sudo bundle update --bundler

Using bundler 2.2.18

Using mime 0.4.4

Using mime-types-data 3.2019.0331

Using mime-types 3.2.2

Using mini_exiftool 2.9.0

Using mini_portile2 2.5.1

Using racc 1.5.2

Using nokogiri 1.11.4 (x86_64-linux)

Using spider 0.5.3

Using zip 2.0.2

Warning: the lockfile is being updated to Bundler 2, after which you will be unable to return to Bundler 1.

Bundle updated!

╭─f00d4w0rm5@Garuda in repo: CeWL🔒 on  master [!] via  v3.0.1 took 1s

╰─λ bundle install

Using bundler 2.2.18

Using mime 0.4.4

Following files may not be writable, so sudo is needed:

/usr/bin

/usr/lib/ruby/gems/3.0.0

/usr/lib/ruby/gems/3.0.0/build_info

/usr/lib/ruby/gems/3.0.0/cache

/usr/lib/ruby/gems/3.0.0/doc

/usr/lib/ruby/gems/3.0.0/extensions

/usr/lib/ruby/gems/3.0.0/gems

/usr/lib/ruby/gems/3.0.0/plugins

/usr/lib/ruby/gems/3.0.0/specifications

Using mime-types-data 3.2019.0331

Using mime-types 3.2.2

Using mini_exiftool 2.9.0

Using mini_portile2 2.5.1

Using racc 1.5.2

Using nokogiri 1.11.4 (x86_64-linux)

Using spider 0.5.3

Using zip 2.0.2

Bundle complete! 6 Gemfile dependencies, 10 gems now installed.

Use bundle info [gemname] to see where a bundled gem is installed.

╭─f00d4w0rm5@Garuda in repo: CeWL🔒 on  master [!] via  v3.0.1 took 1s

╰─λ ./cewl.rb --help

CeWL 5.5.1 (Grouping) Robin Wood @.***) (https://digi.ninja/)

<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': /usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: _1 is reserved for numbered parameter (SyntaxError)

/usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: _2 is reserved for numbered parameter

/usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: _3 is reserved for numbered parameter

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

from /usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types.rb:228:in `<top (required)>'

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

from /usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime-types.rb:3:in `<top (required)>'

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `require'

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'

from /home/f00d4w0rm5/Documents/Hacking/tools/wordlists/CeWL/cewl_lib.rb:13:in `<top (required)>'

from ./cewl.rb:43:in `require_relative'

from ./cewl.rb:43:in `

'

<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- mime-types (LoadError)

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

from /home/f00d4w0rm5/Documents/Hacking/tools/wordlists/CeWL/cewl_lib.rb:13:in `<top (required)>'

from ./cewl.rb:43:in `require_relative'

from ./cewl.rb:43:in `

'

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/digininja/CeWL/issues/76#issuecomment-850523517, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4SWJMWHQ3DONGCTTBW23TP657ZANCNFSM45W4HX4Q .

f00d4w0rm4 commented 3 years ago

Oh sorry, I tried that originally, copied the wrong one. I tried it again anyways, still no luck. I'm running these commands from within the cewl folder I git cloned. I also tried installing it with pacman from the blackarch repo and did the same steps in the /usr/share/cewl folder, it has the original error:

╭─f00d4w0rm5@Garuda in /usr/share/cewl🔒 via  v3.0.1 took 1s
╰─λ cewl
CeWL 5.5.1 (Grouping) Robin Wood (robin@digi.ninja) (https://digi.ninja/)

Error: rexml/document gem not installed
use: "gem install rexml/document" to install the required gem

The error from the git folder looks to be the same as before:

╭─f00d4w0rm5@Garuda in repo: CeWL🔒 on  master [!] via  v3.0.1 took 2s
╰─λ ./cewl.rb --help
CeWL 5.5.1 (Grouping) Robin Wood (robin@digi.ninja) (https://digi.ninja/)
<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': /usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: _1 is reserved for numbered parameter (SyntaxError)
/usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: _2 is reserved for numbered parameter
/usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: _3 is reserved for numbered parameter
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types.rb:228:in `<top (required)>'
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime-types.rb:3:in `<top (required)>'
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
from /home/f00d4w0rm5/Documents/Hacking/tools/wordlists/CeWL/cewl_lib.rb:13:in `<top (required)>'
from ./cewl.rb:43:in `require_relative'
from ./cewl.rb:43:in `<main>'
<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- mime-types (LoadError)
from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /home/f00d4w0rm5/Documents/Hacking/tools/wordlists/CeWL/cewl_lib.rb:13:in `<top (required)>'
from ./cewl.rb:43:in `require_relative'
from ./cewl.rb:43:in `<main>'
digininja commented 3 years ago

Ok, I think I know that this is, I think it is related to an open issue where one of the gem names is wrong or has changed.

I'll have a look, but try installing mime-types and see if that fixes it.

On Fri, 28 May 2021, 17:58 f00d4w0rm4, @.***> wrote:

Oh sorry, I tried that originally, copied the wrong one. I tried it again anyways, still no luck. I'm running these commands from within the cewl folder I git cloned. I also tried installing it with pacman from the blackarch repo and did the same steps in the /usr/share/cewl folder, it has the original error:

╭─f00d4w0rm5@Garuda in /usr/share/cewl🔒 via  v3.0.1 took 1s

╰─λ cewl

CeWL 5.5.1 (Grouping) Robin Wood @.***) (https://digi.ninja/)

Error: rexml/document gem not installed

use: "gem install rexml/document" to install the required gem

The error from the git folder looks to be the same as before:

╭─f00d4w0rm5@Garuda in repo: CeWL🔒 on  master [!] via  v3.0.1 took 2s

╰─λ ./cewl.rb --help

CeWL 5.5.1 (Grouping) Robin Wood @.***) (https://digi.ninja/)

<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': /usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: _1 is reserved for numbered parameter (SyntaxError)

/usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: _2 is reserved for numbered parameter

/usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types/logger.rb:30: _3 is reserved for numbered parameter

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

from /usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime/types.rb:228:in `<top (required)>'

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

from /usr/lib/ruby/gems/3.0.0/gems/mime-types-3.2.2/lib/mime-types.rb:3:in `<top (required)>'

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `require'

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'

from /home/f00d4w0rm5/Documents/Hacking/tools/wordlists/CeWL/cewl_lib.rb:13:in `<top (required)>'

from ./cewl.rb:43:in `require_relative'

from ./cewl.rb:43:in `

'

<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- mime-types (LoadError)

from <internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

from /home/f00d4w0rm5/Documents/Hacking/tools/wordlists/CeWL/cewl_lib.rb:13:in `<top (required)>'

from ./cewl.rb:43:in `require_relative'

from ./cewl.rb:43:in `

'

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/digininja/CeWL/issues/76#issuecomment-850549134, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4SWP5SGW3DXSYYKOPJQTTP7DULANCNFSM45W4HX4Q .

f00d4w0rm4 commented 3 years ago

Hey that worked! Thank you!! At first I tried sudo gem install mime-types but that didn't work, what did work was sudo pacman -S ruby-mime-types. Thanks again for solving this issue and for your quick responses!

digininja commented 3 years ago

Glad it is sorted.

There is a bug with the Gemfile that I'll try to workout how to fix, glad it is all working for you now.

On Fri, 28 May 2021 at 18:14, f00d4w0rm4 @.***> wrote:

Closed #76 https://github.com/digininja/CeWL/issues/76.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/digininja/CeWL/issues/76#event-4813818592, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4SWITWTEG6OSGNUWQEF3TP7FRHANCNFSM45W4HX4Q .

digininja commented 3 years ago

It was a version issue with mime-types. The earlier versions had a bug with a constructor which used to be considered a warning but is now a syntax error so stops things from working. I've just update the Gemfile to force a minimum version which doesn't have the bug. 'bundle install` will now work.