beefproject / beef

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

beef unable to connect issue #1883

Closed adrianalvird closed 4 years ago

adrianalvird commented 4 years ago

root@adrian:~# service beef-xss start root@adrian:~# beef-xss Traceback (most recent call last): 3: from -e:1:in <main>' 2: from /usr/lib/ruby/2.5.0/psych.rb:497:inload_file' 1: from /usr/lib/ruby/2.5.0/psych.rb:497:in open' /usr/lib/ruby/2.5.0/psych.rb:497:ininitialize': No such file or directory @ rb_sysopen - /etc/beef-xss/config.yaml (Errno::ENOENT) Traceback (most recent call last): 3: from -e:1:in <main>' 2: from /usr/lib/ruby/2.5.0/psych.rb:497:inload_file' 1: from /usr/lib/ruby/2.5.0/psych.rb:497:in open' /usr/lib/ruby/2.5.0/psych.rb:497:ininitialize': No such file or directory @ rb_sysopen - /etc/beef-xss/config.yaml (Errno::ENOENT) Traceback (most recent call last): 3: from -e:1:in <main>' 2: from /usr/lib/ruby/2.5.0/psych.rb:497:inload_file' 1: from /usr/lib/ruby/2.5.0/psych.rb:497:in open' /usr/lib/ruby/2.5.0/psych.rb:497:ininitialize': No such file or directory @ rb_sysopen - /etc/beef-xss/config.yaml (Errno::ENOENT) lsof: unacceptable port specification in: -i : lsof 4.93.2 latest revision: https://github.com/lsof-org/lsof latest FAQ: https://github.com/lsof-org/lsof/blob/master/00FAQ latest (non-formatted) man page: https://github.com/lsof-org/lsof/blob/master/Lsof.8 usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]] [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s] [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names] Use the `-h'' option to get more help information. Traceback (most recent call last): 3: from -e:1:in

' 2: from /usr/lib/ruby/2.5.0/psych.rb:497:in load_file' 1: from /usr/lib/ruby/2.5.0/psych.rb:497:inopen' /usr/lib/ruby/2.5.0/psych.rb:497:in initialize': No such file or directory @ rb_sysopen - /etc/beef-xss/config.yaml (Errno::ENOENT) Traceback (most recent call last): 3: from -e:1:in
' 2: from /usr/lib/ruby/2.5.0/psych.rb:497:in load_file' 1: from /usr/lib/ruby/2.5.0/psych.rb:497:inopen' /usr/lib/ruby/2.5.0/psych.rb:497:in `initialize': No such file or directory @ rb_sysopen - /etc/beef-xss/config.yaml (Errno::ENOENT) [] 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:/ui/panel [] Hook: [*] Example:

● beef-xss.service - beef-xss Loaded: loaded (/lib/systemd/system/beef-xss.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2020-03-26 06:34:50 IST; 5s ago Process: 222343 ExecStart=/usr/share/beef-xss/beef (code=exited, status=200/CHDIR) Main PID: 222343 (code=exited, status=200/CHDIR)

Mar 26 06:34:50 adrian systemd[1]: Started beef-xss. Mar 26 06:34:50 adrian systemd[222343]: beef-xss.service: Changing to the …tory Mar 26 06:34:50 adrian systemd[222343]: beef-xss.service: Failed at step C…tory Mar 26 06:34:50 adrian systemd[1]: beef-xss.service: Main process exited, …HDIR Mar 26 06:34:50 adrian systemd[1]: beef-xss.service: Failed with result 'e…de'. Hint: Some lines were ellipsized, use -l to show in full.

[*] Opening Web UI (http://127.0.0.1:/ui/panel) in: 5... 4... 3... 2... 1... root@adrian:~#

jcrew99 commented 4 years ago

Hi @adrianalvird , can you please provide more information? What is the beef version, what Distro and version? what directory are you in?

adrianalvird commented 4 years ago

version: '0.5.0.0-alpha-pre' it's kali linux latest update gnome ... and directory is usr/share/

jcrew99 commented 4 years ago

Hi @adrianalvird, I havent been able to replicate this. Are you able to complete a full steps to replicate so i can find out what the issue is? It seems beef isn't completely installed. Which of the kali versions was it that you installed?

DeezyE commented 4 years ago

Closing due to inactivity, reopen as needed

The-Jester12 commented 3 years ago

I don't know where i am going wrong here, i have installed beef (as far as I know)

System: Kernel: 5.0.0-32-generic x86_64 bits: 64 compiler: gcc v: 7.4.0 Desktop: MATE 1.22.2 wm: marco dm: LightDM Distro: Linux Mint 19.3 Tricia base: Ubuntu 18.04 bionic CPU: Topology: Dual Core model: Intel Core2 Duo P8700 bits: 64 Graphics: Device-1: Intel Mobile 4 Series Integrated Graphics vendor: Dell driver: i915 I doubt you need all that info, but the more I give, hopefully, the more you'll be able to help

~$ sudo git clone git://github.com/beefproject/beef.gitCloning into 'beef'... remote: Enumerating objects: 46649, done. remote: Counting objects: 100% (1823/1823), done. remote: Compressing objects: 100% (1465/1465), done. remote: Total 46649 (delta 504), reused 1170 (delta 326), pack-reused 44826 Receiving objects: 100% (46649/46649), 21.47 MiB | 141.00 KiB/s, done. Resolving deltas: 100% (28536/28536), done.

Yet my program states that I don't have it: sudo apt-get install beef-project [sudo] password for :
Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package beef-project

beef .... Error (Possible package name : beef-xss / beef-project) the same goes for bully and a few others and I find it odd: ls: bully bully-master I have tried git clone, wget, and apt-get install. What am I missing? I even tried installing using Synaptic Package Manager. It is saying in the package manager the beef i have is for the flexible brainfuck interpreter and I need The Browser Exploitation Framework, right?

bcoles commented 3 years ago

I don't know where i am going wrong here, i have installed beef (as far as I know)

System: Kernel: 5.0.0-32-generic x86_64 bits: 64 compiler: gcc v: 7.4.0 Desktop: MATE 1.22.2 wm: marco dm: LightDM Distro: Linux Mint 19.3 Tricia base: Ubuntu 18.04 bionic CPU: Topology: Dual Core model: Intel Core2 Duo P8700 bits: 64 Graphics: Device-1: Intel Mobile 4 Series Integrated Graphics vendor: Dell driver: i915 I doubt you need all that info, but the more I give, hopefully, the more you'll be able to help

~$ sudo git clone git://github.com/beefproject/beef.gitCloning into 'beef'... remote: Enumerating objects: 46649, done. remote: Counting objects: 100% (1823/1823), done. remote: Compressing objects: 100% (1465/1465), done. remote: Total 46649 (delta 504), reused 1170 (delta 326), pack-reused 44826 Receiving objects: 100% (46649/46649), 21.47 MiB | 141.00 KiB/s, done. Resolving deltas: 100% (28536/28536), done.

Yet my program states that I don't have it: sudo apt-get install beef-project [sudo] password for : Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package beef-project

beef .... Error (Possible package name : beef-xss / beef-project) the same goes for bully and a few others and I find it odd: ls: bully bully-master I have tried git clone, wget, and apt-get install. What am I missing? I even tried installing using Synaptic Package Manager. It is saying in the package manager the beef i have is for the flexible brainfuck interpreter and I need The Browser Exploitation Framework, right?

There's several different things going on here.

If you want to install the beef-xss package maintained by the package maintainer for your operating system the you will need to use your operating system package manager. ie, sudo apt-get install beef-xss. You can then run BeEF with service beef-xss start.

If you want to use the latest version of BeEF from the GitHub repository then you will need to clone the repository from GitHub. ie, git clone https://github.com/beefproject/beef && cd beef && bundle install