Running Google Chrome with Burp Suites Proxy

Today I had an interesting problem, part of our software solution is a Chrome extension and this extension requires a logged in Google account with sync enabled for the user. I was required to perform some DAST on the extension which was not possible normally with Burp Suites inbuilt browser, which runs Chromium and does not allow syncing of Google accounts. The other option was to use a Firefox extension called Foxy Proxy, but I was testing a Chrome extension, so no dice.

So after digging around I saw that in Chrome you could set a proxy server to be used, but yet again no dice, it is not supported on Kali Linux. But this is where I was wrong, if you boot Chrome using the command line you can pass in a proxy server as an option. So by using the following I could proxy all Chrome traffic, importantly including the extensions, through Burp.

google-chrome --proxy-server=127.0.0.1:8080

A simple small command that I found useful and hopefully so do you.