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

file permission denied #183

Open
zigmaverick opened this issue Jun 12, 2024 · 1 comment
Open

file permission denied #183

zigmaverick opened this issue Jun 12, 2024 · 1 comment

Comments

@zigmaverick
Copy link

zigmaverick commented Jun 12, 2024

Running on a Kali VM in Virtual Box.
when trying to run -l or --localnet I get the following issue

sudo arp-scan --localnet
Interface: eth0, type: EN10MB, MAC: XX:XX:XX:XX:XX:XX, IPv4: 192.168.0.111
WARNING: Cannot open MAC/Vendor file ieee-oui.txt: Permission denied
WARNING: Cannot open MAC/Vendor file mac-vendor.txt: Permission denied

the only devices I am picking up at the VM and the host.
I can ping and have internet on the VM

I am not sure if it is a VM issue or arp scan - I am a noob so I probably just haven't done something correctly
Any help is greatly appreciated

@royhills
Copy link
Owner

This can happen if you run arp-scan as root when it has been built with Linux capability support. To check this, run arp-scan --version - if it was built with capability support the output will include Built with libcap POSIX.1e capability support.

If arp-scan is built with capability support, it doesn't need to run as root provided the package maintainer installed the binary with the cap_net_raw capability. If it's built with capabilities support you shouldn't need to run as root as the package maintainer should set the required capability. If you can't run arp-scan without sudo then you can set the required capability on the binary with this (assuming it's in /usr/bin/arp-scan - adjust as required):

sudo setcap cap_net_raw+p /usr/bin/arp-scan

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

No branches or pull requests

2 participants