Linux 下谷歌 Chrome 浏览器设置代理

前言

平时抓包都是 FirefoxBurpSuite组合,今天帮朋友定位个问题,然而目标站点不支持Firefox,只好改用Chrome

问题

Chrome 无法设置代理

When running Google Chrome under a supported desktop environment, the system proxy settings will be used. However, either your system is not supported or there was a problem launching your system configuration.
But you can still configure via the command line. Please see man google-chrome-stable for more information on flags and environment variables.

解决

命令行下以代理模式启动 Chrome

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

发现只是新开了一个窗口运行,并没有启用代理

加上sudo试试

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

哎呀,报错

[16608:16608:0813/170115.496132:ERROR:zygote_host_impl_linux.cc(88)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

以管理员身份运行,没有--no-sandbox参数是不支持的

加上--no-sandbox参数

sudo google-chrome --proxy-server="127.0.0.1:8080" --no-sandbox

搞定,浏览器以代理模式启动,又可以愉快的抓包啦。但由于关闭了沙盒,稳定性和安全性大大降低!

    原文作者:刘校
    原文地址: https://segmentfault.com/a/1190000015992610
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞