mattsse / chromiumoxide

Chrome Devtools Protocol rust API
Apache License 2.0
712 stars 69 forks source link

How'd i use proxy while taking screenshots #180

Closed pwnwriter closed 8 months ago

pwnwriter commented 9 months ago

Hey there, @mattsse

I'm using chromiumoxide in one of my project haylxon . Which basically helps to take screenshots of urls/webpages. While taking screenshots i'd like to use proxy i don't find anything related to this inside the docx or the example config am i missing something?

issue: pwnwriter/haylxon#21

Any help will be appreciated :100: Thank you :heart:

chirok11 commented 9 months ago

Chromium support only HTTP (you will be prompted for username and password after start if there is auth on proxy) or SOCKS4/5 proxies without authentification, may be passed through argument --proxy-server while running Chrome instance. Unfortunately, if proxy has authentification, it is impossible to pass it within argument, it should by typed manually. Only one workaround is here - you should create/start relay which will handle auth. (for example: https://github.com/ginuerzh/gost) or write yourself on Rust, easy for SOCKS5, a little bit heavier for HTTP.