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

add other type of challenge button #33

Closed unsciorg closed 1 year ago

unsciorg commented 1 year ago

add a new type of challenge button

vvanglro commented 1 year ago

Hello, thanks for the PR, I have a few questions to confirm.

  1. What does the new challenge button look like? Is the previous code unclickable?
  2. The new challenge button looks like this code, or is the positioning of this code invalid? https://github.com/vvanglro/cf-clearance/blob/main/cf_clearance/retry.py#L20-L29
vvanglro commented 1 year ago

I tested two positioning clicking schemes, and they all seem to have the same effect.

unsciorg commented 1 year ago

Hello, The new challenge button looks like this 20230606162444 The existing code in the main branch is unable to locate and click on the corresponding component.

The target website is https://chat.xxxxai.com/auth/login . ( as you know πŸ˜„ )

based on the windows platform.

vvanglro commented 1 year ago

Ok I got it, I reproduced the problem.

vvanglro commented 1 year ago

Thank you again for your great work on this PR,@unsciorg. πŸ‘ Will be merged after resolving those comments above.

unsciorg commented 1 year ago

The advantage of this pr is that no matter how many iframe there are on the page, it will always find the one that contains the challenge input box and click on it.

unsciorg commented 1 year ago

there is something wrong in the code, closed

vvanglro commented 1 year ago

Can you tell me what's wrong? I'm already planning to merge it.

unsciorg commented 1 year ago

Due to an oversight, I mistakenly used the await keyword in a non-async section.

Peanut @.***> 于2023εΉ΄6月7ζ—₯周三 11:08ε†™ι“οΌš

Can you tell me what's wrong? I'm already planning to merge it.

β€” Reply to this email directly, view it on GitHub https://github.com/vvanglro/cf-clearance/pull/33#issuecomment-1579803289, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYQ2QY4SQRXLIW6AOYTAFLXJ7WCXANCNFSM6AAAAAAY37OH7M . You are receiving this because you modified the open/close state.Message ID: @.***>

unsciorg commented 1 year ago

I think this method of judgment seems somewhat imprecise. We should check if the URL of the iframe contains "challenge.cloudxxxx.com". To avoid detection. Therefore, we will only check for the presence of "challenge" in the URL.

What is your opinion