For my project, I need to log the SSL KEY for decrypt SSL/TLS traffic with wireshark after the acquisition activities for forensics use, being able to use it as a prove in legal context.
I have introduced this context to not mislead my words, my request is for a fair use and a good cause not for fraud :)
In chrome/chromium and Firefox is possible set a environment variable to set a file where saving the SSL Keys:
export SSLKEYLOGFILE=/media/evidences/mywork/keys
and when browser start to "surf", it save in this path all SSL Keys for any HTTPS request.
Can this be replicated in CEFPython?
if yes, how can use it ?
if no, where can put my hands in the source code for try to implement it?
Note:
I know that it is possible to use a Man-In-The-Middle technique with a proxy that strips and replaces SSL certificate, but because I need to work in forensics mode, I can not change any data (not even a bit) , especially the certificate :)
Thanks and best regards :)
Massimiliano Dal Cero
I try to ask another question about this topic:
when CEFPython load a URL, it use a socket made in python or use network library of chromium?
if I wanted put my hands somewhere, I need to add this "feature" on python or over CEF?
Thanks
Best regards
These implementations can be done also with current version of cefpython or I need to use an old version ?
Now I take a look :)
Thanks :)
Best regards
Massimiliano
I read the code and if I understood correctly, I need to modify the row 152 and 153 in the method ProcessRequest inside the class ResourceHandler:
self._webRequest = cefpython.WebRequest.Create(
request, self._webRequestClient)
more precisely I need to create a new class "webRequest" compatibly with cefpython.WebRequest definition.
Sounds good? :)
Thanks and best regards
Massimiliano
I remove all wx reference and ".so" library (is like a hello_world example) and inside it I use Urllib3 instead of chromium library.
Furthermore inside Urllib3 is possible to use PyOpenSSL that can trace sessionid and master_key.
if it may be of interest, I can send it to you :)
Only one note:
loading perfomances are slightly slower :(
THANKS for your help !!!
Best regards
Massimiliano
At the moment, the performance are better (I introduced threads to handle urllib3).
only a few things have abnormal behaviors
- facebook notifications (chat and all other features works ... bah)
- url with "chrome-extension://" protocol (?)