Re: How to intercept IP packet from an application ???

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



simtouch,

I don't think this can be achieved using the CLR libraries.

What part of the packet are you trying to modify?

If you're just trying to wrap the data or modify source / destination headers, I'd search for a NAT solution that's written in .NET (i doubt there is one), it should help you get closer.

I think other people have mentioned this before, but i'll say it anyways. This isn't an easy undertaking.

Good luck,

--
Saad Rehmani / Prodika / Dallas / TX / USA

Hello,

Actually, i need to modify the IP packet, is there any other solution
for
that ?
Thanks for your help ...
"Goran Sliskovic" wrote:

simtouch wrote:

Thank you Kevin for your fast response. I have another question
regarding intercepting IP packet from a specific process. Is it
feasible to intercept all the IP packet from an identified process,
for exemple all the Skype processes that are currently running in
the machine.

Thank you

....

Hi,
If you need only to monitor packets, not to actually drop or modify,
there is a C# sample available at:
http://www.mentalis.org/soft/projects/pmon/

It's done through opening raw socket and setting socket IO control to
SIO_RCVALL. It's user mode approach, no drivers are necessary.

Regards,
Goran


.



Relevant Pages

  • Re: [PATCH] Topcliff PHUB: Generate PacketHub driver
    ... Subject: Topcliff PHUB: Generate PacketHub driver ... This driver is for PCH Packet hub driver for Topcliff. ... I will modify above. ...
    (Linux-Kernel)
  • Re: Problem Modifing the NDIS packet
    ... You cannot modify NDIS_PACKET in place. ... > I am trying to modify the NDIS packet. ... Calculate the Checksum. ... Calculate the 16 bit IP sum. ...
    (microsoft.public.development.device.drivers)
  • RE: Network routing issue
    ... If you can modify the routes on A and B (ie route A via C on B, ... then you can use iptables to modify the packet in various ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: modify packet in IM driver
    ... Although this is true of NDIS5 (that you may not modify a packet in the send path) this is no longer true of NDIS6. ... each component specifies it 'header' requirements and the sender is required to allocate NetBufferwith the required 'head-room' for packet header insertion. ...
    (microsoft.public.development.device.drivers)
  • Re: How to intercept IP packet from an application ???
    ... intercepting IP packet from a specific process. ... Is it feasible to intercept all the IP packet from an identified process, for exemple all the Skype processes that are currently running in the machine. ... It's done through opening raw socket and setting socket IO control to SIO_RCVALL. ...
    (microsoft.public.dotnet.framework)