beefproject/beef

Failed when trying to run the project on MacOS

Closed this issue · 3 comments

First Steps

  1. Confirm that your issue has not been posted previously by searching here: https://github.com/beefproject/beef/issues
  2. Confirm that the wiki does not contain the answers you seek: https://github.com/beefproject/beef/wiki
  3. Check the FAQ: https://github.com/beefproject/beef/wiki/FAQ
  4. BeEF Version: 0.5.4.0
  5. Ruby Version: v16.20.2
  6. Browser Details (e.g. Chrome v81.0): Version 1.71.114 Chromium: 130.0.6723.58 (Official Build) (arm64)
  7. Operating System (e.g. OSX Catalina): OSX Sequoia

Configuration

  1. Have you made any changes to your BeEF configuration? No
  2. Have you enabled or disabled any BeEF extensions? No

Steps to Reproduce

  1. Cloning the repository
  2. Changed the default credentials in the config.yaml
  3. Changed the htpp host in the config.yaml
  4. Ran ./beef in my terminal and got some errors about the ruby version
  5. I am using, so I changed my version to the above mentioned and required by beef
  6. Ran bundle install and then ./beef
  7. Got the followin error:
./beef 
[14:45:05][!] Warning: System language $LANG '' does not appear to be UTF-8 compatible.
[14:45:05][*] Browser Exploitation Framework (BeEF) 0.5.4.0
[14:45:05]    |   Twit: @beefproject
[14:45:05]    |   Site: https://beefproject.com
[14:45:05]    |_  Wiki: https://github.com/beefproject/beef/wiki
[14:45:05][*] Project Creator: Wade Alcorn (@WadeAlcorn)
[14:45:05][*] BeEF is loading. Wait a few seconds...
[14:45:06][*] 7 extensions enabled:
[14:45:06]    |   XSSRays
[14:45:06]    |   Requester
[14:45:06]    |   Proxy
[14:45:06]    |   Network
[14:45:06]    |   Events
[14:45:06]    |   Demos
[14:45:06]    |_  Admin UI
[14:45:06][*] 303 modules enabled.
[14:45:06][*] 1 network interfaces were detected.
[14:45:06][*] running on network interface: https://famous-agency-rainbow-best.trycloudflare.com
[14:45:06]    |   Hook URL: http://https://famous-agency-rainbow-best.trycloudflare.com:3000/hook.js
[14:45:06]    |_  UI URL:   http://https://famous-agency-rainbow-best.trycloudflare.com:3000/ui/panel
[14:45:06][*] HTTP Proxy: http://127.0.0.1:6789
[14:45:06][*] RESTful API key: 1c8339d432da9d193296cf9d950640ddfbdf0168
[14:45:06][*] BeEF server started (press control+c to stop)
/Users/ftonato/learn/beef/gems/eventmachine-1.2.7/lib/eventmachine.rb:533:in `start_unix_server': no unix-domain acceptor (RuntimeError)
	from /Users/ftonato/learn/beef/gems/eventmachine-1.2.7/lib/eventmachine.rb:533:in `start_server'
	from /Users/ftonato/learn/beef/gems/eventmachine-1.2.7/lib/eventmachine.rb:562:in `start_unix_domain_server'
	from /Users/ftonato/learn/beef/gems/thin-1.8.2/lib/thin/backends/unix_server.rb:19:in `connect'
	from /Users/ftonato/learn/beef/gems/thin-1.8.2/lib/thin/backends/base.rb:65:in `block in start'
	from /Users/ftonato/learn/beef/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run_machine'
	from /Users/ftonato/learn/beef/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run'
	from /Users/ftonato/learn/beef/gems/thin-1.8.2/lib/thin/backends/base.rb:75:in `start'
	from /Users/ftonato/learn/beef/gems/thin-1.8.2/lib/thin/server.rb:162:in `start'
	from /Users/ftonato/learn/beef/core/main/server.rb:156:in `start'
	from ./beef:281:in `<main>'

Logs from ~/.beef/beef.log

# Logfile created on 2024-10-25 14:28:34 +0200 by logger.rb/v1.6.1
W, [2024-10-25T14:28:34.534710 #57457]  WARN -- BeEF: Warning: System language $LANG '' does not appear to be UTF-8 compatible.
E, [2024-10-25T14:28:34.534762 #57457] ERROR -- BeEF: ERROR: Default username and password in use!
W, [2024-10-25T14:29:05.410093 #57722]  WARN -- BeEF: Warning: System language $LANG '' does not appear to be UTF-8 compatible.
W, [2024-10-25T14:41:53.209667 #90769]  WARN -- BeEF: Warning: System language $LANG '' does not appear to be UTF-8 compatible.
W, [2024-10-25T14:45:05.478978 #94229]  WARN -- BeEF: Warning: System language $LANG '' does not appear to be UTF-8 compatible.
W, [2024-10-25T14:48:03.124476 #94476]  WARN -- BeEF: Warning: System language $LANG '' does not appear to be UTF-8 compatible.

I also tried this approach (https://github.com/beefproject/beef/wiki/MAC-OSX-installation-using-RVM) but didn't work...

@ftonato can you test again with the latest code base?

Hello @stephenakq,

I just tried and had the same problem; I even tried to clone the project again (with the latest version) but it didn't work...

Please join the BeEF discord to discuss this issue. Someone there might be able to help https://discord.gg/ugmKmHarKc