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

Couldn't create privileged icmp/raw socket: Operation not permitted #14

Closed
louisabraham opened this issue Jun 10, 2019 · 1 comment
Closed

Comments

@louisabraham
Copy link

louisabraham commented Jun 10, 2019

Hi,

I get this error

$ ./pwnat -s
Listening on UDP 0.0.0.0:2222
Couldn't create privileged icmp socket: Operation not permitted
Couldn't create privileged raw socket: Operation not permitted
Failed to send ICMP packet: Socket operation on non-socket
^Cselect: Interrupted system call
Cleaning up...
Goodbye.

I'm using Linux version 3.10.0-862.14.4.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Wed Sep 26 15:12:11 UTC 2018

@samyk
Copy link
Owner

samyk commented Jun 10, 2019

You need root to generate those sockets or perhaps CAP_NET_RAW or a similar capability via setcap would allow your user to do it.

@samyk samyk closed this as completed Jun 10, 2019
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