-
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
Beef doesn't run in Kali Rolling [18-03-2016] #1249
Comments
Hi @decode-dev Thanks for the report. Seems a few people are having issues with BeEF on Kali. Can you try disabling the DNS extension in If that doesn't work, in the short term you can try using BeEF from the git repo: git clone https://github.com/beefproject/beef.git
cd beef
gem install bundler
bundle install
./beef |
Hi @bcoles |
Yes the problem appears when ruby is updated to the 2.3.0 version
I just block the ruby updating and it works fine |
Thanks @decode-dev and @ziflar This is a dependency issue as the DNS extension requires an old version of the rubydns gem (version 0.7.0). The DNS extension needs to be updated to work with the latest version of the rubydns gem to prevent issues like this in the future. The DNS extension is now disabled by default. Closing this issue. |
solution : there is 2 way to do it after upgrading kali rolling solution 1: solve the authentification problemleafpad /etc/beef-xss/config.yaml and change console: dns: save the file and open a terminal solution 2: solve the hockeed browser's problemfirst we do all steep's at the solution 1 and also we do as below cd /usr/share/ Now you can run beef from the favorite menu |
@ziflar that makes sense. This is a gem dependency issue in the Kali environment. Installing from git will fix the issue. However, your first patch won't work as you've enabled the |
@bcoles 👍 thx for your help |
Disabling dns worked.!! |
RubyDNS 2.0.0-rc1 is available and it should be suitable for your update as it no longer depends on celluloid. Let me know if I can provide any other help. |
After installing and updating everything why isn't beef is running: root@kali:/usr/share/beef-xss# gem install bundler root@kali:/usr/share/beef-xss# bundle install root@kali:/usr/share/beef-xss# ./beef 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# ./beef 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# |
The latest bundler is 1.16.1, but you are currently running 1.15.1.
/usr/bin/ruby2.3 -r ./siteconf20180203-2632-gobo68.rb extconf.rb Provided configuration options: To see why this extension failed to compile, please check the mkmf.log which can be found here: /var/lib/gems/2.3.0/extensions/x86-linux/2.3.0/do_sqlite3-0.10.17/mkmf.log extconf failed, exit code 1 Gem files will remain installed in /var/lib/gems/2.3.0/gems/do_sqlite3-0.10.17 for inspection. An error occurred while installing do_sqlite3 (0.10.17), and Bundler cannot continue. In Gemfile: |
You need to install several dependencies, including sqlite. sudo apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libncurses5-dev automake libtool bison subversion nodejs |
The beef shows the Following Error when started from the command line.
Error :
/usr/lib/ruby/vendor_ruby/rubydns/server.rb:141:in
'run': wrong number of arguments (given 1, expected 0) (ArgumentError) from /usr/share/beef-xss/extensions/dns/dns.rb:128:in
block (3 levels) in run'from /usr/lib/ruby/vendor_ruby/eventmachine.rb:968:in
block in run_deferred_callbacks' from /usr/lib/ruby/vendor_ruby/eventmachine.rb:965:in
times'from /usr/lib/ruby/vendor_ruby/eventmachine.rb:965:in
run_deferred_callbacks' from /usr/lib/ruby/vendor_ruby/eventmachine.rb:187:in
run_machine'from /usr/lib/ruby/vendor_ruby/eventmachine.rb:187:in
run' from /usr/lib/ruby/vendor_ruby/thin/backends/base.rb:73:in
start'from /usr/lib/ruby/vendor_ruby/thin/server.rb:162:in
start' from /usr/share/beef-xss/core/main/server.rb:127:in
start'from ./beef:154:in `
Environment
Beef Version : 0.4.6.1-alpha
Ruby Version : 2.3.0p0
Browser : Mozilla ESR 45.0.1
OS : Kali Debian x64
Summary :
Beef is executed with root privileges.
Steps to Reproduce :
Start the Beef from the Command line
The text was updated successfully, but these errors were encountered: