bro they're saying buttons got patched okay let's talk about this because I have a few words to share regarding how we managed to figure out the patches for buttons for a while two months and then how meta was able to patch it and just explain a bit more regarding the end to end encryption so let's get to explaining this [Music] first off only the message body of the message is actually encrypted this is very important because if the message body is encrypted that means the WhatsApp servers cannot intercept our message and deny us the right to send this message and they cannot even inspect the contents of the message because it's the only part that's encrypted let's explain this and I'll get started by saying that over here is the contents of our message and that is encrypted that is a unit array or a buffer in node. js if you're familiar with that and that's the encrypted tag so it will look a little different in XML but this is like a Json representation of XML it's a very weird implementation thank you WhatsApp we can see all the attributes over here all of these are not encrypted when it comes to validation and actually including different types or different versions of said interactive message so let's talk about list messages we're talking about bottom messages we're talking about templates we're talking about interactive messages all of those they make use of this highlighted box over here this guy and it has the business attribute over here as we can see this example specifically I use the 360 dialogue The Sandbox to create this button message and over here I've learned all this out so uh meta you cannot Trace anything back yeah you can't get my phone number this is an added tag to our body so our encrypted message let's remember is over here okay this is where it stands I'm very bad at choosing drawing software so just excuse me you can make use of this in our client code but not on the server level when WhatsApp wants to validate or build the user build the business itself or the conversations and the contents of this is buttons over here this is usually the type of interactive message so this could be buttons or a buttons message I use will quickly and it could be a list or it was if it was a list and it would include some attributes regarding which version of lists it was I presume that they have different versions for it and that's why they have those attributes that's it we've explained the structure of the official message so there's this business tag and inside of it there are the attributes for the WhatsApp business API related stuff and the contents of it declares which type of interactive message this is and is very important because if we take a look at the web source code and verify that in the devtools console and you'll be able to practically read it you will be able to verify that this is actually used this is needed this extra information is needed to properly parse the message and without it it will not get you the message itself will get sent but it will not give you so that's the thing of it that's the thing about it it's a very peculiar thing as we know over here the only reason it's worked on personal numbers this workaround that we had what we did was add this business load it was not there and we added it and look so we can take a look at the fix right now we over here we have this function called inject to function and this function I just kind of thought hey we want to inject to a lot of functions we have to append to a lot of functions and the way I got this inspiration was I was looking at Minecraft mods and how they actually Implement their modding the way they do that is just they hook into already existing functions wrap around them so that their function like they just replace this big function with a small function containing the real like the old code and then they have their added code right under so this is the real original code you have your added payload over here and this is the big function for dating everything what happens here is all new calls to this module to this function in this module will then go to my callback which I add over here if you take a look and everything that I do gets executed uh so that you know look this is the original function I executed I. E return the protobuf that is generated because I'm hoping to create message for the box over here over here we also hope to message protobuf again but here we had a little delay to do it so a lot of time out if you can take a look over here but now it's commenting out because of our new fix but what it used to do was just wrap it in a view once message so what happened was at first it was running fine we were growing for two years straight sending buttons templates lists Etc and then once that came around you just hit it and it endless interface or that and so what happened when I hit us in the face like that we had to just use this workaround which is putting the button message in our interview once message to hide it to hide it from the client and so when the client is parsing this review Once message and it's extracting it and extrapolating all the information from it it does not account or put in account the business attribute and all that stuff it just does not touch it so it works it worked and it worked for a bit it worked so this is where we get to the meat of the things this is the new fix this is the experimental fix that came out for two days and just disappeared and it just didn't work anymore this is where we get to explaining the cool stuff that all of you have been waiting a lot of time for okay so let's open up web.
whatsapp. com now I can go to window.