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 if (isset($_POST['testConection'])){try{$dbh = new pdo("mysql:host=".$_POST["hostin..
Decoded Output download
<?php if (isset($_POST['testConection'])){try{$dbh = new pdo("mysql:host=".$_POST["hosting"].";dbname=".$_POST["dbhost"]."",$_POST["userhost"],$_POST["passhost"],array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));echo "1";die();}catch(PDOException $ex){echo "2";die();}$dbh = null;}if (isset($_POST['finalConect'])){try{$pdo = new pdo("mysql:host=".$_POST["hosting"].";dbname=".$_POST["dbhost"]."",$_POST["userhost"],$_POST["passhost"],array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));}catch(PDOException $ex){}$SQL = 'Q1JFQVRFIFRBQkxFIGBhY3RpdmF0aW9uYCAoCiAgYGlkYCBpbnQoMTEpIE5PVCBOVUxMLAogIGBlbWFpbGAgdmFyY2hhcigxMDApIE5PVCBOVUxMLAogIGBjb25maXJtYXRpb25gIHZhcmNoYXIoMjUwKSBOT1QgTlVMTCwKICBgZGF0ZXJlcXVlc3RgIHRpbWVzdGFtcCBOT1QgTlVMTCBERUZBVUxUIGN1cnJlbnRfdGltZXN0YW1wKCkgT04gVVBEQVRFIGN1cnJlbnRfdGltZXN0YW1wKCkKKSBFTkdJTkU9SW5ub0RCIERFRkFVTFQgQ0hBUlNFVD11dGY4OwpDUkVBVEUgVEFCTEUgYGNvbmZpZ3VyYXRpb25gICgKICBgaWRgIGludCgxMSkgTk9UIE5VTEwsCiAgYHRpdGxlc2l0ZWAgdmFyY2hhcigyNTApIE5PVCBOVUxMLAogIGBkZXNjc2l0ZWAgdmFyY2hhcigyNTApIE5PVCBOVUxMLAogIGBzZW9gIGludCgxMSkgTk9UIE5VTEwsCiAgYHNlb3Bvc3RgIGludCgxMSkgTk9UIE5VTEwsCiAgYHJlZ2lzdGVyYCBpbnQoMTEpIE5PVCBOVUxMLAogIGBsb2dp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EFVVE9fSU5DUkVNRU5UOwpBTFRFUiBUQUJMRSBgcG9zdHNgIE1PRElGWSBgaWRgIGJpZ2ludCgyMCkgTk9UIE5VTEwgQVVUT19JTkNSRU1FTlQsIEFVVE9fSU5DUkVNRU5UPTI7CkFMVEVSIFRBQkxFIGByZXBvcnRzYCBNT0RJRlkgYGlkYCBpbnQoMTEpIE5PVCBOVUxMIEFVVE9fSU5DUkVNRU5UOwpBTFRFUiBUQUJMRSBgdXNlcnNgIE1PRElGWSBgaWRgIGludCgxMSkgTk9UIE5VTEwgQVVUT19JTkNSRU1FTlQ7IENPTU1JVDs=';$pdo->prepare(base64_decode($SQL))->execute();$crypt = sha1($_POST['spassword'].$_POST['randomSal']);$pdo->prepare("INSERT INTO `users` (`id`, `user`, `usermail`, `userpass`, `usertype`, `status`) VALUES (NULL, '".$_POST['spuser']."', '".$_POST['spemail']."', '".$crypt."', '3', '1');")->execute();$fileIndex = fopen("index.php", "w");fwrite($fileIndex, "<?php".PHP_EOL);fwrite($fileIndex, "error_reporting(0);".PHP_EOL);fwrite($fileIndex, "\$hosting = '".$_POST['hosting']."';".PHP_EOL);fwrite($fileIndex, "\$basededatos = '".$_POST['dbhost']."';".PHP_EOL);fwrite($fileIndex, "\$usuariobd = '".$_POST['userhost']."';".PHP_EOL);fwrite($fileIndex, "\$passbd = '".$_POST['passhost']."';".PHP_EOL);fwrite($fileIndex, "\$app_folder = 'app';".PHP_EOL);fwrite($fileIndex, "\$assets_folder = 'assets';".PHP_EOL);fwrite($fileIndex, "\$public_folder = 'views';".PHP_EOL);fwrite($fileIndex, "\$url_site = '".$_POST['urlprogram']."';".PHP_EOL);fwrite($fileIndex, "\$sal = '".$_POST['randomSal']."';".PHP_EOL);fwrite($fileIndex, "define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));".PHP_EOL);fwrite($fileIndex, "define('BASEPATH', \$app_folder);".PHP_EOL);fwrite($fileIndex, "define('ASSETSPATH', \$assets_folder);".PHP_EOL);fwrite($fileIndex, "define('PUBLICPATH', \$public_folder);".PHP_EOL);fwrite($fileIndex, "define('URLSITE', \$url_site);".PHP_EOL);fwrite($fileIndex, "define('HOSTINGDB', \$hosting);".PHP_EOL);fwrite($fileIndex, "define('DATABASENAME', \$basededatos);".PHP_EOL);fwrite($fileIndex, "define('USERDATABASE', \$usuariobd);".PHP_EOL);fwrite($fileIndex, "define('PASSDATABASE', \$passbd);".PHP_EOL);fwrite($fileIndex, "define('HOMEPAGE', 'home');".PHP_EOL);fwrite($fileIndex, "define('SALT', \$sal);".PHP_EOL);fwrite($fileIndex, "require_once BASEPATH.'/autoload.php';".PHP_EOL);fclose($fileIndex);$pdo = null;return;}if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on'){$url = "https://";}else{$url = "http://";}$url.= $_SERVER['HTTP_HOST'];$url.= $_SERVER['REQUEST_URI'];define('URLHOST', str_replace('install.php', '', $url));function generateRandomString($length = 10){$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';$charactersLength = strlen($characters);$randomString = '';for ($i = 0; $i < $length; $i++) {$randomString .= $characters[rand(0, $charactersLength - 1)];}return $randomString;}?><!doctype html><html lang="es"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="style.css"><title>Instalacin de sPaste!</title><style type="text/css">.loader{width:48px;height:48px;border-radius:50%;position:inherit;animation:1s linear infinite rotate}.loader::after,.loader::before{content:"";box-sizing:border-box;position:absolute;inset:0px;border-radius:50%;border:5px solid #fff;animation:2s linear infinite prixClipFix}.loader::after{transform:rotate3d(90,90,0,180deg);border-color:#0595ff}@keyframes rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes prixClipFix{0%{clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}50%{clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}100%,75%{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}}#loadingInstall{text-align:center;display:block;float:left;width:100%}</style></head><body><main class="container"><article id="installation"><h1 class="text-center">sPaste!</h1><h5 class="text-center">Instalacin</h5><form id="installSpaste"><div id="failconexion" class="alert danger text-center">La conexion a base de datos ha fallado, revisa tus datos de conexion para continuar con la instalacin del programa.</div><label>Host:</label><input type="text" name="hosting" value="localhost"><label>Usuario:</label><input type="text" name="userhost" value="root"><label>Contrasea:</label><input type="password" name="passhost"><label>Base de Datos:</label><input type="text" name="dbhost"><label>URL:</label><input type="text" id="urlprogramval" name="urlprogram" value="<?php echo URLHOST; ?>"><input type="hidden" name="randomSal" value="<?php echo generateRandomString(); ?>"></form><button class="outline installSpate">Probar Conexin</button><form id="installSpastev2"><div class="alert success text-center">La conexion a base de datos es correcta, solo introduce los siguientes datos para terminar la instalacin.</div><label>Usuario:</label><input type="text" name="spuser"><label>Correo Electronico:</label><input type="email" name="spemail"><label>Contrasea:</label><input type="text" name="spassword"></form><button class="outline installSpateFinal">Instalar sPaste!</button></article></main></body><script src="assets/js/jquery-3.6.3.min.js"></script><script type="text/javascript">var _0x3701d9=_0x29f0;function _0x29f0(_0x37079a,_0x133f79){var _0x17485f=_0x1748();return _0x29f0=function(_0x29f058,_0x4c8c80){_0x29f058=_0x29f058-0x13d;var _0x4aabd2=_0x17485f[_0x29f058];return _0x4aabd2;},_0x29f0(_0x37079a,_0x133f79);}function _0x1748(){var _0x259103=['.installSpateFinal','9550250jrzEsd','1879440MPqfUU','serialize','show','ajax','disabled','.installSpate','val','remove','append','1dbVyIK','hide','href','48JRgbnp','2564824bqcyRS','9Ybdomq','click','prop','testConection=1&','POST','<div class="alert success text-center">Instalacin completa! es importante que borres el archivo <strong>install.php</strong> de tu servidor, ahora seras redireccionado en breve.</div><br><hr>','#installSpaste','30198084ALwPCh','<div id="loadingInstall"><span class="loader"></span><small>Instalando...</small></div>','#loadingInstall','3675318RzWkNT','#installSpastev2','7952rBXeAB','2208906zEPxAR','#installation','parent','finalConect=1&','11xPorcu','install.php','5ECxnVt','location'];_0x1748=function(){return _0x259103;};return _0x1748();}(function(_0x3162d1,_0x246787){var _0x49fa86=_0x29f0,_0x205bfa=_0x3162d1();while(!![]){try{var _0x1fa652=parseInt(_0x49fa86(0x13d))/0x1*(-parseInt(_0x49fa86(0x14f))/0x2)+-parseInt(_0x49fa86(0x14c))/0x3+-parseInt(_0x49fa86(0x141))/0x4*(parseInt(_0x49fa86(0x155))/0x5)+-parseInt(_0x49fa86(0x140))/0x6*(-parseInt(_0x49fa86(0x14e))/0x7)+parseInt(_0x49fa86(0x159))/0x8+-parseInt(_0x49fa86(0x142))/0x9*(-parseInt(_0x49fa86(0x158))/0xa)+-parseInt(_0x49fa86(0x153))/0xb*(-parseInt(_0x49fa86(0x149))/0xc);if(_0x1fa652===_0x246787)break;else _0x205bfa['push'](_0x205bfa['shift']());}catch(_0x47ec9d){_0x205bfa['push'](_0x205bfa['shift']());}}}(_0x1748,0xb5d51),$('.installSpate')['on'](_0x3701d9(0x143),function(){var _0x86a155=_0x3701d9,_0x4bfa24=$(_0x86a155(0x148))[_0x86a155(0x15a)]();$[_0x86a155(0x15c)]({'type':'POST','url':_0x86a155(0x154),'data':_0x86a155(0x145)+_0x4bfa24,'beforeSend':function(){var _0x381f86=_0x86a155;$('#installSpaste')['hide'](),$(_0x381f86(0x15e))[_0x381f86(0x13e)](),$(_0x381f86(0x150))[_0x381f86(0x161)]('<div id="loadingInstall"><span class="loader"></span><small>Revisar Conexin</small></div>');},'success':function(_0x18241f){_0x18241f==0x2?setTimeout(function(){var _0x1201c1=_0x29f0;$(_0x1201c1(0x14b))[_0x1201c1(0x160)](),$(_0x1201c1(0x148))[0x0]['reset'](),$('#installSpaste')[_0x1201c1(0x15b)](),$(_0x1201c1(0x15e))['show'](),$('#failconexion')[_0x1201c1(0x15b)]();},0x7d0):setTimeout(function(){var _0x58428f=_0x29f0;$(_0x58428f(0x14b))[_0x58428f(0x160)](),$(_0x58428f(0x14d))[_0x58428f(0x15b)](),$('.installSpateFinal')['show']();},0x7d0);},'error':function(){}});}),$(_0x3701d9(0x157))['on'](_0x3701d9(0x143),function(){var _0x53ff3d=_0x3701d9,_0x5df091=$(_0x53ff3d(0x148))[_0x53ff3d(0x15a)](),_0x39b4f6=$(_0x53ff3d(0x14d))['serialize']();$[_0x53ff3d(0x15c)]({'type':_0x53ff3d(0x146),'url':_0x53ff3d(0x154),'data':_0x53ff3d(0x152)+_0x5df091+'&'+_0x39b4f6,'beforeSend':function(){var _0x36e906=_0x53ff3d;$('h5')[_0x36e906(0x13e)](),$(_0x36e906(0x14d))[_0x36e906(0x144)](_0x36e906(0x15d),!![])[_0x36e906(0x13e)](),$(_0x36e906(0x157))[_0x36e906(0x144)](_0x36e906(0x15d),!![])[_0x36e906(0x13e)](),$('.installSpateFinal')[_0x36e906(0x151)]()[_0x36e906(0x161)](_0x36e906(0x14a));},'success':function(_0x4f16d9){var _0x219898=_0x53ff3d;$('#loadingInstall')['remove'](),$(_0x219898(0x150))['append'](_0x219898(0x147)),setTimeout(function(){var _0x105015=_0x219898;window[_0x105015(0x156)][_0x105015(0x13f)]=$('#urlprogramval')[_0x105015(0x15f)]();},0x1388);},'error':function(){}});}));</script></html>
Did this file decode correctly?
Original Code
<?php if (isset($_POST['testConection'])){try{$dbh = new pdo("mysql:host=".$_POST["hosting"].";dbname=".$_POST["dbhost"]."",$_POST["userhost"],$_POST["passhost"],array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));echo "1";die();}catch(PDOException $ex){echo "2";die();}$dbh = null;}if (isset($_POST['finalConect'])){try{$pdo = new pdo("mysql:host=".$_POST["hosting"].";dbname=".$_POST["dbhost"]."",$_POST["userhost"],$_POST["passhost"],array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));}catch(PDOException $ex){}$SQL = 'Q1JFQVRFIFRBQkxFIGBhY3RpdmF0aW9uYCAoCiAgYGlkYCBpbnQoMTEpIE5PVCBOVUxMLAogIGBlbWFpbG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AogIGB1c2VycGFzc2AgdmFyY2hhcigyNTApIE5PVCBOVUxMLAogIGB1c2VydHlwZWAgaW50KDExKSBOT1QgTlVMTCwKICBgc3RhdHVzYCBpbnQoMTEpIE5PVCBOVUxMCikgRU5HSU5FPUlubm9EQiBERUZBVUxUIENIQVJTRVQ9dXRmODsKQUxURVIgVEFCTEUgYGFjdGl2YXRpb25gIEFERCBQUklNQVJZIEtFWSAoYGlkYCk7CkFMVEVSIFRBQkxFIGBjb25maWd1cmF0aW9uYCBBREQgUFJJTUFSWSBLRVkgKGBpZGApOwpBTFRFUiBUQUJMRSBgcG9zdHNgIEFERCBQUklNQVJZIEtFWSAoYGlkYCk7CkFMVEVSIFRBQkxFIGByZXBvcnRzYCBBREQgUFJJTUFSWSBLRVkgKGBpZGApOwpBTFRFUiBUQUJMRSBgdXNlcnNgIEFERCBQUklNQVJZIEtFWSAoYGlkYCk7CkFMVEVSIFRBQkxFIGBhY3RpdmF0aW9uYCBNT0RJRlkgYGlkYCBpbnQoMTEpIE5PVCBOVUxMIEFVVE9fSU5DUkVNRU5UOwpBTFRFUiBUQUJMRSBgcG9zdHNgIE1PRElGWSBgaWRgIGJpZ2ludCgyMCkgTk9UIE5VTEwgQVVUT19JTkNSRU1FTlQsIEFVVE9fSU5DUkVNRU5UPTI7CkFMVEVSIFRBQkxFIGByZXBvcnRzYCBNT0RJRlkgYGlkYCBpbnQoMTEpIE5PVCBOVUxMIEFVVE9fSU5DUkVNRU5UOwpBTFRFUiBUQUJMRSBgdXNlcnNgIE1PRElGWSBgaWRgIGludCgxMSkgTk9UIE5VTEwgQVVUT19JTkNSRU1FTlQ7IENPTU1JVDs=';$pdo->prepare(base64_decode($SQL))->execute();$crypt = sha1($_POST['spassword'].$_POST['randomSal']);$pdo->prepare("INSERT INTO `users` (`id`, `user`, `usermail`, `userpass`, `usertype`, `status`) VALUES (NULL, '".$_POST['spuser']."', '".$_POST['spemail']."', '".$crypt."', '3', '1');")->execute();$fileIndex = fopen("index.php", "w");fwrite($fileIndex, "<?php".PHP_EOL);fwrite($fileIndex, "error_reporting(0);".PHP_EOL);fwrite($fileIndex, "\$hosting = '".$_POST['hosting']."';".PHP_EOL);fwrite($fileIndex, "\$basededatos = '".$_POST['dbhost']."';".PHP_EOL);fwrite($fileIndex, "\$usuariobd = '".$_POST['userhost']."';".PHP_EOL);fwrite($fileIndex, "\$passbd = '".$_POST['passhost']."';".PHP_EOL);fwrite($fileIndex, "\$app_folder = 'app';".PHP_EOL);fwrite($fileIndex, "\$assets_folder = 'assets';".PHP_EOL);fwrite($fileIndex, "\$public_folder = 'views';".PHP_EOL);fwrite($fileIndex, "\$url_site = '".$_POST['urlprogram']."';".PHP_EOL);fwrite($fileIndex, "\$sal = '".$_POST['randomSal']."';".PHP_EOL);fwrite($fileIndex, "define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));".PHP_EOL);fwrite($fileIndex, "define('BASEPATH', \$app_folder);".PHP_EOL);fwrite($fileIndex, "define('ASSETSPATH', \$assets_folder);".PHP_EOL);fwrite($fileIndex, "define('PUBLICPATH', \$public_folder);".PHP_EOL);fwrite($fileIndex, "define('URLSITE', \$url_site);".PHP_EOL);fwrite($fileIndex, "define('HOSTINGDB', \$hosting);".PHP_EOL);fwrite($fileIndex, "define('DATABASENAME', \$basededatos);".PHP_EOL);fwrite($fileIndex, "define('USERDATABASE', \$usuariobd);".PHP_EOL);fwrite($fileIndex, "define('PASSDATABASE', \$passbd);".PHP_EOL);fwrite($fileIndex, "define('HOMEPAGE', 'home');".PHP_EOL);fwrite($fileIndex, "define('SALT', \$sal);".PHP_EOL);fwrite($fileIndex, "require_once BASEPATH.'/autoload.php';".PHP_EOL);fclose($fileIndex);$pdo = null;return;}if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on'){$url = "https://";}else{$url = "http://";}$url.= $_SERVER['HTTP_HOST'];$url.= $_SERVER['REQUEST_URI'];define('URLHOST', str_replace('install.php', '', $url));function generateRandomString($length = 10){$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';$charactersLength = strlen($characters);$randomString = '';for ($i = 0; $i < $length; $i++) {$randomString .= $characters[rand(0, $charactersLength - 1)];}return $randomString;}?><!doctype html><html lang="es"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="stylesheet" href="style.css"><title>Instalacin de sPaste!</title><style type="text/css">.loader{width:48px;height:48px;border-radius:50%;position:inherit;animation:1s linear infinite rotate}.loader::after,.loader::before{content:"";box-sizing:border-box;position:absolute;inset:0px;border-radius:50%;border:5px solid #fff;animation:2s linear infinite prixClipFix}.loader::after{transform:rotate3d(90,90,0,180deg);border-color:#0595ff}@keyframes rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes prixClipFix{0%{clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}50%{clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}100%,75%{clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}}#loadingInstall{text-align:center;display:block;float:left;width:100%}</style></head><body><main class="container"><article id="installation"><h1 class="text-center">sPaste!</h1><h5 class="text-center">Instalacin</h5><form id="installSpaste"><div id="failconexion" class="alert danger text-center">La conexion a base de datos ha fallado, revisa tus datos de conexion para continuar con la instalacin del programa.</div><label>Host:</label><input type="text" name="hosting" value="localhost"><label>Usuario:</label><input type="text" name="userhost" value="root"><label>Contrasea:</label><input type="password" name="passhost"><label>Base de Datos:</label><input type="text" name="dbhost"><label>URL:</label><input type="text" id="urlprogramval" name="urlprogram" value="<?php echo URLHOST; ?>"><input type="hidden" name="randomSal" value="<?php echo generateRandomString(); ?>"></form><button class="outline installSpate">Probar Conexin</button><form id="installSpastev2"><div class="alert success text-center">La conexion a base de datos es correcta, solo introduce los siguientes datos para terminar la instalacin.</div><label>Usuario:</label><input type="text" name="spuser"><label>Correo Electronico:</label><input type="email" name="spemail"><label>Contrasea:</label><input type="text" name="spassword"></form><button class="outline installSpateFinal">Instalar sPaste!</button></article></main></body><script src="assets/js/jquery-3.6.3.min.js"></script><script type="text/javascript">var _0x3701d9=_0x29f0;function _0x29f0(_0x37079a,_0x133f79){var _0x17485f=_0x1748();return _0x29f0=function(_0x29f058,_0x4c8c80){_0x29f058=_0x29f058-0x13d;var _0x4aabd2=_0x17485f[_0x29f058];return _0x4aabd2;},_0x29f0(_0x37079a,_0x133f79);}function _0x1748(){var _0x259103=['.installSpateFinal','9550250jrzEsd','1879440MPqfUU','serialize','show','ajax','disabled','.installSpate','val','remove','append','1dbVyIK','hide','href','48JRgbnp','2564824bqcyRS','9Ybdomq','click','prop','testConection=1&','POST','<div\x20class=\x22alert\x20success\x20text-center\x22>Instalacin\x20completa!\x20es\x20importante\x20que\x20borres\x20el\x20archivo\x20<strong>install.php</strong>\x20de\x20tu\x20servidor,\x20ahora\x20seras\x20redireccionado\x20en\x20breve.</div><br><hr>','#installSpaste','30198084ALwPCh','<div\x20id=\x22loadingInstall\x22><span\x20class=\x22loader\x22></span><small>Instalando...</small></div>','#loadingInstall','3675318RzWkNT','#installSpastev2','7952rBXeAB','2208906zEPxAR','#installation','parent','finalConect=1&','11xPorcu','install.php','5ECxnVt','location'];_0x1748=function(){return _0x259103;};return _0x1748();}(function(_0x3162d1,_0x246787){var _0x49fa86=_0x29f0,_0x205bfa=_0x3162d1();while(!![]){try{var _0x1fa652=parseInt(_0x49fa86(0x13d))/0x1*(-parseInt(_0x49fa86(0x14f))/0x2)+-parseInt(_0x49fa86(0x14c))/0x3+-parseInt(_0x49fa86(0x141))/0x4*(parseInt(_0x49fa86(0x155))/0x5)+-parseInt(_0x49fa86(0x140))/0x6*(-parseInt(_0x49fa86(0x14e))/0x7)+parseInt(_0x49fa86(0x159))/0x8+-parseInt(_0x49fa86(0x142))/0x9*(-parseInt(_0x49fa86(0x158))/0xa)+-parseInt(_0x49fa86(0x153))/0xb*(-parseInt(_0x49fa86(0x149))/0xc);if(_0x1fa652===_0x246787)break;else _0x205bfa['push'](_0x205bfa['shift']());}catch(_0x47ec9d){_0x205bfa['push'](_0x205bfa['shift']());}}}(_0x1748,0xb5d51),$('.installSpate')['on'](_0x3701d9(0x143),function(){var _0x86a155=_0x3701d9,_0x4bfa24=$(_0x86a155(0x148))[_0x86a155(0x15a)]();$[_0x86a155(0x15c)]({'type':'POST','url':_0x86a155(0x154),'data':_0x86a155(0x145)+_0x4bfa24,'beforeSend':function(){var _0x381f86=_0x86a155;$('#installSpaste')['hide'](),$(_0x381f86(0x15e))[_0x381f86(0x13e)](),$(_0x381f86(0x150))[_0x381f86(0x161)]('<div\x20id=\x22loadingInstall\x22><span\x20class=\x22loader\x22></span><small>Revisar\x20Conexin</small></div>');},'success':function(_0x18241f){_0x18241f==0x2?setTimeout(function(){var _0x1201c1=_0x29f0;$(_0x1201c1(0x14b))[_0x1201c1(0x160)](),$(_0x1201c1(0x148))[0x0]['reset'](),$('#installSpaste')[_0x1201c1(0x15b)](),$(_0x1201c1(0x15e))['show'](),$('#failconexion')[_0x1201c1(0x15b)]();},0x7d0):setTimeout(function(){var _0x58428f=_0x29f0;$(_0x58428f(0x14b))[_0x58428f(0x160)](),$(_0x58428f(0x14d))[_0x58428f(0x15b)](),$('.installSpateFinal')['show']();},0x7d0);},'error':function(){}});}),$(_0x3701d9(0x157))['on'](_0x3701d9(0x143),function(){var _0x53ff3d=_0x3701d9,_0x5df091=$(_0x53ff3d(0x148))[_0x53ff3d(0x15a)](),_0x39b4f6=$(_0x53ff3d(0x14d))['serialize']();$[_0x53ff3d(0x15c)]({'type':_0x53ff3d(0x146),'url':_0x53ff3d(0x154),'data':_0x53ff3d(0x152)+_0x5df091+'&'+_0x39b4f6,'beforeSend':function(){var _0x36e906=_0x53ff3d;$('h5')[_0x36e906(0x13e)](),$(_0x36e906(0x14d))[_0x36e906(0x144)](_0x36e906(0x15d),!![])[_0x36e906(0x13e)](),$(_0x36e906(0x157))[_0x36e906(0x144)](_0x36e906(0x15d),!![])[_0x36e906(0x13e)](),$('.installSpateFinal')[_0x36e906(0x151)]()[_0x36e906(0x161)](_0x36e906(0x14a));},'success':function(_0x4f16d9){var _0x219898=_0x53ff3d;$('#loadingInstall')['remove'](),$(_0x219898(0x150))['append'](_0x219898(0x147)),setTimeout(function(){var _0x105015=_0x219898;window[_0x105015(0x156)][_0x105015(0x13f)]=$('#urlprogramval')[_0x105015(0x15f)]();},0x1388);},'error':function(){}});}));</script></html>
Function Calls
None |
Stats
MD5 | ba24b4ee82d041cca8fd5d01605029a7 |
Eval Count | 0 |
Decode Time | 1143 ms |