vvanglro / cf-clearance

Purpose To make a cloudflare v2 challenge pass successfully, Can be use cf_clearance bypassed by cloudflare, However, with the cf_clearance, make sure you use the same IP and UA as when you got it.
https://github.com/vvanglro/cf_clearance
353 stars 58 forks source link

how to use in Doker ? got a timeout with example #16

Closed bigqiao closed 1 year ago

bigqiao commented 1 year ago

0.28.3 in an ubnutu 20.04 TLS server with docker I can open https://nowsecure.nl via curl

curl http://localhost:8000/challenge -H "Content-Type:application/json" -X POST -d '{ "timeout":40, "url": "https://nowsecure.nl"}'

got

{"success":false,"msg":"challenge timeout","user_agent":null,"cookies":null}

vvanglro commented 1 year ago

I just tried it and it worked.

vvanglro commented 1 year ago

There is no guarantee that it will succeed every time, so please add some exception handling to the code.

bigqiao commented 1 year ago

I am always failing every time I try Do I need to install XVFB in Docker myself? Also does the fact that I'm not using a proxy have any effect on this?

失败是必现的。 请问一下,我需要在Docker中自行安装XVFB吗?另外我没有使用proxy是否对这个有影响?

vvanglro commented 1 year ago

If use my docker image not need install XVFB, If you can open the test website normally, you can do it without a proxy.

bigqiao commented 1 year ago

I think this is because it takes a very long time to complete the operation on my server. ...... can take several minutes.