Skip to content

Instantly share code, notes, and snippets.

@Wh1terat
Wh1terat / deob.js
Last active May 30, 2023 04:36
Incapsula JS Deobfuscator (obfuscator.io) - JS
#!/usr/bin/env node
var fs = require('fs');
var esprima = require('esprima');
var escodegen = require('escodegen');
var estraverse = require('estraverse');
var debug = true;
var rename = true;
var stringrotatefunc = `
(function (array, times) {
@stjohnjohnson
stjohnjohnson / decoded.js
Last active September 18, 2020 10:06
USPS Obfusticated Login Code
<script>
var bundle;
(function() {
function a(b) {
var c = "";
for (var d = 0, e = b.length; d < e; ++d) {
var f = b.charCodeAt(d);
c += f >= 55296 ? b[d] : String.fromCharCode((f + 55296 - 6858) % 55296)
}
return c