lengyu0 2020-06-13
google-chrome-stable --allow-file-access-from-files --no-sandbox --disable-popup-blocking --remote-debugging-port=9222 --disable-web-security --headless --user-data-dir=”/home/kali-team/.config/google-chrome“
"C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe" --safebrowsing-disable-auto-update --disable-sync --metrics-recording-only --mute-audio --no-first-run --disable-web-security --disable-gpu --disable-popup-blocking --allow-file-access-from-files --headless --no-sandbox --user-data-dir="C:\Users\Administrator\AppData\Local\Google\Chrome\User Data" --remote-debugging-port=9222
--user-data-dir
参数,不然利用不了保存在本地的cookie和session。portfwd add -L 0.0.0.0 -l 9222 -p 9222 -r 127.0.0.1
9222
映射到本地的9222
[ { "description": "", "devtoolsFrontendUrl": "/devtools/inspector.html?ws=127.0.0.1:9222/devtools/page/55337A3040EA9F48A491F49866699575", "id": "55337A3040EA9F48A491F49866699575", "title": "about:blank", "type": "page", "url": "about:blank", "webSocketDebuggerUrl": "ws://127.0.0.1:9222/devtools/page/55337A3040EA9F48A491F49866699575" } ]
开发文档:这里
这样就可以利用对方的浏览器cookie和session了,界面有点想平板。不知道怎么调。