hakuneko: [Bug] CloudFlare Challenge get stuck in Infinite Loop
Describe the bug
When opening any website that is protected through a CloudFlare JavaScript challenge, the website is stuck in an infinite reload loop instead of solving the challenge and redirecting to the content of the website.
This affects many websites right now that can no longer be used in HakuNeko due to this issue!
To Reproduce
Steps to reproduce the behavior:
With HakuNeko
- Start HakuNeko
- Open the Website choosing List
- Search for
raws.mangazuki.co - Open the manual website interaction link on the result => Observe the website re-loads forever
With Electron
- Start electron
./node_modules/.bin/electron - Open the developer tools (e.g. from electron menu)
- Switch to the console tab and type
window.location = 'https://cloudscraper.cf/cloudflare/challenge.html'=> Observe the website re-loads forever
References
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 1
- Comments: 44 (24 by maintainers)
Updates for users on this issue. The fix requires to upgrade the main component that HakuNeko is using. It needs a non negligeable amount of work and Ronny is having a lot of IRL work and therefore not a lot of free time time to contribute on this. He’s the most knowledgeable on this matter and as such we kindly ask for your patience.
I haven’t tested this yet with the provided user agent, but i guess this was just a lucky hit. It would be way too simple if it could be bypassed that easily.
This comment was for a temp solution for current hakuneko
Tested in IchirinNoHanaYuri, not working.
fun fact, you can pass cloudflare just by changing useragent to windows - opera or another one that can pass cloudflare https://b.catgirlsare.sexy/pJRrpsgr8Aok.mp4
The electron fix seems to have been added somewhere between
v9.0.0-nightly.20200121andv9.0.0-beta.1❌ Electron 6.0.0 ❌ Electron 6.1.12 ❌ Electron 7.0.0 ❌ Electron 7.3.3 ❌ Electron 8.0.0 ❌ Electron 8.5.5 ❌ Electron 9.0.0-nightly.20191122 ❌ Electron 9.0.0-nightly.20200121 ✔️ Electron 9.0.0-beta.1 ✔️ Electron 9.0.0 ✔️ Electron 9.4.1 ✔️ Electron 10.0.0-nightly.20200209 ✔️ Electron 10.0.0 ✔️ Electron 10.3.0 ✔️ Electron 11.0.0 ✔️ Electron 11.2.0