title: New method for injecting dll in chrome?
body: <p>I have tried an <a href="https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/3d5085c2-5506-43f8-b2f4-992f96a3ce22/security-protection-on-google-chrome?forum=windowssecurity" rel="nofollow">old example</a> of how to inject a dll in Chrome however when I use <code>CreateProcess</code> to open chrome.exe it seems to immediately shutdown and restart with a new pid contrary to the one stored in the <code>dwProcessId</code> member of the <code>PROCESS_INFORMATION</code> structure I pass to <code>CreateProcess</code>. I have also tried making a function to calculate the offset of <code>LoadLibraryA</code> relative to the base loading address of kernel32.dll in the remote process. I have tried this on other processes like notepad.exe and  was successful so I know my funciton for finding the function in other processes even though they do not load kernel32 at the preferred address. Whenever I try to load the dll with <code>LoadLibraryA</code> in chrome, chrome immediately crashes which I think is a security feature. I am stumped and have been trying to figure this out for around a month and a half. Any information would be greatly appreciated.</p>