Skip to content

Instantly share code, notes, and snippets.

View brunoaduarte's full-sized avatar

Bruno Duarte brunoaduarte

View GitHub Profile
@brunoaduarte
brunoaduarte / monitor.js
Last active July 15, 2024 17:37 — forked from PurpShell/monitor.js
Monitor Socket messages on 2.3000x and above
if (!window.decodeBackStanza) {
window.decodeBackStanza = require("WAWap").decodeStanza;
window.encodeBackStanza = require("WAWap").encodeStanza;
}
function byteArrayToHex(byteArray) {
return Array.from(byteArray).map(byte => byte.toString(16).padStart(2, '0')).join('');
}
function isAscii(byteArray) {