debian-kali 安装beef-xss (启动状态为failed)
文档来自 大佬https://www.cnblogs.com/xiatian09/p/9791040.html
本人仅是自己做个记录给自己看,不喜欢的看的×这个界面就可以了,勿喷
废话少说先看图问题和图
└─# beef-xss
[-] You are using the Default credentials
[-] (Password must be different from "beef")
[-] Please type a new password for the beef user:
[i] GeoIP database is missing
[i] Run geoipupdate to download / update Maxmind GeoIP database
[*] 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://<IP>: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 Tue 2023-04-11 08:49:40 CST; 4s ago
Process: 6175 ExecStart=/usr/share/beef-xss/beef (code=exited, status=1/FAILURE)
Main PID: 6175 (code=exited, status=1/FAILURE)
CPU: 64ms
4月 11 08:49:40 ltz systemd[1]: Started beef-xss.
4月 11 08:49:40 ltz beef[6175]: /usr/lib/ruby/vendor_ruby/rubygems/core_e…rror)
4月 11 08:49:40 ltz beef[6175]: from /usr/lib/ruby/vendor_ruby/ru…uire'
4月 11 08:49:40 ltz beef[6175]: from /usr/share/beef-xss/core/loa…ed)>'
4月 11 08:49:40 ltz beef[6175]: from /usr/lib/ruby/vendor_ruby/ru…uire'
4月 11 08:49:40 ltz beef[6175]: from /usr/lib/ruby/vendor_ruby/ru…uire'
4月 11 08:49:40 ltz beef[6175]: from /usr/share/beef-xss/beef:45:…ain>'
4月 11 08:49:40 ltz systemd[1]: beef-xss.service: Main process exited, co…ILURE
4月 11 08:49:40 ltz 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...
可以看到服务未启动,同时浏览器的跳转也失败
停止服务 beef-xss-stop
再次重启 beef-xss 好吧,还是失败
园子某大神表示可能是beef-xss与系统上的某些服务新老版本不兼容导致,所以卸载重装
apt remove ruby # 清除ruby beef-xss 并清除beef-xss配置文件
apt remove beef-xss
apt-get install ruby
apt autoremove beef-xss
apt-get install ruby # 再安装 ruby ......
apt-get install ruby-dev libpcap-dev
gem install eventmachine
apt-get install beef-xss
反正我是这样操作之后就好了