Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] Capturing data from Visual Studio .NET 2005

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Brian Vandenberg <phantal@xxxxxxxxx>
Date: Sun, 03 Dec 2006 08:51:45 -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.

-Brian
metasharp wrote:
Hello,

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
mean.

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?


  • Follow-Ups:
    • Re: [Wireshark-dev] Capturing data from Visual Studio .NET 2005
      • From: metasharp
  • References:
    • [Wireshark-dev] Capturing data from Visual Studio .NET 2005
      • From: metasharp
    • Re: [Wireshark-dev] Capturing data from Visual Studio .NET 2005
      • From: Brian Vandenberg
  • Prev by Date: Re: [Wireshark-dev] Compiling under MSVC 6.0 - simple Q, clear cut A ?
  • Next by Date: Re: [Wireshark-dev] Compiling under MSVC 6.0 - simple Q, clear cut A ?
  • Previous by thread: Re: [Wireshark-dev] Capturing data from Visual Studio .NET 2005
  • Next by thread: Re: [Wireshark-dev] Capturing data from Visual Studio .NET 2005
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation