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

CloudFlare bypass #293

Open
bmirnoff opened this issue Mar 11, 2022 · 7 comments
Open

CloudFlare bypass #293

bmirnoff opened this issue Mar 11, 2022 · 7 comments

Comments

@bmirnoff
Copy link

I think we need to add Cloudflare bypass https://github.com/MHProDev/MHDDoS/blob/2cd27e8b645d0dbf05048fa0e295844dc65a0671/start.py#L738
Also it might be configurable

@arriven
Copy link
Owner

arriven commented Mar 11, 2022

yeah, I've been looking into it. it would require either adding python or javascript interpreter to be able to properly run checks, I have some ideas but need some more time to reflect on them. I've been looking at https://pkg.go.dev/github.com/robertkrimen/otto as it's written purely in go and we don't need performance from the javascript module and pure go is easier to maintain (I've seen 4 other js engines for go, all of them had more performance but were just providing bindings for C/C++ code and 3 of them are currently archived)

@bmirnoff
Copy link
Author

@arriven Sound good, otto for me also looks like a promising solution. I also can investigate this direction and share ideas here

@arriven
Copy link
Owner

arriven commented Mar 12, 2022

@bmirnoff what would probably be most important (especially in terms of using otto) and what I didn't have a chance to check yet is whether the anti-bot check requires an event loop or if it is just a simple evaluation and the timeout can somehow be parsed from the page/code

@bmirnoff
Copy link
Author

Just for everybody's information, reference impl for CFB can be https://github.com/Anorov/cloudflare-scrape
js challenge is forked via node.js vm. Need to investigate actual process of solving a challenge.

https://github.com/Anorov/cloudflare-scrape/blob/e510962c608382bcef5de75033d60cc98cb9561d/cfscrape/__init__.py#L297

@bmirnoff
Copy link
Author

Here is actually how Cloudfare response looks like #324

@ghost
Copy link

ghost commented Mar 14, 2022

Please, fix a TYPO in the tittle ClOudFlare

@arriven arriven changed the title CludFlare bypass CloudFlare bypass Mar 15, 2022
@crocangIt
Copy link

Just for everybody's information, reference impl for CFB can be https://github.com/Anorov/cloudflare-scrape js challenge is forked via node.js vm. Need to investigate actual process of solving a challenge.

https://github.com/Anorov/cloudflare-scrape/blob/e510962c608382bcef5de75033d60cc98cb9561d/cfscrape/__init__.py#L297

A bit more related repositories mentioned here (including Anorov) : https://githublab.com/repositories?q=cloudflare-scrape

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