iagox86 / dnscat2

BSD 3-Clause "New" or "Revised" License
3.43k stars 601 forks source link

Server, ruby error #65

Closed Swiffers closed 9 years ago

Swiffers commented 9 years ago

Following your installation manual, with a Droplet from https://cloud.digitalocean.com; I end up with the following error :

ruby ./dnscat2.rb
/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rexec (~> 1.6.2) amongst [bundler-1.10.6, eventmachine-1.0.3, rubydns-0.7.3, trollop-2.0] (Gem::LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/specification.rb:777:in `block in activate_dependencies'
    from /usr/lib/ruby/1.9.1/rubygems/specification.rb:766:in `each'
    from /usr/lib/ruby/1.9.1/rubygems/specification.rb:766:in `activate_dependencies'
    from /usr/lib/ruby/1.9.1/rubygems/specification.rb:750:in `activate'
    from /usr/lib/ruby/1.9.1/rubygems.rb:212:in `rescue in try_activate'
    from /usr/lib/ruby/1.9.1/rubygems.rb:209:in `try_activate'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from /root/dnscat2/server/driver_dns.rb:11:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from ./dnscat2.rb:14:in `<main>'
iagox86 commented 9 years ago

I think that's somewhere in the install guide.. you have to install "ruby-dev" or something. I can look it up later. :)

On Wed, Sep 16, 2015 at 3:10 PM, Swiffers notifications@github.com wrote:

Following your installation manual, with a Droplet from https://cloud.digitalocean.com; I end up with the following error :

ruby ./dnscat2.rb

/usr/lib/ruby/1.9.1/rubygems/dependency.rb:247:in to_specs': Could not find rexec (~> 1.6.2) amongst [bundler-1.10.6, eventmachine-1.0.3, rubydns-0.7.3, trollop-2.0] (Gem::LoadError) from /usr/lib/ruby/1.9.1/rubygems/specification.rb:777:inblock in activate_dependencies' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:766:in each' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:766:inactivate_dependencies' from /usr/lib/ruby/1.9.1/rubygems/specification.rb:750:in activate' from /usr/lib/ruby/1.9.1/rubygems.rb:212:inrescue in try_activate' from /usr/lib/ruby/1.9.1/rubygems.rb:209:in try_activate' from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:59:inrescue in require' from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in require' from /root/dnscat2/server/driver_dns.rb:11:in<top (required)>' from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in require' from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:inrescue in require' from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in require' from ./dnscat2.rb:14:in

'

— Reply to this email directly or view it on GitHub https://github.com/iagox86/dnscat2/issues/65.

iagox86 commented 9 years ago

So, that's not the error I was thinking of, the one I noticed looked like:

/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)

And installing the "ruby-dev" package worked. It's possible I just have to add "rexec" to the gemfile. If installing "ruby-dev" doesn't help, can you run "gem install rexec" and see if that helps?

Swiffers commented 9 years ago

Issue solved ! As you recommended, the rexec gem solved the problem.

gem install rexec
iagox86 commented 9 years ago

Great! I added it to the Gemfile explicitly.