Logging Packets for built-in web page
Hi everyone. I'm new to programming internet applications, so I'm in need of a little help.
For my program, I have a web page loading in a "webbrowser" that is intergated into the program. I have 2 buttons: Connect, which loads a popular game in the "webbrowser", and disconnect, which loads "about:blank".
What I want to do, is have a text field that is editable by the user, that shows all of the packets that have been sent to and received on the web page that's loaded in the "webbrowser".
There have been many programs like mine, but I wish to make my own. Of course, the developers are very close-mouthed about it, but what I am told, is that I need to use a winsock connection.
You can view my program [virus free] at:
http://skootles.websiteallies.com/Raven.zip
Please help me!
Thanks for your time and or help!
Re: Logging Packets for built-in web page
I suggest you either make use of sockets to proxy the connection so you can take look at what is being sent back and forth.
Another option is for you to look into the PacketX control + pcap library, a vb.net example is on planetsourcecode.com... this would allow you to sniff all TCP packets and pick out what you want to look at. Tip: packet headers are fixed length, so you can still parse out relevant data without much trouble.
Re: Logging Packets for built-in web page
Quote:
Originally Posted by MalcolmCarmen
I suggest you either make use of sockets to proxy the connection so you can take look at what is being sent back and forth.
Well, that sounds like exactly what I want to do. Are there any tutorials that I could find on how to do this? Or if you could explain it to me, I would be extremely greatful :)
Re: Logging Packets for built-in web page
Sadly, it isn't very easy in VB.NET... I suggest you search for examples on planetsourcecode.com, such as "socket client" and "socket server" - mixing these two, you can setup a socket server that accepts connections and data, and makes a new outgoing connection to elsewhere.