Why does ping work without administrator privileges?

后端 未结 1 1571
长情又很酷
长情又很酷 2020-12-01 23:45

as you may know one is unable to create RAW sockets using Windows Sockets without having administrative priviliges. The problem is, that I need to send ICMP

相关标签:
1条回答
  • 2020-12-02 00:29

    Although ICMP uses RAW sockets (which require admin rights on Win2K and later), Microsoft circumvents its own security rules to allow its ICMP APIs to get through. As such, don't use RAW sockets directly to send your own ICMP ping messages. Use IcmpSendEcho() and related functions instead.

    0 讨论(0)
提交回复
热议问题