.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

wifi packet sniffer

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :WPF
I am trying to find a solution to read the packet destination for an internet connection through wifi. I am able to do the same for a lan connection using packet sniffer example. But the same is not working for wifi connection in windows 7,
mainSocket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.IP); 
 this works in windos xp

View Complete Post

More Related Resource Links

The handshake failed due to an unexpected packet format

Hi, I have a thick client deployed on a bunch of remote sites, and they all use a central web service (https - the client just default accepts the cert). One site has a proxy and works fine (the software has a proxy config area). Another site has a proxy as well, however on the test machine when they try and login after entering their proxy details, they receive this error; "The handshake failed due to an unexpected packet format." Does anyone have any idea? The web service still works for the other remote clients so i think it might be coming from the proxy? Or the proxy is doing something to my traffic before it sends it out? I cannot replicate this error and cannot visit or get a remote login to this particular external site, so its very hard to troubleshoot!! Any info anyone could give on this would be great!!

"newby" question about packet sniffing and security and fraud prevention


Basically, I am looking for a reliable source of where I can start to learn to master this. While I can continue to work on this using perl, I am hoping there is something in .NET that supports this so that I can get better performance from compiled code.  Having programmed in C++ for so long, C# strikes me as trivially easy to use: the two are so similar, and the more advanced features of C++ don't seem to be there.

I am a "newby" only in the sense that normally I work on application software (such as statistical or data mining applications: I have programmed in FORTRAN and C/C++ for decades).  I am just beginning to examine low level programming tasks such as examining the lower OSI layers.

I have written some code aimed at one form of ecommerce fraud based on CGI programming in perl.

Maybe the question is naive, but I thought I might be able to get a clue about suspicious incoming traffic if I can compare the IP address information at the IP layer with the IP information in selected HTTP headers.  I would guess that the first thing to do is to be able to sniff incoming packets, and the next is to relate the incoming packets to the requests that have been made to our httpd server (I have access to both MS IIS and Apache, so whatever I do, I can host it on either, depending on what will give the best

HTTPs Sniffer


Hi all,

I am new in C# programming and I need some help.

I will need to write a C# program that will show the user has access https webpage.

Then pipe out to a txt file.

Output will be something like :

URL: https://www.gmail.com/
Time: 0100hrs 20-Nov-2010

For now its like that. Need help!

WCF JSON - The Windows Filtering Platform has blocked a packet.


I'm running a WCF web service which exposes an XML and a JSON interface. Almost all functions work well for both response formats. However, when rendering certain a couple calls the XML functions work perfectly but the JSON equivalent doesn't work. After looking through the logs I found that the Windows Filtering Platform seems to be blocking the JSON response. I've included the xml equivalent package:

 <GmsDetailResults xmlns="http://schemas.datacontract.org/2004/07/GmsClient" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Result i:nil="true" />
- <Status>
  <NewToken />
- <Results>
- <GmsEntityDetail>
  <Name>MBIT Management</Name>
  <Source i:nil="true" />
  <UniqueID i:nil="true" />
  <Description>MBIT GMS Data</Description>

i want to count total packet sent and received while pinging so i how i can do this ??

 lblStatus.Text = ""
            Dim ping As Ping = New Ping()
            Dim pingreply As PingReply = ping.Send(txtHost.Text)
            Label2.Text = "Address : " & pingreply.Address.ToString() & Constants.vbCr
            Label3.Text = "Roundtrip Time : " & pingreply.RoundtripTime & Constants.vbCr
            Label4.Text = "TTL (Time To Live): " & pingreply.Options.Ttl & Constants.vbCr
            Label5.Text = "Buffer Size : " & pingreply.Buffer.Length.ToString() & Constants.vbCr
            Label6.Text = "Packet-sent : " & pingreply

windows latency overhead between socket.send to packet out of box?


What is the latency caused by windows OS from the time a C# application does Socket.Send to the point when the packet actually leaves the machine?

We can assume the NIC used is top of the line 1Gig and there is very little traffic in and out of machine.

I'd like to know the theoretical and/or real numbers on Vista and if possible, pre vista.



I posted this question in another section but did'nt get much attention, this seems like a more relevant group to post my question.


TDS7/8 0x12 Pre-login packet


Hi buddies,

Here I encountered a SQL timeout issue frequently these days, after captured the data at client, I found it failed at pre-login. Tried several times, then client build connection with server, but issue caused the running application failed to get database connection. Can anyone get me know more about SQL pre-login? No network issue and high performance issue found from our monitor tool, since no more log after this issue occurred, I cannot figure out what's the problem, below is the screenshot get from my wireshark capture, thanks in advance:)


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend