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

Problem runing ./beef on kali linux rolling #1395

Closed
ziflar opened this issue May 4, 2017 · 16 comments
Closed

Problem runing ./beef on kali linux rolling #1395

ziflar opened this issue May 4, 2017 · 16 comments
Labels

Comments

@ziflar
Copy link

ziflar commented May 4, 2017

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

@ziflar ziflar changed the title Proble runing ./beef on kali linux rolling Problem runing ./beef on kali linux rolling May 4, 2017
@bcoles
Copy link
Collaborator

bcoles commented May 5, 2017

Hi @ziflar

This is probably due to some changes made recently regarding the therubyracer gem in an attempt to update dependencies and also add support for Ruby 2.4.0.

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 Gemfile, replace:

if RUBY_PLATFORM.downcase.include?('linux')
  gem 'therubyracer'
end

Like so:

if RUBY_PLATFORM.downcase.include?('linux')
  gem 'therubyracer', '~> 0.12.2'
end

Then bundle install

@ziflar
Copy link
Author

ziflar commented May 5, 2017

@bcoles
thx for your replay .
kali rolling is installed on my system .i use ubuntu and other OS as guess OS .
i'll try to replace 'therubyracer' to 0.12.2 and i'll see
thx

@ziflar
Copy link
Author

ziflar commented May 6, 2017

@bcoles
it's ok i've just insall therubyracer -v 0.12.2

gem install therubyracer -v 0.12.2
bundle install

see the version gems:

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 ( But it's work with the 0.12.2 version )

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

[ 8:33:50][] Bind socket [imapeudora1] listening on [0.0.0.0:2000].
[ 8:33:50][
] Browser Exploitation Framework (BeEF) 0.4.7.0-alpha
[ 8:33:50] | Twit: @beefproject
[ 8:33:50] | Site: http://beefproject.com
[ 8:33:50] | Blog: http://blog.beefproject.com
[ 8:33:50] |_ Wiki: https://github.com/beefproject/beef/wiki
[ 8:33:50][] Project Creator: Wade Alcorn (@wadealcorn)
[ 8:33:54][
] BeEF is loading. Wait a few seconds...
[ 8:34:25][] 12 extensions enabled.
[ 8:34:25][
] 291 modules enabled.
[ 8:34:25][] 2 network interfaces were detected.
[ 8:34:25][+] running on network interface: 127.0.0.1
[ 8:34:25] | Hook URL: http://127.0.0.1:3000/hook.js
[ 8:34:25] |_ UI URL: http://127.0.0.1:3000/ui/panel
[ 8:34:25][+] running on network interface: 192.168.1.8
[ 8:34:25] | Hook URL: http://192.168.1.8:3000/hook.js
[ 8:34:25] |_ UI URL: http://192.168.1.8:3000/ui/panel
[ 8:34:25][!] Warning: Default username and password in use!
[ 8:34:25][
] RESTful API key: f579916cbdf04688a879c8593ec56c31aac1461e
[ 8:34:25][] HTTP Proxy: http://127.0.0.1:6789
[ 8:34:25][
] BeEF server started (press control+c to stop)

@bcoles
Copy link
Collaborator

bcoles commented May 6, 2017

Cool. Looks like that worked?

@Tikam02
Copy link

Tikam02 commented May 6, 2017

still not works

root@kali:/usr/share/beef-xss# gem install therubyracer -v 0.12.
ERROR: While executing gem ... (Gem::Requirement::BadRequirementError)
Illformed requirement ["0.12."]
root@kali:/usr/share/beef-xss# gem install therubyracer -v 0.12.2
Fetching: therubyracer-0.12.2.gem (100%)
Building native extensions. This could take a while...
Successfully installed therubyracer-0.12.2
Parsing documentation for therubyracer-0.12.2
Installing ri documentation for therubyracer-0.12.2
Done installing documentation for therubyracer after 0 seconds
1 gem installed
root@kali:/usr/share/beef-xss# 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.
Warning: the running version of Bundler (1.13.6) is older than the version that created the lockfile (1.14.4). We suggest you upgrade to the latest version of Bundler by running gem install bundler.
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
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.13.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.
root@kali:/usr/share/beef-xss# ./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/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require'
/usr/lib/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/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

@ziflar
Copy link
Author

ziflar commented May 6, 2017

@bcoles
@Tikam02

I've run this commande because i'll try before to install beef from github on kali with my script.
I've edited my script adding some command to install gems for this version
My script urgade bundler from v13 to v14
And contain an update of gems --system.
After all this i run :
gem install therubyracer -v 0.12.2
And my beef is installed on my system using my script and it´s perfetct

@Tikam02
Copy link

Tikam02 commented May 6, 2017

can you please send me the right script , because i am facing some trouble.

@ziflar
Copy link
Author

ziflar commented May 6, 2017

Try if you have nodejs installed
node --version
If not run
Apt-get install nodejs
Or try to install all gems and editing config.yaml .....from my script

@Tikam02
Copy link

Tikam02 commented May 6, 2017

which script and i've already edited config.yaml .
it's showing errors on ruby files like:

root@kali:/usr/share/beef-xss# ./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:ininclude'
/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:inclass_eval'
/usr/lib/ruby/vendor_ruby/v8/conversion.rb:22:in block in <top (required)>' /usr/lib/ruby/vendor_ruby/v8/conversion.rb:21:ineach'
/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:inrequire'
/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:inrequire'
/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:ineach'
/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:inbest_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:inmodule: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:inrequire'
/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:inrequire'
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:91:in block (2 levels) in require' /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:86:ineach'
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:86:in block in require' /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:75:ineach'
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:75:in require' /usr/lib/ruby/vendor_ruby/bundler.rb:106:inrequire'
/usr/share/beef-xss/core/loader.rb:10:in <top (required)>' /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
/usr/lib/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:ineach'
from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:86:in block in require' from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:75:ineach'
from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:75:in require' from /usr/lib/ruby/vendor_ruby/bundler.rb:106:inrequire'
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:inrequire'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' from ./beef:25:in'

@ziflar
Copy link
Author

ziflar commented May 6, 2017

@Tikam02
my script from here

@ziflar
Copy link
Author

ziflar commented May 6, 2017

@Tikam02 i think you don't have nodejs installed on your system!!!!

@ziflar
Copy link
Author

ziflar commented May 6, 2017

@bcoles
@Tikam02
first i've deleted the therubyracer 0.12.3 folder from /var/lib/gems/2.3.0/gems
and i run
gem install therubyracer -v 0.12.2
bundle install
./beef
it's ok

@Tikam02
Copy link

Tikam02 commented May 6, 2017

Thank you so much man it Works . And your tutorials are awesome keep uploading for noobs like me. ✌️ 👍

@ziflar
Copy link
Author

ziflar commented May 6, 2017

@Tikam02 you are welcome
A great recognition to @bcoles for the trick downgrading therubyracer Gems to 0.12.2vesrion
thank you @bcoles

@bcoles
Copy link
Collaborator

bcoles commented May 7, 2017

This should now be fixed in master.

bundle install should install therubyracer 0.12.2 not 0.12.3.

@darroy1722
Copy link

I had the same problem running beef giving errors related to ruby. I tried the following things which seem to have fixed it.

  1. gem cleanup bundler
  2. gem install bundler
  3. gem update --system
  4. bundle install
  5. apt-get install build essential
  6. apt-get install beef-xss
  7. ./beef

Hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants
@bcoles @Tikam02 @ziflar @darroy1722 and others