tsuyopon / webpagetest

Automatically exported from code.google.com/p/webpagetest
0 stars 0 forks source link

Add SSL intercept support for Chrome #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add support for intercepting decoded SSL traffic for Chrome

Original issue reported on code.google.com by PatMee...@gmail.com on 1 Sep 2011 at 1:38

GoogleCodeExporter commented 9 years ago

Original comment by PatMee...@gmail.com on 1 Sep 2011 at 1:41

GoogleCodeExporter commented 9 years ago
As of r642, web_browser.cc has FindHookFunctions(). There is a call to that in 
RunAndWait that is commented out.

First, see the function pointers to the relevant symbols can be found (start 
list from hook_nspr). Pat says, "Remember that the function pointers are going 
to be the locations in memory, you will need to subtract the module base to get 
the offset
and then when you go to hook add the base to the offset."

Second, hook the functions and get SSL tracking to work.

Finally, make handling the symbols file cheaper. Move symbol loading to launch 
time. From Pat, "The benefit of doing it at launch time is we can get the exact 
dll that is going to be used.  I want to cache the offsets of 'interesting' 
functions in an ini file indexed by md5 hash of the chrome.dll and read from 
cache if we already have it".

Original comment by sl...@google.com on 1 Sep 2011 at 5:29

GoogleCodeExporter commented 9 years ago
Fixed with r714.

Original comment by sl...@google.com on 6 Oct 2011 at 7:19

GoogleCodeExporter commented 9 years ago

Original comment by sl...@google.com on 6 Oct 2011 at 7:20

GoogleCodeExporter commented 9 years ago

Original comment by PatMee...@gmail.com on 4 Jul 2013 at 5:20