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 use VDV\core\model\LoginLimiter; $hashToken = time(); if (($_POST["\x66\137\x72\x6..

Decoded Output download

<?php 
 use VDV\core\model\LoginLimiter; $hashToken = time(); if (($_POST["f_remember_me"] ?? "off") == "on") { $res = setcookie("vdv_hash", $hashToken, time() + 3600 * 24 * 30, "/"); } else { $res = setcookie("vdv_hash", $hashToken, time() + 3600 * 24 * 2, "/"); } $path = "../../../../"; require_once $path . "components/vdv/database/model/ini.inc.php"; require_once $path . "components/vdv/database/model/ini.db.open.php"; require_once $path . "components/vdv/database/model/ini_vdv_prepare_query.php"; require_once $path . "components/vdv/log/model/inc_log_save.php"; require_once $path . "components/vdv/user/model/user_get.php"; require_once $path . "components/vdv/site/model/station_get.php"; require_once $path . "components/vdv/user/model/UserDb.php"; require_once $path . "components/vdv/user/model/UserPassword.php"; require_once $path . "components/vdv/language/model/LanguageDb.php"; require_once $path . "components/vdv/user/model/user_confirm_password.php"; require_once $path . "components/vdv/real_time_display/model/rtd_get.php"; require_once $path . "components/vdv/dashboard/model/dashboard_get.php"; require_once $path . "components/vdv/core/view/loadUser.php"; require_once $path . "components/vdv/core/model/CustomerUsage.php"; if (file_exists(__DIR__ . "/components/vdv/burst_data/model/burst_projects_get.php")) { require_once __DIR__ . "/components/vdv/burst_data/model/burst_projects_get.php"; } if (file_exists($path . "/components/vdv/gis/model/DbGis.php")) { require_once $path . "/components/vdv/gis/model/DbGis.php"; } if (file_exists($path . "/components/vdv/gis/model/Gis.php")) { require_once $path . "/components/vdv/gis/model/Gis.php"; } require_once $path . "inc.serverPath.php"; $user = isset($_POST["f_user"]) ? $_POST["f_user"] : ''; $password = isset($_POST["f_pass"]) ? $_POST["f_pass"] : ''; $error = 0; $needsUpdate = false; $loginLimitMessage = "Too many attemps<br> Please try again in 03:00 minutes."; if ($user == '' || $password == '') { $error = 1; } else { $user_ip = $_SERVER["REMOTE_ADDR"]; $loginLimit = new LoginLimiter(); $userDb = new UserDb(); $userId = $userDb->getUserIdByUsername($user); if ($loginLimit->canLogin()) { if ($userId && $error == 0) { $userPass = new \vdv\user\model\UserPassword(); $response = $userPass->loginUser($user, $password); if ($response["success"] === true) { $cookieOn = ($_POST["f_remember_me"] ?? "off") == "on" ? true : false; $usingOld = $response["usingOld"]; $check = getUserAndLogin($userId, true, $cookieOn, $usingOld); if ($check == 4) { $error = 4; } else { $error = 0; $loginLimit->clearAttempts(); } } else { $error = 2; } } else { $error = 2; } if ($error != 0) { $loginLimit->registerFailure(); } } else { $error = 503; $loginLimitMessage = "Too many attempts<br>Please try again in " . $loginLimit->getTimeRemaining() . " minutes."; $errorMessage = ["error" => 503, "message" => $loginLimitMessage]; } } echo "<html>\xd\xa\xd\xa<head>\xd\xa    <title>Vista Data Vision</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<script type="text/javascript">
\xa    "; $url = SERVER_ROOT . "/vdv.php"; if ($error == 0) { echo "window.parent.location = '{$url}'"; } else { if ($error == 503) { echo "window.parent.document.getElementById('login_status').innerHTML='" . $loginLimitMessage . "';"; echo "window.parent.document.getElementById('login_status').style.display = 'block'"; } else { echo "window.parent.login_result({$error});"; } } echo "</script>
\xa<!--
    Copyright 2004-2016, Vista Engineering, Iceland.

\xa    This code is owned by Vista Engineering and is protected by copyright laws and international treaty provisions.
    Therefore, you must treat the code like any other copyrighted material.
\xa    All modification or reuse of this code is strictly prohibited.\xd\xa
\xa    Contact Information:  http://www.vistadatavision.com - [email protected].
-->

<body>\xd
</body>

\xa</html>"; ?>

Did this file decode correctly?

Original Code

<?php
 use VDV\core\model\LoginLimiter; $hashToken = time(); if (($_POST["\x66\137\x72\x65\x6d\145\155\x62\x65\x72\137\x6d\x65"] ?? "\157\146\146") == "\x6f\x6e") { $res = setcookie("\x76\x64\x76\x5f\x68\141\163\150", $hashToken, time() + 3600 * 24 * 30, "\57"); } else { $res = setcookie("\x76\x64\x76\x5f\x68\141\x73\150", $hashToken, time() + 3600 * 24 * 2, "\57"); } $path = "\56\56\x2f\56\x2e\57\x2e\x2e\x2f\x2e\56\x2f"; require_once $path . "\143\x6f\x6d\160\x6f\x6e\145\156\x74\163\x2f\166\x64\166\57\144\x61\x74\141\142\141\163\x65\x2f\155\x6f\x64\145\154\57\x69\x6e\151\56\151\x6e\143\56\x70\150\x70"; require_once $path . "\143\157\155\160\x6f\156\x65\x6e\x74\x73\57\x76\144\166\57\144\x61\x74\141\142\141\163\x65\57\155\157\x64\145\154\x2f\x69\156\151\56\144\x62\56\157\160\x65\156\x2e\160\x68\x70"; require_once $path . "\x63\x6f\x6d\160\157\x6e\145\156\164\x73\x2f\166\144\x76\x2f\144\141\x74\x61\x62\x61\x73\145\x2f\155\157\144\x65\x6c\x2f\x69\156\x69\x5f\x76\144\166\x5f\160\162\145\x70\x61\162\145\x5f\x71\x75\x65\x72\x79\56\160\x68\160"; require_once $path . "\x63\157\x6d\160\x6f\156\x65\x6e\164\163\x2f\x76\144\x76\x2f\154\157\147\x2f\155\157\x64\145\x6c\x2f\x69\156\x63\137\x6c\157\x67\x5f\163\141\x76\x65\x2e\160\150\x70"; require_once $path . "\143\157\x6d\x70\157\x6e\145\156\x74\x73\x2f\x76\x64\x76\57\165\163\x65\x72\57\155\157\x64\x65\x6c\x2f\x75\x73\x65\x72\x5f\147\145\164\56\160\150\160"; require_once $path . "\143\x6f\155\160\157\x6e\x65\x6e\x74\x73\x2f\x76\x64\166\57\x73\151\x74\x65\x2f\x6d\x6f\x64\x65\x6c\x2f\x73\164\x61\164\x69\157\156\x5f\x67\x65\x74\x2e\160\x68\160"; require_once $path . "\x63\157\155\x70\157\x6e\145\x6e\164\163\x2f\166\x64\166\57\165\163\145\x72\x2f\x6d\157\144\x65\154\x2f\125\163\145\x72\104\142\56\x70\x68\x70"; require_once $path . "\143\157\155\160\x6f\156\145\x6e\164\163\57\x76\x64\166\x2f\x75\163\145\x72\57\x6d\157\144\x65\x6c\x2f\x55\x73\145\162\x50\x61\163\163\167\157\162\144\x2e\160\150\160"; require_once $path . "\x63\x6f\x6d\x70\x6f\156\145\156\164\163\x2f\166\x64\x76\57\154\x61\156\147\165\141\x67\x65\57\x6d\x6f\x64\x65\x6c\57\x4c\x61\x6e\x67\165\141\147\145\104\x62\56\160\x68\160"; require_once $path . "\143\157\155\160\x6f\x6e\x65\156\x74\163\57\x76\x64\166\x2f\x75\x73\x65\x72\57\x6d\x6f\144\x65\154\x2f\x75\163\145\162\x5f\143\x6f\156\x66\x69\x72\155\137\x70\x61\163\x73\167\x6f\162\144\56\160\150\160"; require_once $path . "\x63\157\155\160\157\156\x65\156\x74\x73\57\x76\144\166\x2f\162\x65\x61\x6c\137\164\151\155\145\x5f\144\151\x73\160\154\141\171\57\x6d\157\x64\145\154\57\x72\164\x64\x5f\x67\x65\x74\x2e\160\x68\160"; require_once $path . "\143\x6f\x6d\x70\157\156\x65\x6e\164\163\57\166\x64\166\x2f\x64\141\x73\x68\142\x6f\x61\x72\x64\x2f\x6d\x6f\x64\145\x6c\57\x64\141\163\150\142\157\141\x72\144\137\147\x65\164\56\160\150\160"; require_once $path . "\x63\157\x6d\160\x6f\x6e\x65\156\x74\163\x2f\166\x64\x76\x2f\143\x6f\162\145\57\x76\151\145\x77\x2f\x6c\157\x61\x64\125\x73\145\x72\x2e\160\150\x70"; require_once $path . "\x63\157\x6d\x70\157\x6e\x65\x6e\x74\163\57\x76\144\x76\x2f\x63\x6f\162\x65\x2f\x6d\x6f\x64\x65\x6c\x2f\x43\165\x73\x74\157\155\145\162\x55\x73\x61\x67\145\x2e\160\x68\x70"; if (file_exists(__DIR__ . "\x2f\x63\157\155\x70\157\x6e\145\156\x74\163\57\166\144\166\57\x62\x75\162\163\x74\137\144\x61\164\141\57\155\157\144\145\x6c\57\x62\165\162\163\164\x5f\x70\162\157\152\145\x63\164\163\137\147\x65\164\56\x70\x68\160")) { require_once __DIR__ . "\x2f\143\x6f\x6d\160\157\x6e\x65\156\x74\163\57\166\x64\166\x2f\x62\165\x72\163\164\137\x64\141\x74\x61\57\155\x6f\144\145\x6c\x2f\142\165\162\x73\x74\x5f\x70\162\157\x6a\x65\x63\x74\x73\x5f\147\x65\x74\x2e\160\150\160"; } if (file_exists($path . "\57\143\x6f\155\160\157\156\145\156\164\x73\57\x76\144\x76\x2f\x67\151\x73\x2f\155\157\x64\145\x6c\x2f\104\x62\x47\151\163\56\160\150\160")) { require_once $path . "\57\143\x6f\155\x70\x6f\x6e\x65\156\164\163\57\166\x64\166\57\x67\x69\x73\57\155\157\144\145\154\x2f\x44\x62\107\x69\163\x2e\x70\x68\x70"; } if (file_exists($path . "\x2f\143\157\x6d\x70\157\x6e\145\x6e\164\x73\57\166\144\166\x2f\x67\x69\163\57\x6d\x6f\144\145\x6c\x2f\x47\151\x73\56\x70\150\160")) { require_once $path . "\x2f\x63\x6f\155\x70\x6f\156\145\x6e\x74\x73\x2f\166\x64\x76\57\x67\151\x73\57\155\157\144\145\x6c\x2f\x47\151\x73\x2e\x70\150\160"; } require_once $path . "\151\156\x63\x2e\x73\x65\x72\166\x65\x72\120\141\x74\150\x2e\x70\150\x70"; $user = isset($_POST["\146\x5f\165\163\145\162"]) ? $_POST["\146\137\165\163\x65\x72"] : ''; $password = isset($_POST["\x66\x5f\160\x61\163\x73"]) ? $_POST["\x66\137\160\141\x73\x73"] : ''; $error = 0; $needsUpdate = false; $loginLimitMessage = "\x54\157\157\40\155\141\x6e\171\40\x61\164\x74\145\155\160\x73\x3c\x62\162\76\40\120\x6c\x65\141\163\145\40\x74\162\171\40\x61\147\x61\151\156\x20\151\156\x20\60\63\72\60\60\40\x6d\151\x6e\165\x74\x65\x73\x2e"; if ($user == '' || $password == '') { $error = 1; } else { $user_ip = $_SERVER["\122\105\115\x4f\x54\105\137\x41\x44\x44\122"]; $loginLimit = new LoginLimiter(); $userDb = new UserDb(); $userId = $userDb->getUserIdByUsername($user); if ($loginLimit->canLogin()) { if ($userId && $error == 0) { $userPass = new \vdv\user\model\UserPassword(); $response = $userPass->loginUser($user, $password); if ($response["\x73\165\143\x63\145\x73\x73"] === true) { $cookieOn = ($_POST["\146\x5f\x72\x65\x6d\x65\x6d\x62\145\x72\x5f\x6d\x65"] ?? "\157\x66\146") == "\x6f\x6e" ? true : false; $usingOld = $response["\x75\x73\151\156\147\117\154\144"]; $check = getUserAndLogin($userId, true, $cookieOn, $usingOld); if ($check == 4) { $error = 4; } else { $error = 0; $loginLimit->clearAttempts(); } } else { $error = 2; } } else { $error = 2; } if ($error != 0) { $loginLimit->registerFailure(); } } else { $error = 503; $loginLimitMessage = "\x54\x6f\157\40\x6d\141\156\x79\40\141\x74\x74\145\155\160\x74\x73\74\142\162\x3e\120\x6c\145\141\x73\x65\x20\x74\162\x79\x20\x61\x67\141\151\x6e\x20\x69\x6e\40" . $loginLimit->getTimeRemaining() . "\40\155\x69\x6e\165\x74\145\163\56"; $errorMessage = ["\x65\162\x72\157\x72" => 503, "\x6d\x65\163\163\x61\147\145" => $loginLimitMessage]; } } echo "\74\150\x74\155\x6c\x3e\xd\xa\xd\xa\74\x68\x65\141\144\x3e\xd\xa\x20\40\40\x20\x3c\164\x69\x74\154\145\76\126\151\x73\164\x61\40\104\x61\164\x61\x20\126\x69\163\x69\x6f\156\x3c\x2f\164\151\164\154\x65\x3e\15\12\40\x20\40\x20\74\155\x65\164\x61\40\150\x74\x74\x70\x2d\x65\161\165\x69\x76\x3d\x22\103\x6f\156\x74\145\156\x74\55\124\x79\x70\x65\42\x20\143\x6f\x6e\x74\x65\156\x74\x3d\42\x74\145\x78\164\x2f\x68\164\x6d\154\73\40\143\150\x61\x72\163\145\164\75\x75\x74\146\55\x38\42\40\57\76\15\12\x3c\57\150\x65\141\144\x3e\15\12\74\x73\x63\162\x69\x70\x74\x20\x74\x79\160\x65\x3d\42\164\x65\170\164\57\x6a\x61\x76\141\x73\143\162\151\x70\x74\x22\x3e\15\xa\x20\x20\40\40"; $url = SERVER_ROOT . "\57\166\x64\x76\56\160\150\x70"; if ($error == 0) { echo "\167\151\x6e\x64\x6f\167\56\x70\141\162\x65\156\164\x2e\154\x6f\x63\141\164\x69\x6f\x6e\40\x3d\40\x27{$url}\x27"; } else { if ($error == 503) { echo "\x77\151\x6e\x64\157\x77\56\160\x61\162\145\156\164\56\x64\157\143\x75\155\x65\156\164\56\x67\145\x74\x45\154\x65\155\x65\x6e\x74\102\x79\x49\144\x28\47\x6c\x6f\x67\x69\x6e\137\x73\164\x61\x74\165\x73\x27\51\x2e\x69\x6e\x6e\x65\x72\110\x54\115\114\75\47" . $loginLimitMessage . "\47\73"; echo "\x77\x69\156\144\157\x77\56\160\141\162\145\156\164\56\144\157\x63\165\x6d\x65\156\164\x2e\x67\x65\164\105\154\x65\x6d\145\156\x74\x42\x79\111\144\50\x27\154\x6f\x67\151\156\x5f\163\x74\141\164\x75\163\x27\x29\56\163\x74\x79\154\x65\56\144\151\x73\x70\x6c\141\171\40\x3d\40\47\142\154\x6f\143\153\47"; } else { echo "\167\151\156\144\x6f\167\56\160\x61\x72\145\x6e\x74\x2e\x6c\157\147\151\156\137\162\x65\x73\165\154\x74\50{$error}\51\73"; } } echo "\x3c\x2f\163\143\x72\151\x70\164\x3e\15\xa\74\x21\55\55\15\12\40\40\x20\x20\x43\x6f\160\171\162\x69\x67\x68\x74\40\62\60\60\x34\x2d\x32\x30\61\66\x2c\x20\126\x69\163\164\141\x20\105\156\x67\151\x6e\145\145\162\151\x6e\x67\54\40\x49\143\x65\x6c\x61\156\144\56\15\12\15\xa\40\x20\40\40\124\150\151\x73\x20\143\157\x64\145\40\151\x73\x20\157\x77\156\145\x64\x20\142\x79\x20\126\151\163\x74\141\x20\105\x6e\147\x69\x6e\x65\145\162\151\156\147\x20\141\156\x64\40\151\x73\x20\160\162\157\x74\145\x63\164\x65\144\40\142\x79\40\143\157\160\x79\162\151\147\150\164\x20\x6c\x61\167\x73\40\141\156\x64\40\x69\x6e\x74\145\x72\156\141\x74\151\157\156\x61\x6c\x20\x74\x72\x65\x61\164\171\40\x70\162\157\166\x69\163\151\x6f\156\163\x2e\15\12\x20\x20\40\x20\124\150\145\162\x65\x66\157\162\x65\x2c\x20\171\157\165\40\x6d\165\x73\164\x20\x74\x72\145\141\164\x20\x74\x68\x65\x20\x63\x6f\x64\145\40\154\151\x6b\x65\40\x61\x6e\x79\40\x6f\164\150\x65\x72\40\x63\157\x70\171\162\151\147\x68\164\x65\144\x20\x6d\x61\164\145\162\x69\141\154\56\15\xa\x20\x20\x20\x20\x41\x6c\154\40\x6d\157\144\x69\x66\x69\143\141\164\x69\x6f\156\x20\x6f\x72\x20\162\145\x75\163\145\x20\x6f\146\x20\164\x68\151\x73\x20\143\157\x64\x65\x20\151\x73\40\x73\164\x72\x69\143\x74\x6c\x79\x20\x70\162\x6f\x68\151\x62\x69\164\145\x64\x2e\xd\xa\15\xa\x20\x20\40\40\103\x6f\x6e\164\x61\143\x74\40\111\x6e\146\157\x72\x6d\141\x74\151\x6f\x6e\72\x20\40\x68\164\x74\x70\x3a\x2f\57\167\x77\167\x2e\x76\151\x73\164\x61\144\x61\x74\x61\x76\151\163\151\x6f\156\x2e\x63\x6f\x6d\x20\x2d\x20\166\x64\166\x40\x76\151\x73\x74\x61\x64\x61\x74\141\x76\151\x73\x69\157\156\56\x63\x6f\155\x2e\15\12\55\55\76\15\12\15\12\74\142\157\x64\x79\x3e\xd\12\74\x2f\x62\x6f\x64\x79\76\15\12\15\xa\x3c\57\150\x74\x6d\x6c\x3e";

Function Calls

None

Variables

None

Stats

MD5 a17ab5632a5338f981e6675b2fd9820e
Eval Count 0
Decode Time 50 ms