WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
3.63k stars 1.23k forks source link

Debunk WebSocket Messages #943

Closed kaykyr closed 1 month ago

kaykyr commented 1 month ago

Hey guys! Long time ago, I remember the original Baileys repo had a script to debunk WebSocket Messages from WhatsAppWeb by passing a .har file (exported on Chrome Dev Tools, for example). Is this still working? How can I do that? Sometimes I want to contribute but I don't have a way to debunk the WS Binary Messages.

hacxk commented 1 month ago

if(!window.encodeBack){
  window.encodeBack = require("WAWebSendMsgCommonApi").encodeAndPad;
}

require("WAWebSendMsgCommonApi").encodeAndPad = (a) => {
  let result = window.encodeBack(a);

  console.log(a);
  return result
}

When u paste this on your browser console you can see messages (Only Yours)