Skip to content

Instantly share code, notes, and snippets.

@KB1RMA
Last active December 31, 2015 06:49
Show Gist options
  • Save KB1RMA/7950328 to your computer and use it in GitHub Desktop.
Save KB1RMA/7950328 to your computer and use it in GitHub Desktop.
function xViewState() {
var a = 0,
x = [
'9091968376',
'8887918192818786347374918784939277359287883421333333338896',
'877886888787',
'949990793917947998942577939317'
],
l = x.length,
m, v, t, z;
while (++a <= l) {
m = x[l - a];
t = z = '';
for (v = 0; v < m.length;) {
t += m.charAt(v++);
if (t.length == 2) {
z += String.fromCharCode(parseInt(t) + 25 - l + a);
t = '';
}
}
x[l - a] = z;
}
console.log(x);
document.write('<' + x[0] + ' ' + x[4] + '>.' + x[2] + '{' + x[1] + '}</' + x[0] + '>');
}
xViewState();
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="test.js"></script>
<style undefined="">.nemonn{position:absolute;top:-9999px}</style>
</head>
<body>
</body>
</html>
["style", "position:absolute;top:-9999px", "nemonn", "type='text/css'"]
@chrissnell
Copy link

General consensus is that simply removing the obfuscated JS won't fix it. They'll come back.

OMG, I hate Wordpress! :)

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