-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Problem runing ./beef on kali linux rolling #1395
Comments
Hi @ziflar This is probably due to some changes made recently regarding the I noticed your using therubyracer 0.12.3. I'm using 0.12.2 with Ruby 2.3.0 and Ruby 2.4.0 on Kali rolling with no problems. I'm using the same version of Uglifier as you - version 3.2.0. At a guess, rolling back the version of therubyracer to 0.12.2, or even 11.x, would resolved this issue. In if RUBY_PLATFORM.downcase.include?('linux')
gem 'therubyracer'
end Like so: if RUBY_PLATFORM.downcase.include?('linux')
gem 'therubyracer', '~> 0.12.2'
end Then |
@bcoles |
@bcoles
see the version gems:Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
Using term-ansicolor 1.5.0
[ 8:33:50][] Bind socket [imapeudora1] listening on [0.0.0.0:2000]. |
Cool. Looks like that worked? |
still not works root@kali:/usr/share/beef-xss# gem install therubyracer -v 0.12. Bundler Error Backtrace: from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:90:in block (2 levels) in require' from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:86:in each'from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:86:in block in require' from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:75:in each'from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:75:in require' from /usr/lib/ruby/vendor_ruby/bundler.rb:106:in require'from /usr/share/beef-xss/core/loader.rb:10:in <top (required)>' from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require'from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from ./beef:25:in 'root@kali:/usr/share/beef-xss# ^C |
I've run this commande because i'll try before to install beef from github on kali with my script. |
can you please send me the right script , because i am facing some trouble. |
Try if you have nodejs installed |
which script and i've already edited config.yaml . root@kali:/usr/share/beef-xss# ./beef |
@Tikam02 i think you don't have nodejs installed on your system!!!! |
Thank you so much man it Works . And your tutorials are awesome keep uploading for noobs like me. ✌️ 👍 |
This should now be fixed in master.
|
I had the same problem running beef giving errors related to ruby. I tried the following things which seem to have fixed it.
Hope it helps. |
hello all Freind
@bcoles
ruby -v
ruby 2.3.3p222 (2016-11-21) [x86_64-linux-gnu]
cd /beef-xss && rm -r .ruby-version
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root
users on this machine.
Using public_suffix 2.0.5
Using ansi 1.5.0
Using chunky_png 1.3.8
Using daemons 1.2.4
Using json 1.8.6
Using json_pure 1.8.6
Using multi_json 1.12.1
Using eventmachine 1.0.9.1
Using http_parser.rb 0.6.0
Using erubis 2.7.0
Using espeak-ruby 1.0.4
Using execjs 2.7.0
Using fastercsv 1.5.5
Using filesize 0.1.1
Using geoip 1.6.3
Using rkelly-remix 0.0.7
Using libv8 3.16.14.19 (x86_64-linux)
Using metasm 1.0.3
Using mime-types-data 3.2016.0521
Using mini_portile2 2.1.0
Using mojo_magick 0.5.6
Using msgpack 1.1.0
Using rb-readline-r7 0.5.2.0
Using robots 0.10.1
Using parseconfig 1.0.8
Using rack 1.6.5
Using rainbow 2.2.1
Using ref 2.0.0
Using rubyzip 1.2.1
Using tilt 2.0.7
Using tins 1.13.2
Using bundler 1.14.6
Using addressable 2.5.1
Using rqrcode 0.10.1
Using em-websocket 0.5.1
Using uglifier 3.2.0
Using jsobfu 0.4.2
Using mime-types 3.1
Using nokogiri 1.7.1
Using rack-protection 1.5.3
Using thin 1.7.0
Using rexec 1.6.3
Using therubyracer 0.12.3
Using term-ansicolor 1.5.0
Using data_objects 0.10.17
Using dm-core 1.2.1
Using qr4r 0.4.1
Using rex 2.0.10
Using sinatra 1.4.8
Using rubydns 0.7.3
Using do_sqlite3 0.10.17
Using dm-do-adapter 1.2.0
Using dm-migrations 1.2.0
Using dm-serializer 1.2.2
Using msfrpc-client 1.1.0
Using dm-sqlite-adapter 1.2.0
Bundle complete! 26 Gemfile dependencies, 56 gems now installed.
Use
bundle show [gemname]
to see where a bundled gem is installed../beef
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:94:in
'rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError) Gem Load Error is: wrong argument type Class (expected Module) Backtrace for gem load error is: /usr/lib/ruby/vendor_ruby/v8/conversion.rb:23:in
include'/usr/lib/ruby/vendor_ruby/v8/conversion.rb:23:in
block (2 levels) in <top (required)>' /usr/lib/ruby/vendor_ruby/v8/conversion.rb:22:in
class_eval'/usr/lib/ruby/vendor_ruby/v8/conversion.rb:22:in
block in <top (required)>' /usr/lib/ruby/vendor_ruby/v8/conversion.rb:21:in
each'/usr/lib/ruby/vendor_ruby/v8/conversion.rb:21:in
<top (required)>' /var/lib/gems/2.3.0/gems/therubyracer-0.12.3/lib/v8.rb:22:in
require'/var/lib/gems/2.3.0/gems/therubyracer-0.12.3/lib/v8.rb:22:in
<top (required)>' /var/lib/gems/2.3.0/gems/execjs-2.7.0/lib/execjs/ruby_racer_runtime.rb:108:in
require'/var/lib/gems/2.3.0/gems/execjs-2.7.0/lib/execjs/ruby_racer_runtime.rb:108:in
available?' /var/lib/gems/2.3.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:63:in
each'/var/lib/gems/2.3.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:63:in
find' /var/lib/gems/2.3.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:63:in
best_available'/var/lib/gems/2.3.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:57:in
autodetect' /var/lib/gems/2.3.0/gems/execjs-2.7.0/lib/execjs.rb:5:in
module:ExecJS'/var/lib/gems/2.3.0/gems/execjs-2.7.0/lib/execjs.rb:4:in
<top (required)>' /var/lib/gems/2.3.0/gems/uglifier-3.2.0/lib/uglifier.rb:5:in
require'/var/lib/gems/2.3.0/gems/uglifier-3.2.0/lib/uglifier.rb:5:in
<top (required)>' /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:91:in
require'/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:91:in
block (2 levels) in require' /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:86:in
each'/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:86:in
block in require' /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:75:in
each'/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:75:in
require' /usr/lib/ruby/vendor_ruby/bundler.rb:106:in
require'/usr/share/beef-xss/core/loader.rb:10:in
<top (required)>' /usr/local/lib/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
require'/usr/local/lib/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
require' ./beef:25:in
Bundler Error Backtrace:
from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:90:in
block (2 levels) in require' from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:86:in
each'from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:86:in
block in require' from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:75:in
each'from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:75:in
require' from /usr/lib/ruby/vendor_ruby/bundler.rb:106:in
require'from /usr/share/beef-xss/core/loader.rb:10:in
<top (required)>' from /usr/local/lib/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
require'from /usr/local/lib/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
require' from ./beef:25:in
'nodejs is installed
node --version
v6.10.3
i think the problem is related to enabling therubyrace gems on this version !!!!
any help ??
My script to install beef on kali from this repository work perfect just Before this version.
my script from here stop now on ./beef with all error listed and Quoted above.
the script run beef-github on kali linux in the same way as the beef kali package .and you can jsut run
./beef-upadte
to be up to date with the new features of beef-github.now trying to run ./beef-update i've error on ./beef
The text was updated successfully, but these errors were encountered: