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

libnet_get_hwaddr(): socket: Permission denied #35

Closed
lasyka opened this issue Nov 3, 2019 · 4 comments
Closed

libnet_get_hwaddr(): socket: Permission denied #35

lasyka opened this issue Nov 3, 2019 · 4 comments

Comments

@lasyka
Copy link

lasyka commented Nov 3, 2019

When i run arping -i wlan0 192.x.x.x , get this error :
libnet_get_hwaddr(): socket: Permission denied.

I,m already use the root account to run it.
and i wrote simple test code to invoke libnet_get_hwaddr() ,there's no problem,and retun right hwcode. Or run other app that uses libnet‘s method,also no problem.
only run arping ,get this error.

My env. is linux chroot on android phone:
Linux kali 3.10.40-lasyka+ #30 SMP PREEMPT Sat Sep 29 19:40:50 CST 2018 armv7l GNU/Linux

@ThomasHabets
Copy link
Owner

Could you add both:

  1. The output of arping run with -vvvvv
  2. The smaller test program, in full?

@lasyka
Copy link
Author

lasyka commented Nov 4, 2019

Could you add both:

  1. The output of arping run with -vvvvv
  2. The smaller test program, in full?

Thanks for your help. use the vvvvv option got the drop uid/gid info. And add -g option to run arping,the error is gone.

@lasyka lasyka closed this as completed Nov 4, 2019
@ThomasHabets
Copy link
Owner

So you're saying Android doesn't have a group for "nobody"? What user did you choose with -g?

@ThomasHabets
Copy link
Owner

Oh right, this is #25

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

2 participants