-
Notifications
You must be signed in to change notification settings - Fork 48
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
Unable to authenticate #9
Comments
i was also unable to authenticate too. |
How do you generate that value? |
I started having this issue today as well. Here is the new source code, still cannot figure out where that value is coming in: https://gist.github.com/mjgerace/ae144c6bcf434c68cf85f1b686d3ce83 |
i think keyworld 'NST' or 'token' |
I would agree, although I cannot figure out what this means in the context of that file. |
I am investigating the 'h' business now. This is really interesting, as is your find. What is the name of that file? |
just bet365 mainpage source no another file |
I am stumped, will revisit this tomorrow. |
Any thoughts? Since last night, I have been trying to figure out how they can form this parameter. |
I'm gunna look at it later |
difficult.. |
I figure out what is the '???' in "P + session_id + '????'"。 And, you get two string about nstToken from response of "https://www.288-365.com"。As show in picture. Then, you bind two string with dot , after that, use B365SimpleEncrypt.decrypt() function decrypt the string( PHP Code I use), as follow: you will calculate "????", which is the surffix value of handshake message of wss of "wss://premws-pt3.365lpodds.com/zap/"。 And I also find out in request "wss://pshudws.365lpodds.com/zap/", you may get another string looks like the nstToken in request "wss://premws-pt3.365lpodds.com/zap/"。 If you work on the string with B365SimpleEncrypt.decrypt(), you will get the result of upstream "command" message in request "wss://premws-pt3.365lpodds.com/zap/". But, even I have done this all, I can not receive valid match data. Do you have any more brain holes? |
You have made it further than I did. I did the regex part like this in python. Please note d_value here is NOT ??? by your logic, I am not running decrypt on it.
To get the nstToken (pre-decryption), but you are drawing important correlations between the values. My initial assumption was that this value was the D value, but after seeing your response, it is clear it is not. Also worth noting: boot.nst value changes dynamically without refreshing the page. Just view the source a couple of times and see it continuously change. |
@mjgerace You know: "boot.nst( "str1", "str2" )" |
I was just pointing out that the value seems to change repeatedly. IE, the nst ("str1", "str2") changes if you inspect the page source without refreshing (dynamically). |
@mjgerace And I paste the code of B365SimpleEncrypt, you can transfer it to python: When you get any progress, please inform us. thanks |
php b365simpleEncrypt source can i get that? |
They changed |
@otac0074 some samples as follow: |
This is the Python version for the decrypt function, guys |
yes, but no receive data.. |
We should investigate on the second socket connection. My assumption is that there's a red-light semaphore for receiving messages from the first socket until the second socket fires the message. Edit |
Is there still no response? |
Stll no response. I am investigating on other variables. I am performing my tests on bet365.it |
dont give up, me to try if possible, tell me please |
I will resume attempts tonight as well, in like 10 hrs (I am EST timezone). One thing to peak at is |
Yes. I think NST is a shorthand for Net Sync Term. |
@HMaker: Nice work getting there. A question: Which part of the NST token is the b64 encoded expiry time? |
@HMaker Thanks for the thorough explanation! Probably easier to go through the whole auth flow again using an arbitrarily short expiry. |
|
@HMaker Not in my experience.. the PSTK expiry can be set to 12 hours in your settings, and I don't think the NST token has an expiry per se, once you successfully authenticate with a socket and get a response you should be good to use it for it's lifetime. |
After open the websocket and send every second the message \x16\x006V' + EVENT_ID + '\x01' the websocket stop receiving messages about 40 seconds. Anybody has the same issue? |
Yes, I was thinking about that too, we should make a discord server. |
You are sending repeated subscription messages? Messages starting with the byte 22 (\x16) means subscription. Generally bet365's frontend does batch subscription by joining several topics separated by commas. |
I've created a discord for further discussion. Please join and indicate your github username: https://discord.gg/NsSRzJk |
I was wondering if you can subscribe to multiple events at once or you'll need to unsubscribe before subscribing to the another. \x16 for subscribe and \x17 |
I sent topics separated by commas and it closes in the same way. I think bet365 websocket has some mechanism to detect if I flood sending messages..?
I haven't seen any unsubscribe messages at the moment.. |
@marc6691 If you were to visit multiple events on the browser, search the websocket stream for \x17, and you'll see that each time you move to a new event the old one was unsubscribed. |
I share my code, but it stops receiving messages after a while. https://github.com/marc6691/bet365-websocket/blob/master/bet365.py |
@marc6691 you need to connect to the other socket too. If you observe the websocket in Chrome Dev Tools, you'll notice it connects to two different sockets and sends the handshake code to both of them. I will share that code with you when I get to my computer. |
Look at this and you'll figure it out. |
Well bet365 changed the token code and broke its evaluation in nodejs, but it is still possible to generate the token with nodejs. |
I discovered that today, and have been trying to figure out how to extract the new code. Strangely the old code pattern can still be calculated but it is doesn't get the websocket authorized. Have you solved the new issue? |
I am able to do it. They changed the code a little but it is still possible to do the reverse engineering, extract only the needed token code and evaluate it with NodeJS. |
Hello, |
has anyone faced the problem of using chromedriver & selenium in the last couple of days? |
I have similar problem. @velafrys do you decided problem? |
Hi, have no problem to get in-live data via socket, can anybody help, please? |
hi I also encountered the same problem, did you solve it? |
Hello, no
let keep us in touch :)
…------ Original Message ------
From: "hilong" ***@***.***>
To: "Chiang97912/bet365.com" ***@***.***>
Cc: "ihor2005" ***@***.***>; "Comment"
***@***.***>
Sent: 6/9/2021 10:49:30 AM
Subject: Re: [Chiang97912/bet365.com] Unable to authenticate (#9)
>Hi, have no problem to get in-live data via socket,
>but i have problem with decoding PRELIVE odds, they encode odds, like
>"OD=5(>;|"
>
>can anybody help, please?
>
hi I also encountered the same problem, did you solve it?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUJJUXCK7XRHDXVPBBMHQELTR4TJVANCNFSM4K7WZJ5A>.
|
@ihor2005 would you mind to give some tips to get in-live via socket? Not all the details only the steps. Thank you |
my skype is cirle__50
------ Original Message ------
From: "Daniel Andújar" ***@***.***>
To: "Chiang97912/bet365.com" ***@***.***>
Cc: "ihor2005" ***@***.***>; "Mention"
***@***.***>
Sent: 6/23/2021 4:58:24 PM
Subject: Re: [Chiang97912/bet365.com] Unable to authenticate (#9)
***@***.*** <https://github.com/ihor2005> would you mind to give some
…tips to get in-live via socket? Not all the details only the steps.
Thank you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUJJUXGPQYZPOZBYWHXL7E3TUHZBBANCNFSM4K7WZJ5A>.
--
This email has been checked for viruses by AVG.
https://www.avg.com
|
You figured this out yet? |
i think this problem
bet365 update..
P + session_id + '????'
added
The text was updated successfully, but these errors were encountered: