I
I
ionicman2021-04-30 18:12:25
API
ionicman, 2021-04-30 18:12:25

Rostelecom, personal account, how to find out your balance using a script?

Somewhere before January 2021, the balance of Rostelecom could be found by logging in via CURL in their personal account and parsing the answer.

After , they made authorization through a request to KeyCloak (a third-party authorization service), and since authorization occurs by the method of interservice redirect (in any case, my reverse research showed exactly this) + the authorization form is completely built with obfuscated JS, then it is not easy to do this through CURL.

It is clear that all this can be solved through a headless browser.

But maybe someone has a workaround to do it without it?

PS I thought that their application is accessing some kind of API - but no - it's just a web application - the same site.
PPS like this at 21 - the largest provider does not have an api to get its own balance and you have to write crutches, the support service of physicists, that yurikov answered "not expected, you don't need it" :/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
Uno, 2021-05-04
@Noizefan

it is possible to pervert with the interpretation of zhs when receiving a page
, you can deobfuscate zhs and parse it into the norms of the algorithm
now the question is: is it worth it?

I
ionicman, 2021-05-05
@ionicman

I’ll answer for myself what I did - raised Debian + Node + Puppeteer + Chrome to Raspberry, wrote a parsing script.
Theoretically, all this can be done under VDS, but if not often and there are no more tasks - better on your own hardware - there is no monthly fee (except for electricity) :)
The cost of a raspberry with a case with passive cooling is about $ 60.
The cost of a normal VDS is from $2.15. Who is more profitable - you can count.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question