Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cryptonector
· 3y ago · 0 comments
Historically programs like `ping` and `traceroute` use raw sockets. Using raw sockets requires privilege, which is why those historically have been set-uid on Unix systems.
Comments
[–]
Noxwizard
3y ago
Indeed. Windows requires elevation for raw sockets as well. The ping binary works without elevation by using the IP Helper Win32 API's ICMP functions:
https://learn.microsoft.com/en-us/windows/win32/api/icmpapi/...