Answer the question
In order to leave comments, you need to log in
Intercepting http/https traffic?
Hello, here is an example, I have a dns / dhcp server (ubuntu) and clients (windows) connected to it, I need to intercept the traffic and put it in db with python, there were no problems until I got to https and then the problem is the connection is secure. How to make traffic appear as http is there a ready-made solution in python? Do not think that for malicious purposes only for statistics who spends time and on what.
Answer the question
In order to leave comments, you need to log in
For statistics, there is an IP address and port, and to open the contents of the packets, this is to look through the keyhole, maybe I want to pick my nose, what's your business.
In fact, you need to perform a MITM attack.
If figuratively:
You have access to clients, you can import a self-signed certificate and start it through a proxy. On the proxy, replace the certificate with your own and decrypt the traffic, then transfer the data further via the already normal https.
BUT, if desired, and google, it is easy to protect yourself from mitm
You somehow complicate everything. Everything is already written for you. Use squid, it can do https.
If you need to put everything in the database, then you can parse the squid logs - this is much easier than breaking https.
Only by replacing the certificate, google about transparent squid + ssl bump
You need to install your root certificate on all client machines.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question