Skip to content
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

ip_address_list: Permission denied - getifaddrs (Errno::EACCES) #2443

Open
uhuhuhuhuhuhuhuh opened this issue Jun 4, 2022 · 8 comments
Open

Comments

@uhuhuhuhuhuhuhuh
Copy link

uhuhuhuhuhuhuhuh commented Jun 4, 2022

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

'

This is the error I've been getting

@jcrew99
Copy link
Collaborator

jcrew99 commented Jun 6, 2022

With the information provided i would think that your user does not have permission on the system for "Socket.ip_address_list" to run. Based off the documentation for exceptions i would guess that you do not have write access to the socket.
https://docs.ruby-lang.org/en/2.1.0/Socket.html

Have a look at the user permissions and provide whatever access is missing.

@wheatley
Copy link
Contributor

wheatley commented Jun 6, 2022

Also, @uhuhuhuhuhuhuhuh could you please provide some more so can help the best we can?

Environment

Please identify the environment in which your issue occurred.

  1. BeEF Version:

  2. Ruby Version:

  3. Browser Details (e.g. Chrome v81.0):

  4. Operating System (e.g. OSX Catalina):

Configuration

Have you made any changes to your BeEF configuration? Yes/No
Have you enabled or disabled any BeEF extensions? Yes/No

Steps to Reproduce

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

@uhuhuhuhuhuhuhuh
Copy link
Author

Environment
BeEf version: 0.5.4.0
Ruby version 2.5.5
Browser details:nil
OS:Debian

Configuration
Have you made any changes to your BeEF configuration? No(only login creds)
Have you enabled or disabled any BeEF extensions? No

Steps to Reproduce

  1. run ./beef

@uhuhuhuhuhuhuhuh
Copy link
Author

Running it using UserLAnd

@wheatley
Copy link
Contributor

wheatley commented Jun 9, 2022

Thanks for the information @uhuhuhuhuhuhuhuh, we'll try and replicate your environment to reproduce your errors.

If your using the os through userland,you may find that the user being used may not have the appropriate permissions.

@adnangul301
Copy link

i think you should open a root directory first or go with chmod +x command

@bcoles bcoles changed the title Permission Denied ip_address_list: Permission denied - getifaddrs (Errno::EACCES) Mar 3, 2023
@danny19891989
Copy link

userland. your docs socks. for more info check the follow:

@danny19891989
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants
@wheatley @DeezyE @jcrew99 @uhuhuhuhuhuhuhuh @adnangul301 @danny19891989 and others