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

setting up OAuth2 #25

Open
JackSparrowf9 opened this issue Aug 29, 2024 · 13 comments
Open

setting up OAuth2 #25

JackSparrowf9 opened this issue Aug 29, 2024 · 13 comments

Comments

@JackSparrowf9
Copy link

It's work like a charm.

Can you add more function to setting up OAuth2 for reading email with OAuth2 Imap

@cimuxy
Copy link

cimuxy commented Aug 31, 2024

what is the proxy provider you used ?

@JackSparrowf9
Copy link
Author

@cimuxy I use 4G proxy

@cimuxy
Copy link

cimuxy commented Sep 2, 2024

@JackSparrowf9 Thank you, I'm trying to find a good captcha service for the FunCaptcha but I can't find a good one

Also, I'm working on setting up the mailbox to read the messages and I have finished like 80% of the project but the only problem in the meantime is the solving service after CAPBYPASS has been down, I updated the script to support 2Captcha, AntiCaptcha but both needs around 2 minutes for each captcha to be solved, if you can recommend any solving service this will be really appreciated

        elif config['solver'] == "ANTICAPTCHA":
            parts = proxy.split('@')
            if len(parts) == 2:
                user_pass, ip_port = parts
                proxy = f"{ip_port}:{user_pass}"
            apiKeyyy = config['capKey']
            payload = {
                "clientKey": apiKeyyy,
                "task": {
                    "type": "FunCaptchaTask",
                    "websiteURL": "https://signup.live.com",
                    # "funcaptchaApiJSSubdomain": "optional-api-subdomain-here.arkoselabs.com",
                    "data": "{\"blob\":\"" + arkoseBlob + "\"}",
                    "websitePublicKey": "B7D8911C-5CC8-A9A3-35B0-554ACEE604DA",
                    "proxyType": "http",
                    "proxyAddress": f"{ip_port.split(':')[0]}",
                    "proxyPort": int(ip_port.split(':')[1]),
                    "proxyLogin": f"{user_pass.split(':')[0]}",
                    "proxyPassword": f"{user_pass.split(':')[1]}",
                }
            }

            result = requests.post("https://api.anti-captcha.com/createTask", json=payload)
            # print(result.text)
            task_id = result.json()["taskId"]
            payload = {"taskId": task_id, "clientKey": apiKeyyy}
            while True:
                result = requests.post("https://api.anti-captcha.com/getTaskResult", json=payload)
                data = result.json()
                # print(data)
                if data['errorId'] != 0:
                    return None
                elif data["status"] != "ready":
                    continue
                capkey = data["solution"]['token']
                return capkey


        elif config['solver'] == "2CAPTCHA":
            parts = proxy.split('@')
            if len(parts) == 2:
                user_pass, ip_port = parts
                proxy = f"{ip_port}:{user_pass}"
            apiKeyyy = config['capKey']
            payload = {
                "clientKey": apiKeyyy,
                "task": {
                    "type": "FunCaptchaTaskProxyless",
                    "websiteURL": "https://signup.live.com",
                    "websitePublicKey": "B7D8911C-5CC8-A9A3-35B0-554ACEE604DA",
                    "data": "{\"blob\":\"" + arkoseBlob + "\"}",
                }
            }

            result = requests.post("https://api.2captcha.com/createTask", json=payload)
            # print(result.text)
            task_id = result.json()["taskId"]
            payload = {"taskId": task_id, "clientKey": apiKeyyy}
            while True:
                result = requests.post("https://api.2captcha.com/getTaskResult", json=payload)
                data = result.json()
                # print(data)
                if data['errorId'] != 0:
                    return None
                elif data["status"] != "ready":
                    continue
                capkey = data["solution"]['token']
                return capkey

@JackSparrowf9
Copy link
Author

JackSparrowf9 commented Sep 6, 2024

@cimuxy I still use CAPBYPASS sometime it solver very fast but most of time it failed to solver the task, I still find other provider, does 2Captcha and AntiCaptcha work well? even if take 2 minutes to solver but if success rate is high you can spawn script to 10 thread to run in parallel

@ololzutu
Copy link

ololzutu commented Sep 7, 2024

@JackSparrowf9 @cimuxy To fix issues with CAPBYPASS please open main.py, search for 125.0.0.0 and replace all occurences with 128.0.0.0. When using cap solvers always keep your user agents up-to-date!

Also consider increasing the timeout at the bottom of main.py, sometimes CAPBYPASS is just slow.

@JackSparrowf9
Copy link
Author

Hi @cimuxy Do you find any good captcha provider? @ololzutu what captcha provider do you use now? CAPBYPASS not work anymore

@minhnvl
Copy link

minhnvl commented Oct 1, 2024

I also use CAPBYPASS, but it not work. Do you have any other solution for bypass Captcha? @ololzutu @JackSparrowf9 @cimuxy

@newQne
Copy link

newQne commented Oct 9, 2024

I can provide a permanent and fast bypass solution that solves it in 10-15 seconds. My Discord address is newqne, please reach out to me. @ololzutu @JackSparrowf9 @cimuxy @minhnvl

@eduisil
Copy link

eduisil commented Oct 10, 2024

I tried with 2Captcha but it returned:

{'errorId': 12, 'errorCode': 'ERROR_CAPTCHA_UNSOLVABLE', 'errorDescription': 'Workers could not solve the Captcha'}

Does anyone know any other alternative for Funcaptcha?

@szsyzx
Copy link

szsyzx commented Nov 16, 2024

@cimuxy, did you read the e-mail message and write it?

@szsyzx
Copy link

szsyzx commented Nov 16, 2024

@JackSparrowf9 OAuth2 开通这项功能你完成了吗

@szsyzx
Copy link

szsyzx commented Nov 20, 2024

How to implement this function of OAuth2?

@cblberlin
Copy link

How to implement this function of OAuth2?

TG @cblberlin 联系我

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

8 participants