beefproject / beef

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

Beef Launch Error IP Configuration | Permission Denied | In Termux nh -r #2702

Closed RohaanShahab closed 1 year ago

RohaanShahab commented 1 year ago

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: v0.5.4.0
  5. Ruby Version: 3.1.2p20
  6. Browser Details (e.g. Chrome v81.0): ?
  7. Operating System (e.g. OSX Catalina): Android 13

Configuration

  1. Have you made any changes to your BeEF configuration? Yes (Username & PW only)
  2. Have you enabled or disabled any BeEF extensions? No

Steps to Reproduce

  1. (eg. I ran install script, which ran fine)
  2. (eg. when launching console with './beef' I get an error as follows: [ 6:48:04][*] 309 modules enabled. /root/beef/core/main/console/banners.rb:55:in ip_address_list': Permission denied - getifaddrs (Errno::EACCES) from /root/beef/core/main/console/banners.rb:55:inprint_network_interfaces_count' from ./beef:243:in `
    ')
  3. (eg. beef does not launch)

How to enable and capture detailed logging

  1. Edit config.yaml in the root directory
    • If using Kali beef-xss the root dir will be /usr/share/beef-xss
  2. Update client_debug to true
  3. Retrieve browser logs from your browser's developer console (Ctrl + Shift + I or F12 depending on browser)
  4. Retrieve your server-side logs from ~/.beef/beef.log
    • If using beef-xss logs found with journalctl -u beef-xss

If we request additional information and we don't hear back from you within a week, we will be closing the ticket off.

RohaanShahab commented 1 year ago

Should I edit banner.rb file line 55 i to change the ip Configuration manually by useing nana banner.rb. I mean shoul I define my ip manually in python language, and if yes than how?

bcoles commented 1 year ago

Termux is not a supported platform for BeEF.

ip_address_list': Permission denied - getifaddrs (Errno::EACCES) from /root/beef/core/main/console/banners.rb:55:in print_network_interfaces_count'

It appears you don't have permission to list the network adapters.

Should I edit banner.rb file line 55 i to change the ip Configuration manually by useing nana banner.rb. I mean shoul I define my ip manually in python language, and if yes than how?

You will still run into many other issues.

RohaanShahab commented 1 year ago

How can I get that permission???

RohaanShahab commented 1 year ago

Or maybe I will use my KaliLinux OS in mobile by hosting a VNC Kex server because I want to get all hacking tools installed in my mobile which I can take anywhere whenever I need but if it isn't going to work in my mobile so is there any other framework or tool same beef for exploiting browsers

RohaanShahab commented 1 year ago

⚠️ You was wrong or was just trying to skip my issue request, I configured a way to install beef in termux even without root and also hacked someone