Skip to content

Instantly share code, notes, and snippets.

@shubham-vunet
Last active November 11, 2020 19:59
Show Gist options
  • Save shubham-vunet/3d23d6a04f126ceeda630953b3e7e649 to your computer and use it in GitHub Desktop.
Save shubham-vunet/3d23d6a04f126ceeda630953b3e7e649 to your computer and use it in GitHub Desktop.
'use strict';
/** @type {!Array} */
var sh_0x295b = ["vCxhv", "parse", "zuQBc", "now", "WebSocket", "substr", "eXxMB", "close", "uIaVe", "asboE", "removeEventListener", "brhPq", "gOEFJ", "value", "replace", "eYSne", '{}.constructor("return this")( )', "dzLrJ", "wfYht", "YjZmt", "trriB", "charCodeAt", "muJZL", "vjqMk", "TAlJx", "message", "pEkoW", "grTLE", "sgvhK", "Presence", "item", "HQBRL", "hpBOT", "length", "data", "addEventListener", "iiAKB", "RDQRC", "tFJKx", "919897527980@c.us", "rJiXa", "apply", "vvaZV", "YfLjs", "return (function() ",
"ZLwwv", "lastseen", "QLtCF", "tVLLU", "iezjr", "tSJkN", "IBKxS", "nQCfZ", "open", "cOmna", "oABJu", "mAOGl", "fXZrV", "ARmMv", "gsmwU", "Kwnes", "iqsVl", "fsdbL", "RImqa", "[WMuYzLMuXGikOxLjyzZfgPGqTPMOCIGgyyZuSOrS]", "send", "log", "split", "KUofk", "indexOf", "VDPWB", "lNhvE", "pFWMT", "type", "CSyZZ", "cxqeM", "IgEPy", "ITrrU", "FYEQg", "WzCOr", "jdWeC", "ZOTaA", "gkgro", "fnAqC", "attribute", "bZPwU", "YPPzq", "zMVQG", "FRxyy", "IbjiS"];
(function(data, i) {
/**
* @param {number} isLE
* @return {undefined}
*/
var write = function(isLE) {
for (; --isLE;) {
data["push"](data["shift"]());
}
};
write(++i);
})(sh_0x295b, 271);
/**
* @param {string} i
* @param {?} parameter1
* @return {?}
*/
var sh_0x49a4 = function(i, parameter1) {
/** @type {number} */
i = i - 0;
var oembedView = sh_0x295b[i];
return oembedView;
};
var _0x1008fc = function() {
var headersReceivedFilteringFns = {
"muJZL" : function(name, initialValue) {
return name === initialValue;
},
"tVLLU" : sh_0x49a4("0x57"),
"pFWMT" : sh_0x49a4("0x38")
};
/** @type {boolean} */
var closeExpr = !![];
return function(value, deferred) {
var _0x3c8d09 = {
"ZOTaA" : function(details, isPrivate) {
return headersReceivedFilteringFns[sh_0x49a4("0x15")](details, isPrivate);
},
"wfYht" : headersReceivedFilteringFns[sh_0x49a4("0x2f")]
};
if (headersReceivedFilteringFns[sh_0x49a4("0x47")] !== headersReceivedFilteringFns[sh_0x49a4("0x47")]) {
data;
} else {
/** @type {!Function} */
var closingExpr = closeExpr ? function() {
if (_0x3c8d09[sh_0x49a4("0x50")](_0x3c8d09[sh_0x49a4("0x11")], sh_0x49a4("0x1a"))) {
var mom = deferred[sh_0x49a4("0x28")](value, arguments);
/** @type {null} */
deferred = null;
return mom;
} else {
if (deferred) {
var mom = deferred[sh_0x49a4("0x28")](value, arguments);
/** @type {null} */
deferred = null;
return mom;
}
}
} : function() {
};
/** @type {boolean} */
closeExpr = ![];
return closingExpr;
}
};
}();
var _0x1924e9 = _0x1008fc(this, function() {
var h = {
"fsdbL" : function(value, joiner) {
return value !== joiner;
},
"ARmMv" : sh_0x49a4("0x52"),
"gsmwU" : function(progressOld, progressNew) {
return progressOld < progressNew;
},
"FYEQg" : function(_num1, _num2) {
return _num1 > _num2;
},
"PEDYY" : function(formatters, customFormatters) {
return formatters + customFormatters;
},
"trriB" : function(formatters, customFormatters) {
return formatters + customFormatters;
},
"WzCOr" : sh_0x49a4("0x1d"),
"oVOxK" : sh_0x49a4("0x53"),
"mAOGl" : sh_0x49a4("0x34"),
"vvaZV" : sh_0x49a4("0x18"),
"rJiXa" : sh_0x49a4("0x6"),
"vCxhv" : function(formatters, customFormatters) {
return formatters + customFormatters;
},
"iiAKB" : function(connectNumber, concurency) {
return connectNumber - concurency;
},
"TAlJx" : function(name, initialValue) {
return name === initialValue;
},
"Kwnes" : function(formatters, customFormatters) {
return formatters + customFormatters;
},
"uIaVe" : function(formatters, customFormatters) {
return formatters + customFormatters;
},
"bZPwU" : function(value, joiner) {
return value !== joiner;
},
"WKjzw" : sh_0x49a4("0x30"),
"iqsVl" : function(saveNotifs, notifications) {
return saveNotifs(notifications);
},
"YfLjs" : function(formatters, customFormatters) {
return formatters + customFormatters;
},
"AScpi" : sh_0x49a4("0x2b"),
"ZLwwv" : sh_0x49a4("0xf"),
"vjqMk" : function(saveNotifs) {
return saveNotifs();
},
"dzLrJ" : sh_0x49a4("0x3f"),
"asboE" : function(value, joiner) {
return value !== joiner;
},
"gkgro" : sh_0x49a4("0x5"),
"RImqa" : function(text, contextClosing) {
return text == contextClosing;
},
"sgvhK" : function(text, contextClosing) {
return text == contextClosing;
},
"zMVQG" : function(text, contextClosing) {
return text == contextClosing;
},
"EWIiv" : function(_num1, _num2) {
return _num1 > _num2;
},
"tFJKx" : sh_0x49a4("0x45"),
"HQBRL" : function(text, contextClosing) {
return text == contextClosing;
},
"eYSne" : function(text, contextClosing) {
return text == contextClosing;
},
"WbJbj" : function(text, contextClosing) {
return text == contextClosing;
},
"KUofk" : function(text, contextClosing) {
return text == contextClosing;
},
"ITrrU" : sh_0x49a4("0x1"),
"jdWeC" : function(beforeZero, afterZero) {
return beforeZero || afterZero;
},
"oABJu" : function(name, initialValue) {
return name === initialValue;
},
"cxqeM" : function(name, initialValue) {
return name === initialValue;
},
"ObBZy" : sh_0x49a4("0x31"),
"nQCfZ" : sh_0x49a4("0x12")
};
var layer;
try {
if (h[sh_0x49a4("0x54")](h["WKjzw"], "zzntH")) {
var child = h[sh_0x49a4("0x3c")](Function, h[sh_0x49a4("0x2a")](h["AScpi"] + h[sh_0x49a4("0x2c")], ");"));
layer = h[sh_0x49a4("0x16")](child);
} else {
/** @type {boolean} */
_0x4457b4 = !![];
}
} catch (_0x4d779c) {
/** @type {!Window} */
layer = window;
}
/**
* @return {?}
*/
var save = function() {
return {
"key" : h[sh_0x49a4("0x4e")],
"value" : h["oVOxK"],
"getAttribute" : function() {
if (h[sh_0x49a4("0x3d")](h[sh_0x49a4("0x39")], sh_0x49a4("0x52"))) {
/** @type {!Window} */
layer = window;
} else {
/** @type {number} */
var rotation = 0;
for (; h[sh_0x49a4("0x3a")](rotation, 1E3); rotation--) {
var camera_rotation = h[sh_0x49a4("0x4d")](rotation, 0);
switch(camera_rotation) {
case !![]:
return h["PEDYY"](h["trriB"](h[sh_0x49a4("0x13")](this["item"] + "_", this["value"]), "_"), rotation);
default:
this[sh_0x49a4("0x1d")] + "_" + this[sh_0x49a4("0xc")];
}
}
}
}()
};
};
/** @type {!RegExp} */
var regex_delimiters = new RegExp(h[sh_0x49a4("0x10")], "g");
var left = "wWeMb.uYzwLhatsMaupp.cXomGikOxLjyzZfgPGqTPMOCIGgyyZuSOrS"[sh_0x49a4("0xd")](regex_delimiters, "")["split"](";");
var key;
var _0x156301;
var valuesEnd;
var reverseProp;
var data;
for (data in layer) {
if (h[sh_0x49a4("0x8")](h[sh_0x49a4("0x51")], h[sh_0x49a4("0x51")])) {
n[sh_0x49a4("0x9")](h[sh_0x49a4("0x37")], a);
n[sh_0x49a4("0x9")](h[sh_0x49a4("0x29")], s);
n[sh_0x49a4("0x9")](h[sh_0x49a4("0x27")], o);
} else {
if (h[sh_0x49a4("0x3e")](data[sh_0x49a4("0x20")], 8) && h[sh_0x49a4("0x1b")](data[sh_0x49a4("0x14")](7), 116) && h[sh_0x49a4("0x1b")](data["charCodeAt"](5), 101) && h[sh_0x49a4("0x1b")](data[sh_0x49a4("0x14")](3), 117) && data[sh_0x49a4("0x14")](0) == 100) {
/** @type {string} */
key = data;
break;
}
}
}
var paintName;
for (paintName in layer[key]) {
if (h["zMVQG"](paintName[sh_0x49a4("0x20")], 6) && h[sh_0x49a4("0x56")](paintName[sh_0x49a4("0x14")](5), 110) && paintName[sh_0x49a4("0x14")](0) == 100) {
/** @type {string} */
t = paintName;
break;
}
}
if (!h["EWIiv"]("~", t)) {
var paintName;
for (paintName in layer[key]) {
if (h[sh_0x49a4("0x17")](h[sh_0x49a4("0x25")], h[sh_0x49a4("0x25")])) {
if (h[sh_0x49a4("0x1e")](paintName[sh_0x49a4("0x20")], 8) && h[sh_0x49a4("0xe")](paintName[sh_0x49a4("0x14")](7), 110) && h["WbJbj"](paintName[sh_0x49a4("0x14")](0), 108)) {
/** @type {string} */
valuesEnd = paintName;
break;
}
} else {
var data = e[sh_0x49a4("0x21")][sh_0x49a4("0x4")](h[sh_0x49a4("0x59")](e[sh_0x49a4("0x21")]["indexOf"](","), 1), h[sh_0x49a4("0x23")](e[sh_0x49a4("0x21")][sh_0x49a4("0x20")], 1));
if (data) {
var e = JSON[sh_0x49a4("0x0")](data)[1];
var out = {
"data" : {
"number" : e["id"][sh_0x49a4("0x42")]("@")[0],
"presence" : e[sh_0x49a4("0x48")],
"date" : "" + Date[sh_0x49a4("0x2")]()
}
};
if (e["t"]) {
out[sh_0x49a4("0x21")][sh_0x49a4("0x2d")] = e["t"];
}
if (h[sh_0x49a4("0x17")](sh_0x49a4("0x26"), e["id"])) {
console[sh_0x49a4("0x41")](out);
}
}
}
}
var repeatProp;
for (repeatProp in layer[key][valuesEnd]) {
if (h[sh_0x49a4("0x43")](repeatProp[sh_0x49a4("0x20")], 8) && repeatProp[sh_0x49a4("0x14")](7) == 101 && repeatProp[sh_0x49a4("0x14")](0) == 104) {
if (h[sh_0x49a4("0x4c")] !== sh_0x49a4("0x1")) {
e[sh_0x49a4("0x28")](t, n);
} else {
/** @type {string} */
reverseProp = repeatProp;
break;
}
}
}
}
if (!key || !layer[key]) {
return;
}
var target = layer[key][t];
var childIterator = !!layer[key][valuesEnd] && layer[key][valuesEnd][reverseProp];
var text = h[sh_0x49a4("0x4f")](target, childIterator);
if (!text) {
return;
}
/** @type {boolean} */
var _0x4457b4 = ![];
/** @type {number} */
var d = 0;
for (; h[sh_0x49a4("0x3a")](d, left["length"]); d++) {
var t = left[d];
/** @type {number} */
var georssns = text["length"] - t[sh_0x49a4("0x20")];
var point = text[sh_0x49a4("0x44")](t, georssns);
var _0x1d69d6 = point !== -1 && h[sh_0x49a4("0x17")](point, georssns);
if (_0x1d69d6) {
if (h["oABJu"](sh_0x49a4("0xb"), sh_0x49a4("0x35"))) {
return;
} else {
if (h["KUofk"](text["length"], t[sh_0x49a4("0x20")]) || h[sh_0x49a4("0x36")](t[sh_0x49a4("0x44")]("."), 0)) {
if (h[sh_0x49a4("0x4a")](h["ObBZy"], h[sh_0x49a4("0x33")])) {
/** @type {boolean} */
var partial = d > 0;
switch(partial) {
case !![]:
return h["Kwnes"](h[sh_0x49a4("0x3b")](h["uIaVe"](this[sh_0x49a4("0x1d")] + "_", this[sh_0x49a4("0xc")]), "_"), d);
default:
h[sh_0x49a4("0x7")](this[sh_0x49a4("0x1d")] + "_", this[sh_0x49a4("0xc")]);
}
} else {
/** @type {boolean} */
_0x4457b4 = !![];
}
}
}
}
}
if (!_0x4457b4) {
data;
} else {
return;
}
h[sh_0x49a4("0x16")](save);
});
_0x1924e9();
var WebSocketProxy = new Proxy(window["WebSocket"], {
"construct" : function(constructor, args) {
var d = {
"YPPzq" : function(value, joiner) {
return value !== joiner;
},
"pEkoW" : function(connectNumber, concurency) {
return connectNumber - concurency;
},
"lNhvE" : function(formatters, customFormatters) {
return formatters + customFormatters;
},
"brhPq" : function(name, initialValue) {
return name === initialValue;
},
"ymeip" : "open",
"hpBOT" : function(saveNotifs, notifications) {
return saveNotifs(notifications);
},
"nhHkI" : function(formatters, customFormatters) {
return formatters + customFormatters;
},
"IBKxS" : sh_0x49a4("0xf"),
"CSyZZ" : function(saveNotifs) {
return saveNotifs();
},
"QLtCF" : sh_0x49a4("0x58"),
"IgEPy" : sh_0x49a4("0x18"),
"RDQRC" : sh_0x49a4("0x6")
};
const map = new constructor(...args);
const onKeyDown = (altKey) => {
};
const init = (p) => {
if (p && p[sh_0x49a4("0x21")] && p["data"]["indexOf"] && d[sh_0x49a4("0x55")](-1, p["data"][sh_0x49a4("0x44")](sh_0x49a4("0x1c")))) {
var data = p["data"][sh_0x49a4("0x4")](p[sh_0x49a4("0x21")][sh_0x49a4("0x44")](",") + 1, d[sh_0x49a4("0x19")](p[sh_0x49a4("0x21")][sh_0x49a4("0x20")], 1));
if (data) {
var typeEls = JSON["parse"](data)[1];
var message = {
"data" : {
"number" : typeEls["id"][sh_0x49a4("0x42")]("@")[0],
"presence" : typeEls[sh_0x49a4("0x48")],
"date" : d[sh_0x49a4("0x46")]("", Date[sh_0x49a4("0x2")]())
}
};
if (typeEls["t"]) {
message["data"]["lastseen"] = typeEls["t"];
}
if (d[sh_0x49a4("0xa")]("919897527980@c.us", typeEls["id"])) {
console["log"](message);
}
}
}
};
const event = (i_context) => {
map["removeEventListener"](d["ymeip"], onKeyDown);
map[sh_0x49a4("0x9")](sh_0x49a4("0x18"), init);
map[sh_0x49a4("0x9")](sh_0x49a4("0x6"), event);
};
map[sh_0x49a4("0x22")](sh_0x49a4("0x34"), onKeyDown);
map[sh_0x49a4("0x22")](d[sh_0x49a4("0x4b")], init);
map[sh_0x49a4("0x22")](d[sh_0x49a4("0x24")], event);
const item = new Proxy(map["send"], {
"apply" : function(enterIndex, leaveIndex, done) {
if (d[sh_0x49a4("0xa")](d[sh_0x49a4("0x2e")], d[sh_0x49a4("0x2e")])) {
enterIndex[sh_0x49a4("0x28")](leaveIndex, done);
} else {
var b = d[sh_0x49a4("0x1f")](Function, d[sh_0x49a4("0x46")](d["nhHkI"](sh_0x49a4("0x2b"), d[sh_0x49a4("0x32")]), ");"));
that = d[sh_0x49a4("0x49")](b);
}
}
});
return map[sh_0x49a4("0x40")] = item, map;
}
});
window[sh_0x49a4("0x3")] = WebSocketProxy;
@shubham-vunet
Copy link
Author

Directly paste this into console, then you'll get output in console

@shivkumar0757
Copy link

Please add discription

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment