Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Computer Support > using winpcap to send receive packets

Reply
Thread Tools

using winpcap to send receive packets

 
 
kiny
Guest
Posts: n/a
 
      07-06-2006
hi all,

I am trying to use winpcap to capture, send packets.

I found code from code project which uses dotnetWinpCap.dll for this
purpose. but it is not recognizing any packets, when ReceivePacket
method is called. can any one please tell me why it doesn't recognize.

is there any other way to capture, send packets and create log for the
received packets.

Thank you for your help in advance.

supriya

 
Reply With Quote
 
 
 
 
Pennywise@DerryMaine.Gov
Guest
Posts: n/a
 
      07-06-2006
"kiny" <> wrote:

|>hi all,
|>
|>I am trying to use winpcap to capture, send packets.
|>
|>I found code from code project which uses dotnetWinpCap.dll for this
|>purpose. but it is not recognizing any packets, when ReceivePacket
|>method is called. can any one please tell me why it doesn't recognize.
|>
|>is there any other way to capture, send packets and create log for the
|>received packets.

This just on DIGG.com
Packet School 101
http://www.chrissanders.org/?p=47

" As a lot of you may already know, there have been some issues with
WinPcap and version skew, as in different versions of the driver being
required for different pieces of software to work with it. This being
the case, I reccomend you to install the version of WinPcap that comes
with Ethereal even if you already have a version of this driver
installed. This will help to prevent any possible issues in the
future."

--
http://www.albinoblacksheep.com/flash/dudefalling.php
 
Reply With Quote
 
 
 
 
why?
Guest
Posts: n/a
 
      07-06-2006

On 5 Jul 2006 17:41:19 -0700, kiny wrote:

>hi all,
>
>I am trying to use winpcap to capture, send packets.
>
>I found code from code project which uses dotnetWinpCap.dll for this


That will be the stuff dated 2003
www.codeproject.com/dotnet/dotnetwinpcap.asp
or maybe even the same 0project dated 2004 from
http://www.tutorialmaniacs.com/packe...t-library.html
by the same author that links to the 1st

The message board has some posts, although it look like a dead project.

>purpose. but it is not recognizing any packets, when ReceivePacket
>method is called. can any one please tell me why it doesn't recognize.


No, as you must by doing what you are attempting realise it's not
exactly a trivial exercise or answer. The lack of detail you provided is
not helpful either.

>is there any other way to capture, send packets and create log for the
>received packets.
>
>Thank you for your help in advance.


You would have started at
http://www.winpcap.org/
then you would have downloaded some of the open source code and looked
at how it works.

Not forgetting all the documentation, examples IIRC came in the
developer pack.

Oh and just looking the .NET stuff in the additional docs and papers
section.

Maybe the ethereal developer list, should be someone there that could
give some pointer where else to look.

What ever you do, source code , data out / data in , error messages
always help.

Just saying it's not working or doing anything is useless.

Me
 
Reply With Quote
 
kiny
Guest
Posts: n/a
 
      07-07-2006
thanks for the replies.

I did see the documentation and the sample code provided in the
winpcap.org.

yes it is the same .net project. I couldn't find much
help/documentation for the .net dll.

iam trying to analyze an IDS. so i am planning to use ethereal to
capture packets. I thought of using dotnetwinpcap.dll to send packet. I
am also trying to create a log for the packets which sucessfully passes
through the IDS, so that I can evaluvate the IDS.
I am a new B to winpcap,packets,IDS. I couldn't figure out why the dll
is not recognizing packets.
any ideas about this is much appreciated.

 
Reply With Quote
 
why?
Guest
Posts: n/a
 
      07-09-2006

On 7 Jul 2006 10:42:08 -0700, kiny wrote:

>thanks for the replies.
>
>I did see the documentation and the sample code provided in the
>winpcap.org.


Stick to that , rather than dotnetwinpcap.

>yes it is the same .net project. I couldn't find much
>help/documentation for the .net dll.
>
>iam trying to analyze an IDS. so i am planning to use ethereal to
>capture packets. I thought of using dotnetwinpcap.dll to send packet. I
>am also trying to create a log for the packets which sucessfully passes
>through the IDS, so that I can evaluvate the IDS.
>I am a new B to winpcap,packets,IDS. I couldn't figure out why the dll
>is not recognizing packets.
>any ideas about this is much appreciated.


There are lots more exapmles / apps in C/C++ source code for generating
packets.

It's been a long time since I looked but there are quite a lot of
generators , www.google.com , mailing lists etc.

The only thing I have now is NAI Sniffer Pro and it's built in
generator, that's only because it's what's used at work.

In fact is has a very nice testing facility, record some traffic and
either replay it internally as a loopback or send back out on the wire.
This is great for test setups, as the same data set is repeatable.

Me
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Get Url name from winpcap library when using in c++ code. C Programmer , MFC C++ 2 12-12-2009 02:23 PM
How to Get Url name from winpcap library when using in c++ code. C Programmer , MFC C++ 0 12-10-2009 05:20 AM
How to Get Url name from winpcap library when using in c++ code. C Programmer , MFC C++ 0 12-10-2009 04:58 AM
moving from c++ to visual studio c++ (winpcap) exman C++ 5 12-11-2006 01:18 PM
wpa_supplicant, & winpcap johnny Wireless Networking 1 11-21-2005 11:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57