I'm wondering if it is possible to write a packet sniffer in C# using System.Net.Sockets class ?
I want to make it an application that can analyze the packets.
I've heard of wpcap that is an API for this.
Can someone tell me whether it would be better to write it using the Sockets class or use an API like wpcap ?
Thanks..
packet sniffer
Started by ged25, Sep 05 2009 10:18 PM
6 replies to this topic
#1
Posted 05 September 2009 - 10:18 PM
|
|
|
#2
Guest_h4x_*
Posted 06 September 2009 - 01:08 AM
Guest_h4x_*
i dont know, but i bet its possible, as everything.
however its not designed to do that, i wonder is windows provide any api for sniffing packets, for linux you have mods, windows? nothing, you can write a driver, but well, its not designed for that. Even if u manage to do it 100% safe it still be wrong.
however its not designed to do that, i wonder is windows provide any api for sniffing packets, for linux you have mods, windows? nothing, you can write a driver, but well, its not designed for that. Even if u manage to do it 100% safe it still be wrong.
#3
Posted 06 September 2009 - 01:30 AM
I don't know wtf h4x is trying to say... There are heaps of packet sniffers for Windows.
These links might help you:
Simple Sniffer in C#
CodeProject: A Network Sniffer in C#. Free source code and programming help
These links might help you:
Simple Sniffer in C#
CodeProject: A Network Sniffer in C#. Free source code and programming help
Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
#4
Posted 06 September 2009 - 02:08 AM
I used to use SharpPcap, it works very nicely. :)
Tamir Gal | SharpPcap tutorial: a step by step guide to using SharpPcap
Tamir Gal | SharpPcap tutorial: a step by step guide to using SharpPcap
proudly presenting my personal website and game website: F1Simulation. a thrilling Managed DirectX racing game... also my Ask Me
look at my tutorials about cropping images and Mono: bundling Mono with programs and lambda expressions
look at my tutorials about cropping images and Mono: bundling Mono with programs and lambda expressions
#5
Posted 06 September 2009 - 02:27 AM
Thanks for the links. Does anyone know which approach I should take ?
Its possible to write one using SharpPcap (C# wrapper for wpcap) and using Sockets class. I'm a bit confused about which way to go.
Its possible to write one using SharpPcap (C# wrapper for wpcap) and using Sockets class. I'm a bit confused about which way to go.
#6
Posted 06 September 2009 - 02:49 AM
For me SharpPcap seems a bit lean than the articles above. But you know, Marwex will say the same thing, so it is your choice. Try making a prototype for one or both of them. Then you can decide which approach to pursue.
proudly presenting my personal website and game website: F1Simulation. a thrilling Managed DirectX racing game... also my Ask Me
look at my tutorials about cropping images and Mono: bundling Mono with programs and lambda expressions
look at my tutorials about cropping images and Mono: bundling Mono with programs and lambda expressions
#7
Posted 06 September 2009 - 03:22 AM
I won't say a thing. Never used it :D I just googled up some links.
Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa


Sign In
Create Account


Back to top









