Cardinal System
Honorable Member
- Joined
- Jan 24, 2016
- Messages
- 87
- Thread Author
- #1
Hello,
I am working on a Java application that uses Pcap4J and Npcap to monitor network activity on a Windows computer (it's mainly intended to monitor browser activity, but I like the idea of using Pcap to expand it to all network activity). Ultimately, it is going to be a network administrator tool for a small private school. That aside, I am having trouble figuring out how to decrypt HTTP requests that are captured with Npcap and translated to Java object instances through Pcap4J.
I read that you cannot decrpyt TSL traffic unless you control the server or client. This program is running an elevated process on the client computer, but I'm not sure how to obtain the private key, let alone how to decipher the request (I don't even know which cipher is used). Another thing I read said that a Man-In-the-Middle is a possibility. However, I am not sure which Man-In-the-Middle to use, or how to go about implementing it in such a way that it can interact with the Java program.
(There was one more thing I saw that seemed like a solution, but I cannot understand it [I only know so much about how networking works]).
Is there perhaps a Java library that can take care of all the hard work for me? Perhaps there is a native program that is designed to interact with Java?
Any ideas on how to obtain and use the private key, or how to setup a Man-In-the-Middle would be greatly appreciated!
Thanks!
I am working on a Java application that uses Pcap4J and Npcap to monitor network activity on a Windows computer (it's mainly intended to monitor browser activity, but I like the idea of using Pcap to expand it to all network activity). Ultimately, it is going to be a network administrator tool for a small private school. That aside, I am having trouble figuring out how to decrypt HTTP requests that are captured with Npcap and translated to Java object instances through Pcap4J.
I read that you cannot decrpyt TSL traffic unless you control the server or client. This program is running an elevated process on the client computer, but I'm not sure how to obtain the private key, let alone how to decipher the request (I don't even know which cipher is used). Another thing I read said that a Man-In-the-Middle is a possibility. However, I am not sure which Man-In-the-Middle to use, or how to go about implementing it in such a way that it can interact with the Java program.
(There was one more thing I saw that seemed like a solution, but I cannot understand it [I only know so much about how networking works]).
Is there perhaps a Java library that can take care of all the hard work for me? Perhaps there is a native program that is designed to interact with Java?
Any ideas on how to obtain and use the private key, or how to setup a Man-In-the-Middle would be greatly appreciated!
Thanks!