-
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 on kali - Unable to connect when starting beef #1718
Comments
Hey Felipe!
How are you launching beef? (dock, launcher, application's menu, cli) |
application's menu. |
Hi @FelipeBelchior4646 , has this been resolved for you? I will be closing this ticket in 1 week if there is no reply. Thank you! |
So I'm having the same issue. Unable to connect Firefox can’t establish a connection to the server at 127.0.0.1:3000.
beef-xss.service - beef-xss Nov 09 11:13:36 ry beef[4161]: from /usr/lib/ruby/vendor_ruby/exec…cJS>' [*] Opening Web UI (http://127.0.0.1:3000/ui/panel) in: 5... 4... 3... 2... 1... Nov 09 11:09:17 ry systemd[1]: beef-xss.service: Main process exited, code=exited, status=1/FAILURE Nov 09 11:09:17 ry systemd[1]: beef-xss.service: Failed with result 'exit-code'. Nov 09 11:13:35 ry systemd[1]: Started beef-xss. Nov 09 11:13:36 ry beef[4161]: /var/lib/gems/2.5.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:23:in include': wrong argument type Class (expected Module) (TypeError) Nov 09 11:13:36 ry beef[4161]: from /var/lib/gems/2.5.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:23:in block (2 levels) in <top (required)>'Nov 09 11:13:36 ry beef[4161]: from /var/lib/gems/2.5.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:22:in class_eval' Nov 09 11:13:36 ry beef[4161]: from /var/lib/gems/2.5.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:22:in block in <top (required)>'Nov 09 11:13:36 ry beef[4161]: from /var/lib/gems/2.5.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:21:in each' Nov 09 11:13:36 ry beef[4161]: from /var/lib/gems/2.5.0/gems/therubyracer-0.12.2/lib/v8/conversion.rb:21:in <top (required)>'Nov 09 11:13:36 ry beef[4161]: from /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in require' Nov 09 11:13:36 ry beef[4161]: from /var/lib/gems/2.5.0/gems/therubyracer-0.12.2/lib/v8.rb:22:in <top (required)>'Nov 09 11:13:36 ry beef[4161]: from /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:130:in require' Nov 09 11:13:36 ry beef[4161]: from /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:130:in rescue in require'Nov 09 11:13:36 ry beef[4161]: from /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:34:in require' Nov 09 11:13:36 ry beef[4161]: from /usr/lib/ruby/vendor_ruby/execjs/ruby_racer_runtime.rb:108:in available?'Nov 09 11:13:36 ry beef[4161]: from /usr/lib/ruby/vendor_ruby/execjs/runtimes.rb:53:in each' Nov 09 11:13:36 ry beef[4161]: from /usr/lib/ruby/vendor_ruby/execjs/runtimes.rb:53:in find'Nov 09 11:13:36 ry beef[4161]: from /usr/lib/ruby/vendor_ruby/execjs/runtimes.rb:53:in best_available' Nov 09 11:13:36 ry beef[4161]: from /usr/lib/ruby/vendor_ruby/execjs/runtimes.rb:47:in autodetect'Nov 09 11:13:36 ry beef[4161]: from /usr/lib/ruby/vendor_ruby/execjs.rb:5:in <module:ExecJS>' Nov 09 11:13:36 ry beef[4161]: from /usr/lib/ruby/vendor_ruby/execjs.rb:4:in <top (required)>'Nov 09 11:13:36 ry beef[4161]: from /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in require' Nov 09 11:13:36 ry beef[4161]: from /usr/lib/ruby/vendor_ruby/uglifier.rb:3:in <top (required)>'Nov 09 11:13:36 ry beef[4161]: from /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in require' Nov 09 11:13:36 ry beef[4161]: from /usr/share/beef-xss/core/loader.rb:29:in <top (required)>'Nov 09 11:13:36 ry beef[4161]: from /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in require' Nov 09 11:13:36 ry beef[4161]: from /usr/share/beef-xss/beef:44:in 'Nov 09 11:13:36 ry systemd[1]: beef-xss.service: Main process exited, code=exited, status=1/FAILURE Nov 09 11:13:36 ry systemd[1]: beef-xss.service: Failed with result 'exit-code'. Nov 09 11:15:18 ry systemd[1]: Started beef-xss. root@ry:/Desktop/BeeF-Over-Wan# Please someone help me. It really would mean a lot. |
@rykainrs I am having a little bit of trouble re-creating this but it seems like it might be a couple of things. |
I am closing this due to inactivity, let me know if this happens again. |
beef-xss.service - beef-xss |
Please help |
I'm having the same issue. "beef-xss.service - beef-xss It was active and running with no access to the site. Now it's failed as well. I've tried everything described in earlier answers to the issue. |
For an interim solution if you have docker: Browse to the UI URL : http://127.0.0.1:3000/ui/panel |
@Bharat109, @krag18 I had a lot of trouble re-creating this error so i can try and debug it. |
I resolved the issue. The package beef-xss was the issue for me. Like you said, probably some dependency issue. I purged everything and git cloned beef and installed from there. Kali 2020.2 Ruby version: |
@jcrew99 :- I a new with linux ,so please tell me what information you want and which command should i provide.. |
@Bharat109 Otherwise if i remember correctly off the top of my head it should be
or to get rid of everything(non-recoverable)
then
and go into the repo,
for dependency's and then
to start beef. Feel free to keep going with the wiki for more information. |
@jcrew99 |
@jcrew99 Just for your information , I have used the same beef installation command and it is working fine on the 2019 Kali ... but same is having issue on 2020 Kali. I hope this will be helpful to you in resolving issue . |
has anyone figured this out im getting failed to execute default web browser with beef-xss |
|
@ammo-cloud @Bharat109 @krag18 - please let us know if you're still having issues and we can continue to look into it, otherwise we're going to close this off. If you do have issues, please let us know your environment information, steps to reproduce your issue, and any logs you can provide us. |
@jackdwalker beef working fine for me 2019 Linux. Linux 2020 still an issue. |
Hi everybody. I got an error. The beef-xss service cannot be started. I tried all of them if there were any articles on google, but none of them worked. Service improved when I switched on and off kali linux but i got the error when starting beef-xss again. I am using kali linux 2020.2 beef i was installed but I was getting the verification error, so the username and password I wrote was not correct. I could not enter the panel. I applied some code to solve this. as a result a service error occurred. welp |
|
I did what your friend said and as a result beef-xss was deleted from kali and i cannot install beef-xss with say bundle install |
Please don't post on closed issues. If you have an issue, create an issue. Your issue is unrelated to the original issue. I don't know what "say bundle install" means. Some form of logs or output would be useful. Another option is to clone BeEF from the GitHub repository:
Then, to run BeEF: Note that you will not be able to use the |
I solved my problem. by typing them: then:
thats solved the beef-xss package problem. |
I guess you wont want to remove and install it back. I had a similar issue and How did i fix this
Check service configuration file and you can see that User=beef-xss which wont be existing in you machine some time. change to
and then service beef-xss restart That it Issue wont be fixed, I hope this will be Working and hope issue gets fixed |
I changed my username and password in the config.yaml file. But after executing the command "./beef" I am getting error
8: from /var/lib/gems/2.7.0/gems/activerecord-6.1.3.2/lib/active_record/migration.rb:918:in method_missing' 7: from /var/lib/gems/2.7.0/gems/activerecord-6.1.3.2/lib/active_record/migration.rb:897:in say_with_time'6: from /usr/lib/ruby/2.7.0/benchmark.rb:293:in measure' 5: from /var/lib/gems/2.7.0/gems/activerecord-6.1.3.2/lib/active_record/migration.rb:897:in block in say_with_time'4: from /var/lib/gems/2.7.0/gems/activerecord-6.1.3.2/lib/active_record/migration.rb:919:in block in method_missing' 3: from /var/lib/gems/2.7.0/gems/activerecord-6.1.3.2/lib/active_record/migration.rb:912:in connection'2: from /var/lib/gems/2.7.0/gems/activerecord-6.1.3.2/lib/active_record/connection_handling.rb:283:in connection' 1: from /var/lib/gems/2.7.0/gems/activerecord-6.1.3.2/lib/active_record/connection_handling.rb:327:in retrieve_connection'/var/lib/gems/2.7.0/gems/activerecord-6.1.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:1125:in retrieve_connection': No connection pool for 'ActiveRecord::Base' found. (ActiveRecord::ConnectionNotEstablished)
|
Please help me out how to tackle this issue. Thanks in advance. |
@hayansaha85 This is an unrelated issue. #2093 |
Hey it looks like i have the same error i guess because this comes every time i try to open [i] GeoIP database is missing ● beef-xss.service - beef-xss Sep 30 14:13:35 kali beef[4369]: [14:13:34][] Browser Exploitation Framework (BeEF) 0.5.0.0 [*] Opening Web UI (http://127.0.0.1:3000/ui/panel) in: 5... 4... 3... 2... 1... |
Seems like the server is starting normally when I do |
What does "unreachable" mean? You can view what process is listening on a port with
You can check if a port is open with nmap or netcat:
|
@bcoles Thanks for the quick response! |
That is an unusual issue. Is it accessible from local host?
Is there any output in terminal? |
Nope. No output with curl call either. |
That is exceptionally unusual. Please create a new issue and complete the issue template. |
Will do! Thanks @bcoles |
Hey @blairjames I am having the same problem, when I start beef, my browser is unable to conect. This happens after I change the password on config.yaml |
have you been able to fix it??? |
┌──(root㉿DESKTOP-V2GM15G)-[~] Failed to connect to bus: Connection refused [*] Opening Web UI (http://127.0.0.1:3000/ui/panel) in: 5... 4... 3... 2... 1... |
On terminal:
[] Please wait for the BeEF service to start.
[]
[] You might need to refresh your browser once it opens.
[]
[] Web UI: http://127.0.0.1:3000/ui/panel
[] Hook: <script src="http://:3000/hook.js"></script>
[*] Example: <script src="http://127.0.0.1:3000/hook.js"></script>
● beef-xss.service - beef-xss
Loaded: loaded (/lib/systemd/system/beef-xss.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2019-04-24 20:18:54 -03; 4s ago
Process: 11367 ExecStart=/usr/share/beef-xss/beef (code=exited, status=1/FAILURE)
Main PID: 11367 (code=exited, status=1/FAILURE)
abr 24 20:18:54 behl beef[11367]: from /usr/lib/ruby/vendor_ruby/ex…d)>'
abr 24 20:18:54 behl beef[11367]: from /usr/local/lib/site_ruby/2.5…ire'
abr 24 20:18:54 behl beef[11367]: from /usr/lib/ruby/vendor_ruby/ug…d)>'
abr 24 20:18:54 behl beef[11367]: from /usr/local/lib/site_ruby/2.5…ire'
abr 24 20:18:54 behl beef[11367]: from /usr/local/lib/site_ruby/2.5…ire'
abr 24 20:18:54 behl beef[11367]: from /usr/share/beef-xss/core/loa…d)>'
abr 24 20:18:54 behl beef[11367]: from /usr/local/lib/site_ruby/2.5…ire'
abr 24 20:18:54 behl beef[11367]: from /usr/share/beef-xss/beef:44:…in>'
abr 24 20:18:54 behl systemd[1]: beef-xss.service: Main process exited, co…ILURE
abr 24 20:18:54 behl systemd[1]: beef-xss.service: Failed with result 'exi…ode'.
Hint: Some lines were ellipsized, use -l to show in full.
[*] Opening Web UI (http://127.0.0.1:3000/ui/panel) in: 5... 4... 3... 2... 1...
On Web UI:
Unable to connect
Firefox can’t establish a connection to the server at 127.0.0.1:3000.
I can't start beef, could anyone help me to solve this problem?
The text was updated successfully, but these errors were encountered: