beefproject / beef

The Browser Exploitation Framework Project
https://beefproject.com
9.62k stars 2.12k forks source link

could not find gem 'eventmachine' in locally installed gems. #2427

Closed Stablowss closed 2 years ago

Stablowss commented 2 years ago

when i run ./beef it says Could not find gem 'eventmachine' in locally installed gems. Run bundle install to install missing gems. and when i run bundle install it says An error occurred while installing msgpack (1.5.1), and Bundler cannot continue.

yalhanzd commented 2 years ago

I didn't find (eventmachine-1.2.7, thin-1.8.1, sinatra-2.2.0, rack-2.2.3, rack-protection-2.2.0, em-websocket-0.5.3, uglifier-4.2.0, mime-types-3.4.1, execjs-2.8.1, ansi-1.5.0, term-ansicolor-1.7.1, json-2.6.1, rubyzip-2.3.2, espeak-ruby-1.0.5, otr-activerecord-2.1.1, sqlite3-1.4.2, rubocop-1.26.0, maxmind-db-1.1.1, parseconfig-1.1.2, erubis-2.7.0, msfrpc-client-1.1.2, rushover-0.3.0, slack-notifier-2.4.0, twitter-7.0.0, async-dns-1.3.0, qr4r-0.6.1, daemons-1.4.1, mustermann-1.1.1, tilt-2.0.10, http_parser.rb-0.6.0, mime-types-data-3.2021.1115, tins-1.29.1, activerecord-7.0.2.2, hashie-forbidden_attributes-0.1.1, parallel-1.21.0, parser-3.1.1.0, rainbow-3.1.1, regexp_parser-2.2.1, rubocop-ast-1.16.0, ruby-progressbar-1.11.0, unicode-display_width-2.1.0, msgpack-1.4.2, webrick-1.7.0, rest-client-2.1.0, addressable-2.8.0, buftok-0.2.0, equalizer-0.0.11, http-4.4.1, http-form_data-2.3.0, memoizable-0.4.2, multipart-post-2.1.1, naught-1.1.0, simple_oauth-0.3.1, async-io-1.32.2, mojo_magick-0.6.6, rqrcode_core-0.2.0, ruby2_keywords-0.0.5, sync-0.5.0, activemodel-7.0.2.2, activesupport-7.0.2.2, hashie-5.0.0, ast-2.4.2, http-accept-1.7.0, http-cookie-1.0.4, netrc-0.11.0, public_suffix-4.0.6, http-parser-1.2.3, thread_safe-0.3.6, async-1.30.1, concurrent-ruby-1.1.9, i18n-1.10.0, minitest-5.15.0, tzinfo-2.0.4, domain_name-0.5.20190701, ffi-compiler-1.0.1, console-1.13.1, nio4r-2.5.8, timers-4.3.3, unf-0.1.4, ffi-1.15.4, fiber-local-1.0.0, unf_ext-0.0.7.7 in any of the sources) all of these gems. I mean for real @github ? one or two missing can be tolerated but these much? Come on fix please ASAP

yalhanzd commented 2 years ago

and also, for the record the bundle install command literally isn't working on my Kali Linux. I'm not sure if that's because of my pc or your Beef files

bcoles commented 2 years ago

BeEF has not yet been updated to support Ruby 3.

and also, for the record the bundle install command literally isn't working on my Kali Linux. I'm not sure if that's because of my pc or your Beef files

bundle install works on kali. "isn't working" means nothing.

bcoles commented 2 years ago

If you have multiple versions of Ruby installed you may need to use the correct version of ruby and bundle. ie:

gem3.0 install bundler
bundle3.0 install
ruby3.0 ./beef

Works for me on Kali:

[2022-05-21 10:30:01] root@kali:/tmp# uname -a
Linux kali 5.16.0-kali7-amd64 #1 SMP PREEMPT Debian 5.16.18-1kali1 (2022-04-01) x86_64 GNU/Linux
[2022-05-21 10:30:07] root@kali:/tmp# git clone https://github.com/beefproject/beef
Cloning into 'beef'...
remote: Enumerating objects: 49086, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 49086 (delta 6), reused 3 (delta 2), pack-reused 49072
Receiving objects: 100% (49086/49086), 21.17 MiB | 10.43 MiB/s, done.
Resolving deltas: 100% (30912/30912), done.
[2022-05-21 10:30:15] root@kali:/tmp# cd beef/
[2022-05-21 10:30:16] root@kali:/tmp/beef# 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 rake 13.0.6
Using concurrent-ruby 1.1.9
Using i18n 1.10.0
Using minitest 5.15.0
Using tzinfo 2.0.4
Using activesupport 7.0.2.2
Using activemodel 7.0.2.2
Using activerecord 7.0.2.2
Using public_suffix 4.0.6
Using addressable 2.8.0
Using ansi 1.5.0
Using ast 2.4.2
Using fiber-local 1.0.0
Using console 1.13.1
Using nio4r 2.5.8
Using timers 4.3.3
Using async 1.30.1
Using async-io 1.32.2
Using async-dns 1.3.0
Using buftok 0.2.0
Using bundler 2.1.4
Using daemons 1.4.1
Using unf_ext 0.0.7.7
Using unf 0.1.4
Using domain_name 0.5.20190701
Using eventmachine 1.2.7
Using http_parser.rb 0.6.0
Using em-websocket 0.5.3
Using equalizer 0.0.11
Using erubis 2.7.0
Using espeak-ruby 1.0.5
Using execjs 2.8.1
Using ffi 1.15.4
Using ffi-compiler 1.0.1
Using hashie 5.0.0
Using hashie-forbidden_attributes 0.1.1
Using http-cookie 1.0.4
Using http-form_data 2.3.0
Using http-parser 1.2.3
Using http 4.4.1
Using http-accept 1.7.0
Using json 2.6.1
Using maxmind-db 1.1.1
Using thread_safe 0.3.6
Using memoizable 0.4.2
Using mime-types-data 3.2021.1115
Using mime-types 3.4.1
Using mojo_magick 0.6.6
Using msgpack 1.4.2
Using msfrpc-client 1.1.2
Using multipart-post 2.1.1
Using ruby2_keywords 0.0.5
Using mustermann 1.1.1
Using naught 1.1.0
Using netrc 0.11.0
Using otr-activerecord 2.1.1
Using parallel 1.21.0
Using parseconfig 1.1.2
Using parser 3.1.1.0
Using rqrcode_core 0.2.0
Using qr4r 0.6.1
Using rack 2.2.3
Using rack-protection 2.2.0
Using rainbow 3.1.1
Using regexp_parser 2.2.1
Using rest-client 2.1.0
Using rexml 3.2.5
Using rubocop-ast 1.16.0
Using ruby-progressbar 1.11.0
Using unicode-display_width 2.1.0
Using rubocop 1.26.0
Using rubyzip 2.3.2
Using rushover 0.3.0
Using simple_oauth 0.3.1
Using tilt 2.0.10
Using sinatra 2.2.0
Using slack-notifier 2.4.0
Using sqlite3 1.4.2
Using sync 0.5.0
Using tins 1.29.1
Using term-ansicolor 1.7.1
Using thin 1.8.1
Using twitter 7.0.0
Using uglifier 4.2.0
Using webrick 1.7.0
Using xmlrpc 0.3.2
Bundle complete! 41 Gemfile dependencies, 86 gems now installed.
Gems in the groups development and test were not installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
[2022-05-21 10:30:20] root@kali:/tmp/beef# ./beef 
[10:30:24][!] ERROR: Default username and password in use!
[10:30:24]    |_  Change the beef.credentials.passwd in config.yaml
[2022-05-21 10:30:24] root@kali:/tmp/beef# vi config.yaml 
[2022-05-21 10:30:31] root@kali:/tmp/beef# ./beef 
[10:30:33][*] Browser Exploitation Framework (BeEF) 0.5.4.0
[10:30:33]    |   Twit: @beefproject
[10:30:33]    |   Site: https://beefproject.com
[10:30:33]    |   Blog: http://blog.beefproject.com
[10:30:33]    |_  Wiki: https://github.com/beefproject/beef/wiki
[10:30:33][*] Project Creator: Wade Alcorn (@WadeAlcorn)
-- migration_context()
   -> 0.0110s
== 1 CreateCommandModules: migrating ==========================================
-- create_table(:command_modules)
   -> 0.0009s
== 1 CreateCommandModules: migrated (0.0010s) =================================

== 2 CreateHookedBrowsers: migrating ==========================================
-- create_table(:hooked_browsers)
   -> 0.0008s
== 2 CreateHookedBrowsers: migrated (0.0009s) =================================

== 3 CreateLogs: migrating ====================================================
-- create_table(:logs)
   -> 0.0014s
== 3 CreateLogs: migrated (0.0017s) ===========================================

== 4 CreateCommands: migrating ================================================
-- create_table(:commands)
   -> 0.0013s
== 4 CreateCommands: migrated (0.0014s) =======================================

== 5 CreateResults: migrating =================================================
-- create_table(:results)
   -> 0.0011s
== 5 CreateResults: migrated (0.0013s) ========================================

== 6 CreateOptionCaches: migrating ============================================
-- create_table(:option_caches)
   -> 0.0008s
== 6 CreateOptionCaches: migrated (0.0009s) ===================================

== 7 CreateBrowserDetails: migrating ==========================================
-- create_table(:browser_details)
   -> 0.0008s
== 7 CreateBrowserDetails: migrated (0.0009s) =================================

== 8 CreateExecutions: migrating ==============================================
-- create_table(:executions)
   -> 0.0014s
== 8 CreateExecutions: migrated (0.0017s) =====================================

== 9 CreateRules: migrating ===================================================
-- create_table(:rules)
   -> 0.0024s
== 9 CreateRules: migrated (0.0029s) ==========================================

== 10 CreateInterceptor: migrating ============================================
-- create_table(:interceptors)
   -> 0.0007s
== 10 CreateInterceptor: migrated (0.0008s) ===================================

== 11 CreateWebCloner: migrating ==============================================
-- create_table(:web_cloners)
   -> 0.0007s
== 11 CreateWebCloner: migrated (0.0008s) =====================================

== 12 CreateMassMailer: migrating =============================================
-- create_table(:mass_mailers)
   -> 0.0007s
== 12 CreateMassMailer: migrated (0.0008s) ====================================

== 13 CreateNetworkHost: migrating ============================================
-- create_table(:network_hosts)
   -> 0.0016s
== 13 CreateNetworkHost: migrated (0.0020s) ===================================

== 14 CreateNetworkService: migrating =========================================
-- create_table(:network_services)
   -> 0.0018s
== 14 CreateNetworkService: migrated (0.0022s) ================================

== 15 CreateHttp: migrating ===================================================
-- create_table(:https)
   -> 0.0019s
== 15 CreateHttp: migrated (0.0022s) ==========================================

== 16 CreateRtcStatus: migrating ==============================================
-- create_table(:rtc_statuss)
   -> 0.0012s
== 16 CreateRtcStatus: migrated (0.0014s) =====================================

== 17 CreateRtcManage: migrating ==============================================
-- create_table(:rtc_manages)
   -> 0.0011s
== 17 CreateRtcManage: migrated (0.0012s) =====================================

== 18 CreateRtcSignal: migrating ==============================================
-- create_table(:rtc_signals)
   -> 0.0014s
== 18 CreateRtcSignal: migrated (0.0015s) =====================================

== 19 CreateRtcModuleStatus: migrating ========================================
-- create_table(:rtc_module_statuss)
   -> 0.0025s
== 19 CreateRtcModuleStatus: migrated (0.0028s) ===============================

== 20 CreateXssraysDetail: migrating ==========================================
-- create_table(:xssraysdetails)
   -> 0.0012s
== 20 CreateXssraysDetail: migrated (0.0014s) =================================

== 21 CreateDnsRule: migrating ================================================
-- create_table(:dns_rules)
   -> 0.0007s
== 21 CreateDnsRule: migrated (0.0009s) =======================================

== 22 CreateIpecExploit: migrating ============================================
-- create_table(:ipec_exploits)
   -> 0.0006s
== 22 CreateIpecExploit: migrated (0.0008s) ===================================

== 23 CreateIpecExploitRun: migrating =========================================
-- create_table(:ipec_exploit_runs)
   -> 0.0010s
== 23 CreateIpecExploitRun: migrated (0.0012s) ================================

== 24 CreateAutoloader: migrating =============================================
-- create_table(:autoloaders)
   -> 0.0013s
== 24 CreateAutoloader: migrated (0.0015s) ====================================

== 25 CreateXssraysScan: migrating ============================================
-- create_table(:xssraysscans)
   -> 0.0074s
== 25 CreateXssraysScan: migrated (0.0076s) ===================================

[10:30:34][*] BeEF is loading. Wait a few seconds...
[10:30:38][*] 8 extensions enabled:
[10:30:38]    |   XSSRays
[10:30:38]    |   Social Engineering
[10:30:38]    |   Requester
[10:30:38]    |   Proxy
[10:30:38]    |   Network
[10:30:38]    |   Events
[10:30:38]    |   Demos
[10:30:38]    |_  Admin UI
[10:30:38][*] 309 modules enabled.
[10:30:38][*] 2 network interfaces were detected.
[10:30:38][*] running on network interface: 127.0.0.1
[10:30:38]    |   Hook URL: http://127.0.0.1:3000/hook.js
[10:30:38]    |_  UI URL:   http://127.0.0.1:3000/ui/panel
[10:30:38][*] running on network interface: 192.168.200.130
[10:30:38]    |   Hook URL: http://192.168.200.130:3000/hook.js
[10:30:38]    |_  UI URL:   http://192.168.200.130:3000/ui/panel
[10:30:38][*] RESTful API key: 2b1bdfd91dd5337c1efecd47bca9640759aca4e4
[10:30:39][*] HTTP Proxy: http://127.0.0.1:6789
[10:30:39][*] BeEF server started (press control+c to stop)
^C[2022-05-21 10:30:41] root@kali:/tmp/beef# ruby --version
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-linux-gnu]
[2022-05-21 10:30:47] root@kali:/tmp/beef# bundle --version
Bundler version 2.1.4
[2022-05-21 10:30:50] root@kali:/tmp/beef# 
wheatley commented 2 years ago

Closing due to inactivity.