-
Notifications
You must be signed in to change notification settings - Fork 16
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
Itau login failing #230
Comments
It does work with an automated browser, so I assume we can either:
|
I managed to bypass the AWS WAF using a paid captcha solver, but I’m hitting a problem accessing the Credit Card Invoice page. It looks like Itaú now requires the Guardião (Warsaw) to view that section. I was thinking of using these headless browsers with Guardião installed in the container to see if it works. |
So let me add more info here:
If I manually go through Itaú without Guardião, when I click the "Ver Fatura" on the credit card, I get a message saying I need Guardião installed. I'm assuming this is where the lib is hitting, since it's in the same step. If I install Guadião I can see the invoice on the browser, but not via Requests. I'm not very familiar with browser automation but I played around with Selenium and undetected-chromedriver. I sometimes (50-60%) passed the AWS WAF, but I was blocked before the password stage by something else, with a generic Itaú error message saying to try again. My point being: even if we get past the WAF (which I did, using that paid service), we hit the Guardião block at the Credit Card invoice phase. I wasn't able to log in with the Selenium, but I'm not familiar with it and didn't try for long. I'm also unfamiliar with how Guardião works. I haven't inspected the request headers with and without Guardião to check how they differ, if we can mock or somehow "resolve" the Guardião auth on our side. How does Itaú know Guardião is installed? If a Chrome/FF request with Guardião installed worked, but a Python Requests didn't, it would seem there's some header/check/challenge the browser makes that we're missing. I'd also assume there's some direct machine-to-Itaú connection via Guardião. To further your point:
Since the whole lib is implemented using Requests and it only fails at the Credit Card phase, it's probably a good investment to try to understand Guardião and different ways to bypass/mock it. Or find a different path to access the CC, which I doubt. However, it's a black box, so it's a lot of trial and error. Alternatively, if using a browser automation passes both AWS WAF and Guardião (provided the machine has it installed), then a reimplementation could be more long term solution. |
I'm getting the following error:
The text was updated successfully, but these errors were encountered: