Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions: Cloudflare Waiting Room #22

Open
ManuCiao10 opened this issue Sep 20, 2022 · 7 comments
Open

Questions: Cloudflare Waiting Room #22

ManuCiao10 opened this issue Sep 20, 2022 · 7 comments

Comments

@ManuCiao10
Copy link

ManuCiao10 commented Sep 20, 2022

hello, I'm trying to bypass cloudflare with your example_file but i'm not finding any documentation to wait until the pages is fully loaded.
As for example on aw-lab.com you have to wait like 5-6 seconds before been redirect in the home page.
I tried to use page.Timeout(10 * time.Second).MustWaitLoad() but it didnt wait 10 seconds

@ysmood
Copy link
Collaborator

ysmood commented Sep 21, 2022

I think you misunderstand how timeout and context work in golang. Please check https://go-rod.github.io/#/context-and-timeout

@IndiaTransform

This comment was marked as off-topic.

@ManuCiao10
Copy link
Author

ManuCiao10 commented May 16, 2023

hey @ysmood,
I test stealth with https://gitlab.com/users/sign_in with the following code:

func GetCloudFlareClearanceCookie(client *http.Client, target string) error {
	browser := rod.New().Timeout(time.Minute).MustConnect()
	defer browser.MustClose()

	// You can also use stealth.JS directly without rod
	fmt.Printf("js: %x\n", md5.Sum([]byte(stealth.JS)))

	page := stealth.MustPage(browser)

	page.MustNavigate("https://gitlab.com/users/sign_in")

	time.Sleep(8 * time.Second) // giving a few secs for the challenge
	page.MustScreenshot("")

	log.Println("[*] Fetching Cloudflare clearance cookie...")

As result looks like the page is not going forward to the request and can't bypass cloudflare.

1684231817609401000

Same with https://nowsecure.nl

@ysmood
Copy link
Collaborator

ysmood commented May 18, 2023

go-rod/rod#744

@ManuCiao10
Copy link
Author

hey, thanks for the answer, i will give a try right now.

@ysmood
Copy link
Collaborator

ysmood commented May 18, 2023

https://developer.chrome.com/articles/new-headless/

@ManuCiao10
Copy link
Author

ManuCiao10 commented May 18, 2023

just did a test with the code reported here go-rod/rod#744
And even this time is looping without solving the challenge.
I don't know if it due the new Cloudflare Turnstile captcha.

nowsecure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants