winpcap

Is there any way in .NET to programmatically listen to HTTP traffic?

I'm using browser automation for testing web sites but I need to verify HTTP requests from the browser (i.e., images, external scripts, XmlHttpRequest objects). Is there a way to programmatically instantiate a proxy or packet sniffer for the browser to use in order to see what its sending? I'm already using Fiddler to watch the traffic ...

Could anyone suggest a good packet sniffer class for c++?

Could anyone suggest a good packet sniffer class for c++? Looking for a easy insertable class I can use in my c++ program, nothing complicated. ...

How to send a WOL package(or anything at all) through a nic which has no IP address?

I'm trying to send a WOL package on all interfaces in order to wake up the gateway(which is the DHCP server, so the machine won't have an IP yet). And it seems that I can only bind sockets to IP and port pairs... So the question is: How can a create a socket(or something else) that is bound to a NIC that has no IP? (Any languge is ok. ...

TCP: How are the seq / ack numbers generated?

Greetings and salutations! I am currently working on a program which sniffs TCP packets being sent and received to and from a particular address. What I am trying to accomplish is replying with custom tailored packets to certain received packets. I've already got the parsing done. I can already generated valid Ethernet, IP, and--for the...

How do I hook the TCP stack in Windows to sniff and modify packets?

I'd like to write a packet sniffer and editor for Windows. I want to able to see the contents of all packets entering and leaving my system and possibly modify them. Any language is fine but I'd like it to run fast enough that it won't burden the system. I've read a little about WinPcap but the documentation claims that you can't use ...

Which .NET library / wrapper do you recommend for sniffing packets ?

As far as I understand all sniffing libraries in .NET just a wrapper around WinpCap, which is OK. If you know any other better option please write as answer. Have you used any of them? Which one is the best according to your experience? I'm only looking for libraries which have commercial friendly licenses, Also commercial libraries ar...

Can WinPcap be used to capture network traffic per process?

On Windows I am loading a DLL and running it. The DLL performs a lot of network activities. Now I need to monitor which url and hosts the DLL connects to. I think using a packet sniffer might be a good option. Can WinPcap be used to capture traffic from a single process? I can't find any such option in the docs. If that can’t be done us...

PCAP Alternatives

Are there any alternatives to PCAP DLL for capturing packets, that are not drivers? ...

Winpcap simple question - how to send packets to a specified ip/port?

I read the tutorials and so, but I am not getting it. It does let you send packets, but how can you tell Winpcap where to send those packets? Is there any header I should put on the packets so it will know to which ip/port's to forward it? I mean. Let's imagine I want to send some data to my MSN, as if I had wrote something to someone on...

Winpcap - Having troubles sending data

I'm using Tamir's SharpPCap to try to send data to my msn. Currently, for testing purposes, my idea is to wait for any msg received by [email protected] and then send the packet itself again, that is, make any message appear repeated forever on my msn. I thought this had to work, as I am simply getting the packet itself I receive, and rese...

Catch network adapter up/down and address changed event (Windows, C#)

Hi there I am searching for a method to be notified when any windows network interfaces go up or down or the addresses of any network interfaces are changed. I would prefer solutions in C#, C is also possible. Winpcap could be used. I am aware that there is an event for network adapter address changes in C#, but this also possible w...

WinPCAP And Non-promiscuous compatible mode?

I've heard that winpcap can work on Non-promiscuous wireless adapters. Is this true? Is it worth the trouble to work around or should you just use Ethernet if available? ...

Getting Machine's MAC Address -- Good Solution?

I've heard it's not possible with my current library of winpcap. Is this really true? I see lots of examples on the net but then comments saying "This doesn't work". What's the best way to get a MAC address of the local machine? ...

Networking -- Padding of Data

For a homework assignment, I was tasked with creating a "Ping Pong" layer that sits right above the Ethernet stack. I was able to easily complete the task but when I tested my application over my wireless connection and tried communication with my desktop computer (ethernet) on the same network I found some odd behavior. It seems like ...

http/http traffic analyzer

i would like to develop a c++ application that would list all url accessed with its response time within the pc. this probably would be transparent to the user, so it would be a dll. can anyone gve me some sample codes or tutorials on th said matter. or any tips and suggestion?!.. thanks alot:)) ...

how to know which installed devices has internet connection in WINPCAP?

i have known that winpcap library enabled a person to obtain advanced information about installed devices... given all the networking devices found in the computer, how will i know which one of this has an internet connection?! thanks:) ...

URL browser origin in winpcap

is there anyway to know the origin(web browser) of a certain url/packet when programming with winpcap and c++? ...

http header in a packets?

how to retrieve the http header in a packet in c++? any sample code or tutorials can be a big help!.. thanx!.. note: winpcap was used for the packet sniffing and these packets are already filterd to be only tcp and http/s protocols..the only problem is how to decode the packet's http header.. ...

how to reassemble tcp segment?

im now developing a project using winpcap..as i have known packets being sniffed are usually fragmented packets. how to reassemble this TCP segements?..any ideas, suggestion or tutorials available?.. this i assume to be the only way i can view the HTTP header... thanks!.. ...

c++ accessed url log.

im now currently developing a standalone c++ program that would list all the access URL in a browser and its corresponding response time.... at this point of time, i can already sniff all out and in going packets. i am using winpcap for this... retrieved packets were filtered to by only those 'tcp port 80(http) or 443(https)'... and kn...