平時抓包都是 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
搞定,瀏覽器以代理模式啓動,又能夠愉快的抓包啦。但因爲關閉了沙盒,穩定性和安全性大大下降!代理