Giter VIP home page Giter VIP logo

Comments (11)

RyuzakiH avatar RyuzakiH commented on August 30, 2024 1

Added 2Captcha in version 1.1.4.
Try it, and tell me if there's any problem.

from temp-mail-api.

RyuzakiH avatar RyuzakiH commented on August 30, 2024

Website just used cloudflare, I'll try to update it today.

from temp-mail-api.

RyuzakiH avatar RyuzakiH commented on August 30, 2024

Bypassed Cloudflare protection in version 1.1.3 .

from temp-mail-api.

antonioalopezfernandez avatar antonioalopezfernandez commented on August 30, 2024

Still happening, any ideas?

from temp-mail-api.

RyuzakiH avatar RyuzakiH commented on August 30, 2024

I tested it and it works good for me.
The problem that made that exception is the website uses cloudflare which uses two types of challenges.
One is javascript challenge and the other one is reCaptcha so the problem happens if it's a captcha or your IP is banned, the javascipt one can be solved easily.
I use this library CloudflareSolver to bypass cloudflare, it provides the fail reason if any of the two previous problems happen.
It provides solving the captcha challenge if you provided a 2Captcha key (it's not free).
I'll throw a descriptive exception telling if it needs 2captcha key or your IP is banned if there's a problem.
If the problem is your IP so you should change it.
I'll add the new exception to make it more clearer (my bad) today.
Until I update it try it using another IP to see if this is the problem.

from temp-mail-api.

antonioalopezfernandez avatar antonioalopezfernandez commented on August 30, 2024

from temp-mail-api.

antonioalopezfernandez avatar antonioalopezfernandez commented on August 30, 2024

Hi,

I'm afraid there is a different error now:

Cloudflare.CloudflareException: Cloudflare (JS): response cookie not found
en TempMail.API.Client.StartNewSession()

The code:

        static void Main(string[] args)
        {
            if (Environment.Is64BitOperatingSystem)
            {
                PrepararEntornoWin64();

                var client = new Client();
                client.StartNewSession();

                Console.WriteLine(client.Email);
            }
        }

I've tried this and previous version from two different IP's.

from temp-mail-api.

RyuzakiH avatar RyuzakiH commented on August 30, 2024

It's an exception related to CloudflareSolver library, but it doesn't happen with me so I can't debug it, so I'll need your help.

Have you tried opening the site in browser just to make sure it's not an IP problem.
Then tell me if the response contains the below text or not (having captcha for example):

Checking your browser before accessing temp-mail.org.
This process is automatic. Your browser will redirect to your requested content shortly.
Please allow up to 5 seconds…

Another way is:
Try using Hotspot Shield (it ran successfully for me).

Try these and keep me updated.
I hope we can solve it.

from temp-mail-api.

antonioalopezfernandez avatar antonioalopezfernandez commented on August 30, 2024

Response contains that text, it lasts 5 seconds to get to my mail account. However, I'd prefer not to use a VPN (i'm trying to get some stuff working for everyone, not just for us).

Thank you in advance.

from temp-mail-api.

RyuzakiH avatar RyuzakiH commented on August 30, 2024

Since it's a CloudflareSolver problem, so I think it's Jint (Javascript engine that parses the JS challenge and solve it).
I'm saying Jint as this library only depends on 3 libraries:

  • Newtonsoft.Json
    it can't be it I think.
  • 2CaptchaAPI
    you don't use a 2captcha api key.
  • Jint
    maybe Jint interprets JS differently on different machines.

I'm just thinking with you, what about your OS?

from temp-mail-api.

RyuzakiH avatar RyuzakiH commented on August 30, 2024

If you have some time, can you use fiddler and run your code again.
Only 3 requests are issued, the first two are what we need.

  1. GET request to temp-mail returns 503 Service Temporarily Unavailable
  2. GET request to https://temp-mail.org/cdn-cgi/l/chk_jschl?s=S&jschl_vc=JSCHL_VC&pass=PASS&jschl_answer=JSCHL_ANSWER returns 302 Moved Temporarily
    with the 4 capitalized words replaced with other values.

I need you to send me the responses of the previous two requests (response heades and body).
I'll run them on my machine and compare to identify which part is leading to that error.

from temp-mail-api.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.