Wireshark-dev: Re: [Wireshark-dev] Capturing data from Visual Studio .NET 2005
From: Brian Vandenberg <[email protected]>
Date: Sun, 03 Dec 2006 08:34:04 -0700
 I'd suggest you try a few things:

1) Learn how to develop with wireshark first.
2) During this process, pay close attention to the section where you learn how to setup a build environment. For example, wireshark won't build in VS2003 or VS2005. 3) Once you're familiar enough with how wireshark works (note: wireshark is written in C, you're writing a C# app, so you'll need to learn how to use a non-.net dll from your C# program), doing what you want to do will probably be a little more obvious.

metasharp wrote:

I am trying to capture HTTP data from Visual C# express 2005. I'm
after the PHPSESSID that transit through cookies in web requests but
which is not stored locally on the client side file cookie.

The scenario is this one:
- i visit a website (which uses php sessions)
- i capture the phpsessid with wireshark
- i inject it from a textbox in my program's web requests
- my program can now simulate me using the website

What I want to do is to automatize the phpsessid retrieval without
starting the wireshark graphic user interface..... using the libs I

The problem is that I've been unsuccessfull about calling wireshark
(winpcap,...) libs (would be easier if DLL instead of LIB i guess)
because i'm unable to compile the libs on visual c++ 2005.

I already have the book about Network Programming but the provided
code simply doesn't work in C# 2005 (even tried in 2003, same result).

Any idea?