Created
June 23, 2022 04:00
-
-
Save kamaravichow/49247e3dfdec5e3c3124ab66a13ddd3d to your computer and use it in GitHub Desktop.
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
"use strict"; | |
function deobf() { | |
try { | |
var e = document.getElementById("in").value; | |
if ("" === e) throw "Empty"; | |
document.getElementById("out").value = ""; | |
var f = e.match(/\+CVars=([\S]+)/g); | |
if (null === f) throw "No matching parameters were found"; | |
f = f.map(function(a) { | |
return a.slice(7) | |
}); | |
for (var g = 0; g < f.length; g++) { | |
for (var a, b = f[g], c = "", d = 0; d < b.length; d += 2) { | |
if (a = in_arr.indexOf(b.slice(d, d + 2)), -1 === a) throw "Unknown symbol: " + b.slice(d, d + 2); | |
c += out_arr[a] | |
} | |
e = e.replace(b, c) | |
} | |
document.getElementById("out").value = e | |
} catch (a) { | |
alert(a) | |
} | |
} | |
function obf() { | |
try { | |
var e = document.getElementById("out").value; | |
if ("" === e) throw "Empty"; | |
document.getElementById("in").value = ""; | |
var f = e.match(/\+CVars=([\S]+)/g); | |
if (null === f) throw "No matching parameters were found"; | |
f = f.map(function(a) { | |
return a.slice(7) | |
}); | |
for (var g = 0; g < f.length; g++) { | |
for (var a, b = f[g], c = "", d = 0; d < b.length; d++) { | |
if (a = out_arr.indexOf(b.slice(d, d + 1)), -1 === a) throw "Unknown symbol: " + b.slice(d, d + 1); | |
c += in_arr[a] | |
} | |
e = e.replace(b, c) | |
} | |
document.getElementById("in").value = e | |
} catch (a) { | |
alert(a) | |
} | |
} | |
var in_arr = ["57", "44", "49", "48", "4B", "4A", "4D", "4C", "4F", "4E", "41", "40", "18", "38", "1B", "3B", "1A", "3A", "1D", "3D", "1C", "3C", "1F", "3F", "1E", "3E", "11", "31", "10", "30", "13", "33", "12", "32", "15", "35", "14", "34", "17", "37", "16", "36", "09", "29", "08", "28", "0B", "2B", "0A", "2A", "0D", "2D", "0C", "2C", "0F", "2F", "0E", "2E", "01", "21", "00", "20", "03", "23", "26"], | |
out_arr = [".", "=", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "A", "b", "B", "c", "C", "d", "D", "e", "E", "f", "F", "g", "G", "h", "H", "i", "I", "j", "J", "k", "K", "l", "L", "m", "M", "n", "N", "o", "O", "p", "P", "q", "Q", "r", "R", "s", "S", "t", "T", "u", "U", "v", "V", "w", "W", "x", "X", "y", "Y", "z", "Z", "_"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment