-
Notifications
You must be signed in to change notification settings - Fork 537
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
fix captcha solving fixes #1036 #1065
fix captcha solving fixes #1036 #1065
Conversation
df4dd25
to
7416962
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
GET requests were working with or without proxy. POST requests were working without proxy but returning invalid cookies with proxy.
revert was causing devtools window to close when using proxy, slight edit resolves initial issue with POST and proxy
I think it’s better to merge this as soon as possible, otherwise at the moment we cannot bypass the CloudFlare. |
Ideally waiting to hear back from @howwwdi before merging. |
Okay, so let's see what @howwwdi thinks about this amazing solution |
I apologise for the wait, can't really make a comit rn. So the only thing i've had noticed, is adding |
1c971ff
to
dcb9801
Compare
Is |
the page has been accessed before, so not needed |
import requests
url = "http://localhost:8191/v1"
headers = {"Content-Type": "application/json"}
data = {
"cmd": "request.post",
"url": "https://leporno.info/tracker.php",
"maxTimeout": 60000,
"postData": "nm=720pxyz&submit=Search",
"proxy": {"url": "http://192.168.0.2:8080"}
}
response = requests.post(url, headers=headers, json=data)
print(response.text) Well I thought I had fixed POST with proxy, but apparently not. The above sees the devtools panel automatically close and the postData isn't sent. Works fine without the proxy, or with proxy and GET. Current master works with proxy and POST until the open devtools argument is added. |
@ilike2burnthing I tested this PR with under container 1337x.to #1073 I confirm that it works! |
The PR won't be merged until #1065 (comment) is resolved. |
Perhaps there is a specific issue with proxy without authorization? Because it works just fine for me, I was testing like this: {
"cmd": "request.post",
"url": "https://leporno.info/tracker.php",
"maxTimeout": 60000,
"postData": "nm=720pxyz&submit=Search",
"cookies": [
{
"domain": "leporno.info",
"httpOnly": false,
"name": "__PPU___PPU_SESSION_URL",
"path": "/",
"sameSite": "Lax",
"secure": false,
"value": "%2Ftracker.php"
},
{
"domain": "leporno.info",
"expiry": 1708338058,
"httpOnly": false,
"name": "__PPU_tuid",
"path": "/",
"sameSite": "Lax",
"secure": false,
"value": "7337240885443409304"
},
{
"domain": "leporno.info",
"expiry": 1742804519,
"httpOnly": false,
"name": "__PPU_puid",
"path": "/",
"sameSite": "Lax",
"secure": false,
"value": "7337240889736249891"
},
{
"domain": ".leporno.info",
"expiry": 1739870514,
"httpOnly": true,
"name": "cf_clearance",
"path": "/",
"sameSite": "None",
"secure": true,
"value": "AWPUYZeid0PiymlpS_oGh27jfWhksyzlN9n7Z3PbO1k-1708334507-1.0-AdGIQAWOxCdYMk+Hd2hW02c3jLEWNuFr+Qw+lAiD/C2VtLzjBA222X7NzuRig+IqJLudtPekfrA4hSsTJpfAbc0="
}
],
"proxy": {"url": "http://REDACTED",
"username": "REDACTED",
"password": "REDACTED"}
} |
I'll take a look to make sure. It had been previously working for me, and I have been using dummy credentials at that point. |
This comment was marked as duplicate.
This comment was marked as duplicate.
After a bit of testing, credentials aren't the cause. If you remove the cookie block, in particular Ideally I'd love to get this PR published ASAP without this issue, as the number of affected sites has jumped. However, if you don't see an easy fix, please let me know; I can open a new issue about this and we can work from there with a new v3.3.15 build. |
I'm checking with the removed cookie and only using one cookie this time, completely unrelated and the captcha gets solved :/ Cannot reproduce the issue, so I guess your proposed solution to continue fixing this with another PR would work better... |
Is there any point using exactly POST method, because this website protected by deafault with IUAM. U can just re-use cf_clearance cookie in next request just by using exact same tls+ua+proxy |
If you use no cookies at all, just copy and pasting my example from #1065 (comment), only changing the proxy details, you get a page showing a search for |
That would make FlareSolverr redundant. |
Yeah, I see it now and I wonder how it worked previously 🤔 It could work if we would solve the captcha first, then make the post request But now what happens:
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Glad I'm not the only one who had it weirdly work one time but not another 😛 Fix coming shortly, just doing the last round of tests. |
Will merge this now, but unfortunately it won't close #1036. In the last few hours this PR (with or without my last commit) stopped being able to bypass the challenges on fanfiction.net and airbusan.com, but works on everything else I tested 🤷 (feel free to double-check, to make sure it's not just me) |
Fix for #1036