Skip to content

Instantly share code, notes, and snippets.

@omakmoh
omakmoh / spoof-deafen.js
Created October 20, 2021 23:58
The code used for spoof mute/deafen in Discord PC
var text = new TextDecoder("utf-8");
WebSocket.prototype.original = WebSocket.prototype.send;
WebSocket.prototype.send = function(data) {
if (Object.prototype.toString.call(data) === "[object ArrayBuffer]") {
if (text.decode(data).includes("self_deaf")) {
console.log("Exploit done.");
data = data.replace('"self_mute":false', 'dummydata');
}
}