How to sniff http requests
Asked Answered
K

6

7

I want to sniff a local HTTP request to an ASP.NET web application.

Is telnet an option?

How do you capture packets to a web application?

Kaitlynkaitlynn answered 13/4, 2010 at 15:20 Comment(0)
K
1

I found this in another post, it works

http://socketsniff.nirsoft-freeware.qarchive.org/_download2.html

Kaitlynkaitlynn answered 13/4, 2010 at 15:31 Comment(0)
G
18

Depending on your exact requirements, Fiddler may be sufficient.

Gleich answered 13/4, 2010 at 15:22 Comment(2)
+1 Fiddler is actually one of the most robust tools I've found for the Windows platform. It also comes with a FireFox plugin so that you can easily utilize it cross-browser (other browsers require some hand configuration, but still work).Impart
It looks real cool, but it doesn't seem to work in games such as Starcraft 2, that search for open game lobbies to gather players to play. I wanted to replicate the requests, and request for it with my own tool :\Trounce
K
4

http://www.wireshark.org/ is a very advanced and free sniffer/protocol analyzer. I use it on our servers to monitor things from sip protocol info to raw http data. Its all you need and you can add filter rules to just get the data from certain IP etc. ie:

ip.addr == 192.168.1.1

Raw packets and headers all included.

Kane answered 13/4, 2010 at 15:51 Comment(0)
S
1

For ease of setup, I personally would use either the Tamper Data (https://addons.mozilla.org/en-US/firefox/addon/966) or Live HTTP Headers (https://addons.mozilla.org/addon/3829) plugin for the FireFox browser - or for a lower level solution WireShark (http://www.wireshark.org/)

Succulent answered 13/4, 2010 at 15:22 Comment(0)
Y
1

Have you tried browser plugins that allow you to do this? Firebug, etc.

Yuriyuria answered 13/4, 2010 at 15:23 Comment(0)
K
1

I found this in another post, it works

http://socketsniff.nirsoft-freeware.qarchive.org/_download2.html

Kaitlynkaitlynn answered 13/4, 2010 at 15:31 Comment(0)
M
0

There are browser add-ins that can make sniffing of the HTTP requests easy:

For Internet Explorer, there is the Fiddler Web Debugger.

For Firefox, there is the Live HTTP Headers add-in.

Makhachkala answered 13/4, 2010 at 15:23 Comment(2)
Fiddler actually works with any browser, though it does need .NET (so probably isn't terribly convenient to run on anything but Windows).Vorlage
@Vorlage -- good point. It'd been so long since I used Fiddler I'd forgotten that you can set it's localhost:port as the proxy for other browsers.Makhachkala

© 2022 - 2024 — McMap. All rights reserved.