View Issue Details

IDProjectCategoryView StatusLast Update
0003229Kali LinuxGeneral Bugpublic2016-06-09 09:20
Reporter3n1gma Assigned Tosbrun  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2016.1 
Fixed in Version2016.2 
Summary0003229: Beef-Xss
Description

Beef-Xss will not start. I keep getting the following error:

./beef
[17:58:32][] Bind socket [imapeudora1] listening on [0.0.0.0:2000].
[17:58:32][
] Browser Exploitation Framework (BeEF) 0.4.6.1-alpha
[17:58:32] | Twit: @beefproject
[17:58:32] | Site: http://beefproject.com
[17:58:32] | Blog: http://blog.beefproject.com
[17:58:32] |_ Wiki: https://github.com/beefproject/beef/wiki
[17:58:32][] Project Creator: Wade Alcorn (@WadeAlcorn)
[17:58:32][
] Successful connection with Metasploit.
[17:58:33][] Loaded 291 Metasploit exploits.
[17:58:33][
] BeEF is loading. Wait a few seconds...
[17:58:36][!] API Fire Error: Permission denied @ rb_sysopen - /usr/share/beef-xss/extensions/admin_ui/api/../media/javascript-min/web_ui_all.js in {:owner=>BeEF::Extension::AdminUI::API::Handler, :id=>10}.mounthandler()
[17:58:36][] 13 extensions enabled.
[17:58:36][
] 532 modules enabled.
[17:58:36][*] 2 network interfaces were detected.
[17:58:36][+] running on network interface: 127.0.0.1
[17:58:36] | Hook URL: http://127.0.0.1:3000/hook.js
[17:58:36] |
UI URL: http://127.0.0.1:3000/ui/panel
[17:58:36][+] running on network interface: 10.0.0.13
[17:58:36] | Hook URL: http://10.0.0.13:3000/hook.js
[17:58:36] | UI URL: http://10.0.0.13:3000/ui/panel
[17:58:36][] RESTful API key: c09d10e109de8f7955d21e9c9c4782f491713df5
[17:58:36][
] HTTP Proxy: http://127.0.0.1:6789
[17:58:36][*] DNS Server: 127.0.0.1:5300 (udp)
[17:58:36] | Upstream Server: 8.8.8.8:53 (udp)
[17:58:36] |
Upstream Server: 8.8.8.8:53 (tcp)
[17:58:36][] BeEF server started (press control+c to stop)
/usr/lib/ruby/vendor_ruby/eventmachine.rb:859:in open_udp_socket': no datagram socket (RuntimeError) from /usr/lib/ruby/vendor_ruby/eventmachine.rb:859:inopen_datagram_socket'
from /usr/lib/ruby/vendor_ruby/rubydns/server.rb:122:in block in run' from /usr/lib/ruby/vendor_ruby/rubydns/server.rb:119:ineach'
from /usr/lib/ruby/vendor_ruby/rubydns/server.rb:119:in run' from /usr/share/beef-xss/extensions/dns/dns.rb:127:inblock (3 levels) in run'
from /usr/lib/ruby/vendor_ruby/eventmachine.rb:959:in call' from /usr/lib/ruby/vendor_ruby/eventmachine.rb:959:inblock in run_deferred_callbacks'
from /usr/lib/ruby/vendor_ruby/eventmachine.rb:956:in times' from /usr/lib/ruby/vendor_ruby/eventmachine.rb:956:inrun_deferred_callbacks'
from /usr/lib/ruby/vendor_ruby/eventmachine.rb:187:in run_machine' from /usr/lib/ruby/vendor_ruby/eventmachine.rb:187:inrun'
from /usr/lib/ruby/vendor_ruby/thin/backends/base.rb:61:in start' from /usr/lib/ruby/vendor_ruby/thin/server.rb:159:instart'
from /usr/share/beef-xss/core/main/server.rb:127:in start' from ./beef:145:in<main>'
enigma@Arkam:/usr/share/beef-xss$ clear

enigma@Arkam:/usr/share/beef-xss$ sudo ./beef
[sudo] password for enigma:
[17:59:23][
] Bind socket [imapeudora1] listening on [0.0.0.0:2000].
[17:59:23][] Browser Exploitation Framework (BeEF) 0.4.6.1-alpha
[17:59:23] | Twit: @beefproject
[17:59:23] | Site: http://beefproject.com
[17:59:23] | Blog: http://blog.beefproject.com
[17:59:23] |_ Wiki: https://github.com/beefproject/beef/wiki
[17:59:23][
] Project Creator: Wade Alcorn (@WadeAlcorn)
[17:59:23][] Successful connection with Metasploit.
[17:59:24][
] Loaded 291 Metasploit exploits.
[17:59:24][] BeEF is loading. Wait a few seconds...
[17:59:27][
] 13 extensions enabled.
[17:59:27][] 532 modules enabled.
[17:59:27][
] 2 network interfaces were detected.
[17:59:27][+] running on network interface: 127.0.0.1
[17:59:27] | Hook URL: http://127.0.0.1:3000/hook.js
[17:59:27] | UI URL: http://127.0.0.1:3000/ui/panel
[17:59:27][+] running on network interface: 10.0.0.13
[17:59:27] | Hook URL: http://10.0.0.13:3000/hook.js
[17:59:27] |
UI URL: http://10.0.0.13:3000/ui/panel
[17:59:27][] RESTful API key: 8cce7bd944370c3775f43b3a2d825c38562317e6
[17:59:27][
] HTTP Proxy: http://127.0.0.1:6789
[17:59:27][] DNS Server: 127.0.0.1:5300 (udp)
[17:59:27] | Upstream Server: 8.8.8.8:53 (udp)
[17:59:27] |_ Upstream Server: 8.8.8.8:53 (tcp)
[17:59:27][
] BeEF server started (press control+c to stop)
/usr/lib/ruby/vendor_ruby/eventmachine.rb:859:in open_udp_socket': no datagram socket (RuntimeError) from /usr/lib/ruby/vendor_ruby/eventmachine.rb:859:inopen_datagram_socket'
from /usr/lib/ruby/vendor_ruby/rubydns/server.rb:122:in block in run' from /usr/lib/ruby/vendor_ruby/rubydns/server.rb:119:ineach'
from /usr/lib/ruby/vendor_ruby/rubydns/server.rb:119:in run' from /usr/share/beef-xss/extensions/dns/dns.rb:127:inblock (3 levels) in run'
from /usr/lib/ruby/vendor_ruby/eventmachine.rb:959:in call' from /usr/lib/ruby/vendor_ruby/eventmachine.rb:959:inblock in run_deferred_callbacks'
from /usr/lib/ruby/vendor_ruby/eventmachine.rb:956:in times' from /usr/lib/ruby/vendor_ruby/eventmachine.rb:956:inrun_deferred_callbacks'
from /usr/lib/ruby/vendor_ruby/eventmachine.rb:187:in run_machine' from /usr/lib/ruby/vendor_ruby/eventmachine.rb:187:inrun'
from /usr/lib/ruby/vendor_ruby/thin/backends/base.rb:61:in start' from /usr/lib/ruby/vendor_ruby/thin/server.rb:159:instart'
from /usr/share/beef-xss/core/main/server.rb:127:in start' from ./beef:145:in<main>'

Steps To Reproduce

Enable the metasploit extension and then run ./beef or sudo ./beef

Activities

sbrun

sbrun

2016-06-09 09:20

manager   ~0005360

we have to disable the dns extension in kali.
(see https://github.com/beefproject/beef/issues/1253)
The new version 0.4.7.0-0kali3 of beef-xss disable it by default (it will be available in few hours on the mirrors).

Issue History

Date Modified Username Field Change
2016-04-10 22:07 3n1gma New Issue
2016-06-09 09:20 sbrun Note Added: 0005360
2016-06-09 09:20 sbrun Assigned To => sbrun
2016-06-09 09:20 sbrun Status new => resolved
2016-06-09 09:20 sbrun Resolution open => fixed
2016-06-09 09:20 sbrun Fixed in Version => 2016.2