Re: Raw sockets on Vista with IPPROTO_ICMP



Why don't you switch to using IcmpSendEcho[2]?

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================

<chris-deja@xxxxxxx> wrote in message
news:1172765361.617769.96820@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I'm trying to keep my ping program up to date with Vista. I use raw
sockets and open them with IPPROTO_ICMP. Now I have read that things
around raw sockets changed in XP SP2 and again under Vista. But still
there seems to be *some* support of raw sockets in Vista. All I want
to do is send ICMP echo-req's and receive the answers.

What happens under Vista is that I can open the socket, send the
packets and even see that the NDIS receives the replies. But, alas, my
application doesn't get them. This doesn't change regardless if I'm
user/admin (i.e. restricted/unrestricted token), use IP_HDRINCL or not
or sign my app or not.

I get the idea I'm doing something wrong, because if it was forbidden
under some new security scheme, would i be able to open the socket or
send the packet in the first place?

Any help appreciated. Please answer in this forum or send mail to l-u-
e-d-e-r-s at c-f-o-s dot d-e (without the dashes).

P.S. link to my program: http://www.cfos.de/ping/ping.htm



.



Relevant Pages

  • Re: Hacking to Xp box
    ... Raw sockets can't be reenabled via command ... Firewall servicewe have to decide whether we need to stop or start ... Windows XP>restricts most of the attacks that use anonymous connections. ...
    (Pen-Test)
  • Raw sockets, MS05-019 and Windows Firewall -- Summary
    ... Based upon the presence of MS05-019 and the state of the Windows ... though TCP raw sockets are unaffected by the firewall the ALG service, ... the ALG service and we're good to go. ...
    (NT-Bugtraq)
  • Re: Nat router
    ... C or C++ and sockets of course, ... Alexander Nickolov ... Microsoft MVP, MCSD ... which offers PHP ver. ...
    (microsoft.public.win32.programmer.networks)
  • Re: RAW Sockets and Posibilities
    ... the sockets well enough to be able to help me. ... Using RAW sockets can I somehow capture all packets addressed to an IP ... Visual Studio package compleatly and look elsewhere for a programming ...
    (microsoft.public.dotnet.languages.vb)
  • Raw sockets on Vista with IPPROTO_ICMP
    ... I'm trying to keep my ping program up to date with Vista. ... around raw sockets changed in XP SP2 and again under Vista. ...
    (microsoft.public.win32.programmer.networks)