平时抓包都是 Firefox
、BurpSuite
组合,今天帮朋友定位个问题,然而目标站点不支持Firefox
,只好改用Chrome
。linux
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.
命令行下以代理模式启动 Chromeshell
google-chrome --proxy-server="127.0.0.1:8080"
发现只是新开了一个窗口运行,并无启用代理浏览器
加上sudo
试试安全
sudo google-chrome --proxy-server="127.0.0.1:8080"
哎呀,报错ui
[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
参数是不支持的google
加上--no-sandbox
参数命令行
sudo google-chrome --proxy-server="127.0.0.1:8080" --no-sandbox
搞定,浏览器以代理模式启动,又能够愉快的抓包啦。但因为关闭了沙盒,稳定性和安全性大大下降!代理