Packet Interception

Is it possible to gain access to the "Packets" that are sent to and from your computer and actually see and use them?
Yes. See WinPcap/libpcap.
Do you have links showing how to impliment either of these into C++ programs. I have found a couple in depth articles but these are written in C. Would it be possible to incorporate either into an Object oriented program given you dont use object classes when using the c functions?

here are the c tutorials i found for each for other peoples reference.
http://www.winpcap.org/docs/docs_41b5/html/group__wpcap__tut8.html
http://yuba.stanford.edu/~casado/pcap/section3.html

this is not the first page though. I think i linked the pages that actually capture the packets. You may have to go foward or back.
Last edited on
@ new hope: OOP is a style, there is nothing stopping you from applying it to libraries intended for use in C. Doing the opposite and applying libraries that were intended for C++ in an application that is written only in C might be bad but I can't think of any examples off the top of my head.


@ OP: Keep in mind that you won't get any useful raw data out of any packets sent via https. What do you mean by "use them"? Do you mean like a MitM attack?
Topic archived. No new replies allowed.