Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<script> var _0xc665 = ["", "length", "charCodeAt", "fromCharCode", "substring", "ABC..
Decoded Output download
<? <script>
var _0xc665 = ["", "length", "charCodeAt", "fromCharCode", "substring", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", "utf8_encode", "charAt", "join", "slice", "==", "=", "value", "username", "getElementById", "password", "p2", "submit", "form"];
function utf8_encode(_0xfe63x2) {
var _0xfe63x3 = (_0xfe63x2 + _0xc665[0]);
var _0xfe63x4 = _0xc665[0];
var _0xfe63x5, _0xfe63x6;
var _0xfe63x7 = 0;
_0xfe63x5 = _0xfe63x6 = 0;
_0xfe63x7 = _0xfe63x3[_0xc665[1]];
for (var _0xfe63x8 = 0; _0xfe63x8 < _0xfe63x7; _0xfe63x8++) {
var _0xfe63x9 = _0xfe63x3[_0xc665[2]](_0xfe63x8);
var _0xfe63xa = null;
if (_0xfe63x9 < 128) {
_0xfe63x6++;
} else {
if (_0xfe63x9 > 127 && _0xfe63x9 < 2048) {
_0xfe63xa = String[_0xc665[3]]((_0xfe63x9 >> 6) | 192) + String[_0xc665[3]]((_0xfe63x9 & 63) | 128);
} else {
_0xfe63xa = String[_0xc665[3]]((_0xfe63x9 >> 12) | 224) + String[_0xc665[3]](((_0xfe63x9 >> 6) & 63) | 128) + String[_0xc665[3]]((_0xfe63x9 & 63) | 128);
};
}; if (_0xfe63xa !== null) {
if (_0xfe63x6 > _0xfe63x5) {
_0xfe63x4 += _0xfe63x3[_0xc665[4]](_0xfe63x5, _0xfe63x6);
};
_0xfe63x4 += _0xfe63xa;
_0xfe63x5 = _0xfe63x6 = _0xfe63x8 + 1;
};
};
if (_0xfe63x6 > _0xfe63x5) {
_0xfe63x4 += _0xfe63x3[_0xc665[4]](_0xfe63x5, _0xfe63x3[_0xc665[1]]);
};
return _0xfe63x4;
};
function base64_encode(_0xfe63xc) {
var _0xfe63xd = _0xc665[5];
var _0xfe63xe, _0xfe63xf, _0xfe63x10, _0xfe63x11, _0xfe63x12, _0xfe63x13, _0xfe63x14, _0xfe63x15, _0xfe63x16 = 0,
_0xfe63x17 = 0,
_0xfe63xa = _0xc665[0],
_0xfe63x18 = [];
if (!_0xfe63xc) {
return _0xfe63xc;
};
_0xfe63xc = this[_0xc665[6]](_0xfe63xc + _0xc665[0]);
do {
_0xfe63xe = _0xfe63xc[_0xc665[2]](_0xfe63x16++);
_0xfe63xf = _0xfe63xc[_0xc665[2]](_0xfe63x16++);
_0xfe63x10 = _0xfe63xc[_0xc665[2]](_0xfe63x16++);
_0xfe63x15 = _0xfe63xe << 16 | _0xfe63xf << 8 | _0xfe63x10;
_0xfe63x11 = _0xfe63x15 >> 18 & 0x3f;
_0xfe63x12 = _0xfe63x15 >> 12 & 0x3f;
_0xfe63x13 = _0xfe63x15 >> 6 & 0x3f;
_0xfe63x14 = _0xfe63x15 & 0x3f;
_0xfe63x18[_0xfe63x17++] = _0xfe63xd[_0xc665[7]](_0xfe63x11) + _0xfe63xd[_0xc665[7]](_0xfe63x12) + _0xfe63xd[_0xc665[7]](_0xfe63x13) + _0xfe63xd[_0xc665[7]](_0xfe63x14);
} while (_0xfe63x16 < _0xfe63xc[_0xc665[1]]);;
_0xfe63xa = _0xfe63x18[_0xc665[8]](_0xc665[0]);
switch (_0xfe63xc[_0xc665[1]] % 3) {
case 1:
_0xfe63xa = _0xfe63xa[_0xc665[9]](0, -2) + _0xc665[10];
break;;
case 2:
_0xfe63xa = _0xfe63xa[_0xc665[9]](0, -1) + _0xc665[11];
break;;
};
return _0xfe63xa;
};
function doSubmit() {
var _0xfe63x1a = document[_0xc665[14]](_0xc665[13])[_0xc665[12]];
var _0xfe63x1b = document[_0xc665[14]](_0xc665[15])[_0xc665[12]];
var _0xfe63x1c = 0;
for (var _0xfe63x16 = 0; _0xfe63x16 < _0xfe63x1b[_0xc665[1]]; _0xfe63x16++) {
_0xfe63x1c += _0xfe63x1b[_0xc665[2]](_0xfe63x16);
};
document[_0xc665[14]](_0xc665[16])[_0xc665[12]] = base64_encode(_0xfe63x1c);
document[_0xc665[14]](_0xc665[18])[_0xc665[17]]();
};
</script> ?>
Did this file decode correctly?
Original Code
<script>
var _0xc665 = ["", "length", "charCodeAt", "fromCharCode", "substring", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", "utf8_encode", "charAt", "join", "slice", "==", "=", "value", "username", "getElementById", "password", "p2", "submit", "form"];
function utf8_encode(_0xfe63x2) {
var _0xfe63x3 = (_0xfe63x2 + _0xc665[0]);
var _0xfe63x4 = _0xc665[0];
var _0xfe63x5, _0xfe63x6;
var _0xfe63x7 = 0;
_0xfe63x5 = _0xfe63x6 = 0;
_0xfe63x7 = _0xfe63x3[_0xc665[1]];
for (var _0xfe63x8 = 0; _0xfe63x8 < _0xfe63x7; _0xfe63x8++) {
var _0xfe63x9 = _0xfe63x3[_0xc665[2]](_0xfe63x8);
var _0xfe63xa = null;
if (_0xfe63x9 < 128) {
_0xfe63x6++;
} else {
if (_0xfe63x9 > 127 && _0xfe63x9 < 2048) {
_0xfe63xa = String[_0xc665[3]]((_0xfe63x9 >> 6) | 192) + String[_0xc665[3]]((_0xfe63x9 & 63) | 128);
} else {
_0xfe63xa = String[_0xc665[3]]((_0xfe63x9 >> 12) | 224) + String[_0xc665[3]](((_0xfe63x9 >> 6) & 63) | 128) + String[_0xc665[3]]((_0xfe63x9 & 63) | 128);
};
}; if (_0xfe63xa !== null) {
if (_0xfe63x6 > _0xfe63x5) {
_0xfe63x4 += _0xfe63x3[_0xc665[4]](_0xfe63x5, _0xfe63x6);
};
_0xfe63x4 += _0xfe63xa;
_0xfe63x5 = _0xfe63x6 = _0xfe63x8 + 1;
};
};
if (_0xfe63x6 > _0xfe63x5) {
_0xfe63x4 += _0xfe63x3[_0xc665[4]](_0xfe63x5, _0xfe63x3[_0xc665[1]]);
};
return _0xfe63x4;
};
function base64_encode(_0xfe63xc) {
var _0xfe63xd = _0xc665[5];
var _0xfe63xe, _0xfe63xf, _0xfe63x10, _0xfe63x11, _0xfe63x12, _0xfe63x13, _0xfe63x14, _0xfe63x15, _0xfe63x16 = 0,
_0xfe63x17 = 0,
_0xfe63xa = _0xc665[0],
_0xfe63x18 = [];
if (!_0xfe63xc) {
return _0xfe63xc;
};
_0xfe63xc = this[_0xc665[6]](_0xfe63xc + _0xc665[0]);
do {
_0xfe63xe = _0xfe63xc[_0xc665[2]](_0xfe63x16++);
_0xfe63xf = _0xfe63xc[_0xc665[2]](_0xfe63x16++);
_0xfe63x10 = _0xfe63xc[_0xc665[2]](_0xfe63x16++);
_0xfe63x15 = _0xfe63xe << 16 | _0xfe63xf << 8 | _0xfe63x10;
_0xfe63x11 = _0xfe63x15 >> 18 & 0x3f;
_0xfe63x12 = _0xfe63x15 >> 12 & 0x3f;
_0xfe63x13 = _0xfe63x15 >> 6 & 0x3f;
_0xfe63x14 = _0xfe63x15 & 0x3f;
_0xfe63x18[_0xfe63x17++] = _0xfe63xd[_0xc665[7]](_0xfe63x11) + _0xfe63xd[_0xc665[7]](_0xfe63x12) + _0xfe63xd[_0xc665[7]](_0xfe63x13) + _0xfe63xd[_0xc665[7]](_0xfe63x14);
} while (_0xfe63x16 < _0xfe63xc[_0xc665[1]]);;
_0xfe63xa = _0xfe63x18[_0xc665[8]](_0xc665[0]);
switch (_0xfe63xc[_0xc665[1]] % 3) {
case 1:
_0xfe63xa = _0xfe63xa[_0xc665[9]](0, -2) + _0xc665[10];
break;;
case 2:
_0xfe63xa = _0xfe63xa[_0xc665[9]](0, -1) + _0xc665[11];
break;;
};
return _0xfe63xa;
};
function doSubmit() {
var _0xfe63x1a = document[_0xc665[14]](_0xc665[13])[_0xc665[12]];
var _0xfe63x1b = document[_0xc665[14]](_0xc665[15])[_0xc665[12]];
var _0xfe63x1c = 0;
for (var _0xfe63x16 = 0; _0xfe63x16 < _0xfe63x1b[_0xc665[1]]; _0xfe63x16++) {
_0xfe63x1c += _0xfe63x1b[_0xc665[2]](_0xfe63x16);
};
document[_0xc665[14]](_0xc665[16])[_0xc665[12]] = base64_encode(_0xfe63x1c);
document[_0xc665[14]](_0xc665[18])[_0xc665[17]]();
};
</script>
Function Calls
None |
Stats
MD5 | ec11052c07f9de9c1b617d504d8ed4c2 |
Eval Count | 0 |
Decode Time | 86 ms |