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 goto sLgSN; pNps1: $step = isset($_GET["\x73\x74\145\160"]) ? $_GET["\163\164\x65\..

Decoded Output download

<?php 
 goto sLgSN; pNps1: $step = isset($_GET["step"]) ? $_GET["step"] : ''; goto pAHWR; dec5a: echo $product_info["product_name"]; goto aGKAd; iHTDG: $product_info = $api->get_latest_version(); goto DCkGw; AjZwO: switch ($step) { default: ?> 
<div class="is-fullwidth tabs"><ul><li class="is-active"><a><span><b>Requirements</b></span></a></li><li><a><span>Verify</span></a></li><li><a><span>Database</span></a></li><li><a><span>Finish</span></a></li></ul></div><?php  if (phpversion() < "7.2") { $errors = true; echo "<div class='notification is-danger' style='padding:12px;'><i class='fa fa-times'></i> Current PHP version is " . phpversion() . "! minimum PHP 7.2 or higher required.</div>"; } else { echo "<div class='notification is-success' style='padding:12px;'><i class='fa fa-check'></i> You are running PHP version " . phpversion() . "</div>"; } if (!extension_loaded("mysqli")) { $errors = true; echo "<div class='notification is-danger' style='padding:12px;'><i class='fa fa-times'></i> MySQLi PHP extension missing!</div>"; } else { echo "<div class='notification is-success' style='padding:12px;'><i class='fa fa-check'></i> MySQLi PHP extension available</div>"; } if (!extension_loaded("curl")) { $errors = true; echo "<div class='notification is-danger' style='padding:12px;'><i class='fa fa-times'></i> Curl PHP extension missing!</div>"; } else { echo "<div class='notification is-success' style='padding:12px;'><i class='fa fa-check'></i> Curl PHP extension available</div>"; } if (!extension_loaded("pdo")) { $errors = true; echo "<div class='notification is-danger' style='padding:12px;'><i class='fa fa-times'></i> PDO PHP extension missing!</div>"; } else { echo "<div class='notification is-success' style='padding:12px;'><i class='fa fa-check'></i> PDO PHP extension available</div>"; } if (!extension_loaded("json")) { $errors = true; echo "<div class='notification is-danger' style='padding:12px;'><i class='fa fa-times'></i> JSON PHP extension missing!</div>"; } else { echo "<div class='notification is-success' style='padding:12px;'><i class='fa fa-check'></i> JSON PHP extension available</div>"; } ?> 
<div style="text-align:right"><?php  if ($errors == true) { ?> 
<a href="#"class="button is-link"disabled>Next</a><?php  } else { ?> 
<a href="index.php?step=0"class="button is-link">Next</a><?php  } ?> 
</div><?php  break; case "0": ?> 
<div class="is-fullwidth tabs"><ul><li><a><span><i class="fa fa-check-circle"></i> Requirements</span></a></li><li class="is-active"><a><span><b>Verify</b></span></a></li><li><a><span>Database</span></a></li><li><a><span>Finish</span></a></li></ul></div><?php  $license_code = null; $client_name = null; if (!empty($_POST["license"]) && !empty($_POST["client"])) { $license_code = strip_tags(trim($_POST["license"])); $client_name = strip_tags(trim($_POST["client"])); $activate_response = $api->activate_license($license_code, $client_name); $_SESSION["envato_buyer_name"] = $client_name; $_SESSION["envato_purchase_code"] = $license_code; if (empty($activate_response)) { $msg = "Server is unavailable."; } else { $msg = $activate_response["message"]; } if ($activate_response["status"] != true) { ?> 
<form action="index.php?step=0"method="POST"><div class="notification is-danger"><?php  echo ucfirst($msg); ?> 
</div><div class="field"><label class="label">Envato Username<p class="control-label-help">https://codecanyon.net/user/<u style="color:#419746">example</u></p><p class="control-label-help">(<u style="color:#419746">example</u> is username, Write your envato <u style="color:#419746">username</u>)</p></label><div class="control"><input name="client"class="input"placeholder="Your Envato User Name"required></div></div><div class="field"><label class="label">Envato Purchase Code :-<p class="control-label-help">(<a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code"target="_blank">Where Is My Purchase Code?</a>)</p></label><div class="control"><input name="license"class="input"placeholder="xxxx-xxxx-xxxx-xxxx-xxxx"required></div></div><div style="text-align:right"><button class="button is-link"type="submit">Verify</button></div></form><?php  } else { ?> 
<form action="index.php?step=1"method="POST"><div class="notification is-success"><?php  echo ucfirst($msg); ?> 
</div><input name="lcscs"id="lcscs"type="hidden"value="<?php  echo ucfirst($activate_response["status"]); ?> 
"><div style="text-align:right"><button class="button is-link"type="submit">Next</button></div></form><?php  } } else { ?> 
<form action="index.php?step=0"method="POST"><div class="field"><label class="label">Envato Username<p class="control-label-help">https://codecanyon.net/user/<u style="color:#419746">example</u></p><p class="control-label-help">(<u style="color:#419746">example</u> is username, Write your envato <u style="color:#419746">username</u>)</p></label><div class="control"><input name="client"class="input"placeholder="Your Envato User Name"required></div></div><div class="field"><label class="label">Envato Purchase Code :-<p class="control-label-help">(<a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code"target="_blank">Where Is My Purchase Code?</a>)</p></label><div class="control"><input name="license"class="input"placeholder="xxxx-xxxx-xxxx-xxxx-xxxx"required></div></div><div style="text-align:right"><button class="button is-link"type="submit">Verify</button></div></form><?php  } break; case "1": ?> 
<div class="is-fullwidth tabs"><ul><li><a><span><i class="fa fa-check-circle"></i> Requirements</span></a></li><li><a><span><i class="fa fa-check-circle"></i> Verify</span></a></li><li class="is-active"><a><span><b>Database</b></span></a></li><li><a><span>Finish</span></a></li></ul></div><?php  if ($_POST && isset($_POST["lcscs"])) { $valid = strip_tags(trim($_POST["lcscs"])); $db_host = strip_tags(trim($_POST["host"])); $db_user = strip_tags(trim($_POST["user"])); $db_pass = strip_tags(trim($_POST["pass"])); $db_name = strip_tags(trim($_POST["name"])); $base_urls = strip_tags(trim($_POST["baseurl"])); $base_code = strip_tags(trim($_POST["basecode"])); $map_keys = strip_tags(trim($_POST["mapkeys"])); $firdb_urls = strip_tags(trim($_POST["firedburls"])); $fcm_keys = strip_tags(trim($_POST["fcmkeys"])); if (!empty($db_host)) { $con = @mysqli_connect($db_host, $db_user, $db_pass, $db_name); if (mysqli_connect_errno()) { ?> 
<form action="index.php?step=1"method="POST"><div class="notification is-danger">Failed to connect to MySQL:<?php  echo mysqli_connect_error(); ?> 
</div><input name="lcscs"id="lcscs"type="hidden"value="<?php  echo $valid; ?> 
"><div class="field"><label class="label">Database Host</label><div class="control"><input name="host"class="input"placeholder="enter your database host"required id="host"></div></div><div class="field"><label class="label">Database Username</label><div class="control"><input name="user"class="input"placeholder="enter your database username"required id="user"></div></div><div class="field"><label class="label">Database Password</label><div class="control"><input name="pass"class="input"placeholder="enter your database password"id="pass"></div></div><div class="field"><label class="label">Database Name</label><div class="control"><input name="name"class="input"placeholder="enter your database name"required id="name"></div></div><div class="field"><label class="label">Enter Your Site Url</label><div class="control"><input name="baseurl"class="input"placeholder="https://yourdomain.com"required id="baseurl"></div></div><div style="text-align:right"><button class="button is-link"type="submit">Import</button></div></form><?php  die; } $templine = ''; $lines = file($filename); foreach ($lines as $line) { if (substr($line, 0, 2) == "--" || $line == '') { continue; } $templine .= $line; $query = false; if (substr(trim($line), -1, 1) == ";") { $query = mysqli_query($con, $templine); $templine = ''; } } $dataFile = "database/config_DB.php"; $fhandle = fopen($dataFile, "r"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("db_name", $db_name, $content); $content = str_replace("db_uname", $db_user, $content); $content = str_replace("db_password", $db_pass, $content); $content = str_replace("db_hname", $db_host, $content); $fhandle = fopen($dataFile, "w"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "includes/connection.php"; $fhandle = fopen($dataFile, "r"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("db_name", $db_name, $content); $content = str_replace("db_uname", $db_user, $content); $content = str_replace("db_password", $db_pass, $content); $content = str_replace("db_hname", $db_host, $content); $fhandle = fopen($dataFile, "w"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "connect.php"; $fhandle = fopen($dataFile, "r"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("db_name", $db_name, $content); $content = str_replace("db_uname", $db_user, $content); $content = str_replace("db_password", $db_pass, $content); $content = str_replace("db_hname", $db_host, $content); $fhandle = fopen($dataFile, "w"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "includes/header.php"; $fhandle = fopen($dataFile, "r"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("base_urls", $base_urls, $content); $fhandle = fopen($dataFile, "w"); fwrite($fhandle, $content); fclose($fhandle); mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/appdatajson.default"; $config_file_name = "appsetting.json"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/route.default"; $config_file_name = "includes/routes.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/includeapi.default"; $config_file_name = "includes/api.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/indx.default"; $config_file_name = "index.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/adminprofile.default"; $config_file_name = "admin_profile.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/users.default"; $config_file_name = "users_list.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/adsidsetting.default"; $config_file_name = "ads-id-setting.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/adsidsettings.default"; $config_file_name = "ads-id-settings.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/addads.default"; $config_file_name = "add_indratech_ads.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/addserver.default"; $config_file_name = "add_indratech_servers.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "https://doc.indratech.in/RewardVPNlaunch/instl.default"; $config_file_name = "install/index.php"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "w+"); if (@fwrite($f, $config_file) > 0) { } ?> 
<form action="index.php?step=2"method="POST"><div class="notification is-success">Database was successfully imported.</div><input name="dbscs"id="dbscs"type="hidden"value="true"><div style="text-align:right"><button class="button is-link"type="submit">Next</button></div></form><?php  } else { ?> 
<form action="index.php?step=1"method="POST"><input name="lcscs"id="lcscs"type="hidden"value="<?php  echo $valid; ?> 
"><div class="field"><label class="label">Database Host</label><div class="control"><input name="host"class="input"placeholder="enter your database host"required id="host"></div></div><div class="field"><label class="label">Database Username</label><div class="control"><input name="user"class="input"placeholder="enter your database username"required id="user"></div></div><div class="field"><label class="label">Database Password</label><div class="control"><input name="pass"class="input"placeholder="enter your database password"id="pass"></div></div><div class="field"><label class="label">Database Name</label><div class="control"><input name="name"class="input"placeholder="enter your database name"required id="name"></div></div><div class="field"><label class="label">Enter Your Site Url</label><div class="control"><input name="baseurl"class="input"placeholder="https://yourdomain.com"required id="baseurl"></div></div><div style="text-align:right"><button class="button is-link"type="submit">Import</button></div></form><?php  } } else { ?> 
<div class="notification is-danger">Sorry, something went wrong.</div><?php  } break; case "2": ?> 
<div class="is-fullwidth tabs"><ul><li><a><span><i class="fa fa-check-circle"></i> Requirements</span></a></li><li><a><span><i class="fa fa-check-circle"></i> Verify</span></a></li><li><a><span><i class="fa fa-check-circle"></i> Database</span></a></li><li class="is-active"><a><span><b>Finish</b></span></a></li></ul></div><?php  if ($_POST && isset($_POST["dbscs"])) { $valid = $_POST["dbscs"]; session_destroy(); ?> 
<center><p><strong><?php  echo $product_info["product_name"]; ?> 
is successfully installed.</strong></p><br><br><p>You can now login using your username: <strong>reward</strong> and default password: <strong>12345678</strong></p><br><strong><p><a href="../"class="button is-link">Login</a></p></strong><br><p class="has-text-grey help">The first thing you should do is change your account details.</p></center><?php  } else { ?> 
<div class="notification is-danger">Sorry, something went wrong.</div><?php  } break; } goto RrM4J; RrM4J: ?> 
</div></div></div></div><div class="content has-text-centered"><p>Copyright<?php  goto AzIQH; DCkGw: ?> 
<!doctypehtml><html><head><meta charset="utf-8"><title><?php  goto gGtOi; AzIQH: echo date("Y"); goto v1Q54; FqpTv: ?> 
- Installer</title><meta content="width=device-width,initial-scale=1"name="viewport"><link href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css"rel="stylesheet"><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"rel="stylesheet"><style type="text/css">body,html{background:#f7f7f7}.control-label-help{font-weight:500;font-size:14px}.notification.is-success{background-color:#328c52;color:#fff}</style></head><body><?php  goto m8GP2; sLgSN: session_start(); goto ixs6P; lFUCt: $api = new LicenseBoxAPI(); goto pKxWL; ixs6P: require_once "assets/assets-tr/img/curved-images/halprs.php"; goto lFUCt; gGtOi: echo $product_info["product_name"]; goto FqpTv; m8GP2: $errors = false; goto pNps1; pKxWL: $filename = "https://doc.indratech.in/RewardVPNlaunch/database.default"; goto iHTDG; pAHWR: ?> 
<div class="container"><div class="section"><div class="column is-6 is-offset-3"><center><h1 class="title"style="padding-top:20px"><?php  goto dec5a; aGKAd: ?> 
Installer</h1><br></center><div class="box"><?php  goto AjZwO; v1Q54: ?> 
IndraTech, All rights reserved.</p><br></div></body></html>

Did this file decode correctly?

Original Code

<?php
 goto sLgSN; pNps1: $step = isset($_GET["\x73\x74\145\160"]) ? $_GET["\163\164\x65\x70"] : ''; goto pAHWR; dec5a: echo $product_info["\160\x72\x6f\144\165\143\x74\x5f\x6e\x61\155\x65"]; goto aGKAd; iHTDG: $product_info = $api->get_latest_version(); goto DCkGw; AjZwO: switch ($step) { default: ?>
<div class="is-fullwidth tabs"><ul><li class="is-active"><a><span><b>Requirements</b></span></a></li><li><a><span>Verify</span></a></li><li><a><span>Database</span></a></li><li><a><span>Finish</span></a></li></ul></div><?php  if (phpversion() < "\x37\56\x32") { $errors = true; echo "\x3c\144\151\166\40\x63\x6c\141\163\x73\75\x27\156\157\x74\x69\146\151\x63\x61\x74\x69\157\156\x20\x69\163\x2d\x64\x61\156\147\x65\x72\x27\x20\x73\x74\171\154\145\x3d\x27\x70\x61\x64\144\x69\156\147\x3a\61\x32\160\x78\x3b\x27\76\x3c\151\40\x63\154\141\163\x73\75\x27\x66\x61\x20\146\141\x2d\x74\x69\155\x65\x73\x27\x3e\x3c\x2f\151\76\x20\x43\165\162\162\145\x6e\164\40\120\x48\x50\40\166\x65\162\x73\151\x6f\x6e\x20\151\163\x20" . phpversion() . "\x21\x20\x6d\x69\x6e\x69\155\165\155\40\x50\x48\x50\x20\67\56\62\40\157\162\x20\150\151\x67\x68\x65\x72\x20\162\x65\161\165\151\x72\x65\144\x2e\74\x2f\x64\151\x76\76"; } else { echo "\74\144\x69\x76\x20\143\154\141\163\x73\x3d\47\156\x6f\164\151\x66\x69\x63\141\x74\x69\157\x6e\40\151\163\x2d\x73\165\143\x63\145\x73\163\x27\40\x73\164\171\154\145\x3d\x27\x70\141\144\144\x69\156\x67\72\x31\x32\160\x78\x3b\47\76\74\x69\x20\143\154\x61\163\163\x3d\x27\x66\141\x20\x66\x61\x2d\143\150\x65\143\153\x27\x3e\x3c\57\151\76\40\131\157\165\x20\x61\162\x65\x20\x72\165\x6e\x6e\151\156\x67\40\120\110\120\40\166\x65\x72\163\151\157\x6e\x20" . phpversion() . "\74\57\x64\x69\166\x3e"; } if (!extension_loaded("\155\171\163\x71\x6c\151")) { $errors = true; echo "\74\144\x69\x76\40\143\x6c\141\x73\163\x3d\x27\x6e\x6f\164\151\x66\x69\x63\141\164\x69\x6f\156\x20\x69\x73\55\144\141\x6e\147\x65\162\47\40\x73\x74\171\154\x65\75\47\160\141\144\144\151\x6e\x67\72\x31\62\160\170\x3b\x27\x3e\x3c\x69\40\143\154\141\x73\163\x3d\x27\x66\141\x20\146\x61\x2d\x74\151\x6d\x65\x73\x27\76\74\x2f\151\x3e\x20\x4d\x79\x53\121\114\151\x20\x50\110\120\40\x65\170\x74\x65\x6e\163\151\157\x6e\x20\x6d\151\x73\163\151\156\147\41\x3c\57\144\151\166\76"; } else { echo "\x3c\144\x69\x76\x20\143\x6c\x61\163\x73\x3d\x27\x6e\157\164\151\146\151\143\x61\x74\151\x6f\x6e\x20\151\x73\55\163\165\x63\143\145\x73\x73\x27\40\163\164\x79\154\x65\x3d\47\160\x61\x64\x64\151\x6e\x67\72\61\62\160\170\x3b\47\76\74\151\40\143\x6c\x61\x73\x73\75\x27\146\141\40\x66\x61\x2d\x63\150\x65\143\153\x27\x3e\x3c\57\x69\x3e\40\x4d\171\x53\121\x4c\x69\40\120\110\120\x20\x65\x78\164\145\156\x73\151\x6f\x6e\x20\141\166\141\151\x6c\141\142\x6c\x65\x3c\x2f\144\151\x76\x3e"; } if (!extension_loaded("\x63\x75\162\x6c")) { $errors = true; echo "\74\x64\151\166\x20\x63\x6c\141\x73\x73\75\x27\156\x6f\x74\151\x66\151\143\x61\164\x69\157\x6e\40\x69\x73\x2d\144\141\x6e\x67\145\162\x27\40\163\x74\x79\x6c\145\x3d\x27\x70\x61\144\x64\151\x6e\147\x3a\61\x32\x70\170\73\x27\76\74\x69\40\143\154\141\x73\163\x3d\x27\146\141\x20\146\x61\x2d\x74\x69\155\x65\163\x27\x3e\x3c\x2f\x69\76\40\103\x75\162\154\40\x50\x48\x50\x20\x65\x78\164\x65\156\x73\x69\157\x6e\40\155\151\163\x73\151\156\x67\x21\x3c\x2f\x64\151\166\76"; } else { echo "\x3c\144\x69\x76\x20\143\x6c\x61\163\x73\x3d\47\156\x6f\164\151\x66\x69\x63\141\164\151\x6f\156\40\151\163\x2d\163\165\143\143\145\x73\163\47\40\x73\x74\171\154\145\x3d\47\x70\141\x64\144\151\156\147\x3a\x31\62\x70\170\73\47\76\74\151\x20\143\154\141\x73\163\75\x27\146\x61\40\146\141\55\143\x68\x65\143\153\47\x3e\x3c\57\151\x3e\x20\x43\x75\162\154\x20\x50\110\120\x20\145\x78\164\145\156\x73\151\x6f\156\40\141\x76\x61\151\154\x61\x62\x6c\x65\x3c\x2f\x64\x69\166\76"; } if (!extension_loaded("\x70\x64\157")) { $errors = true; echo "\74\x64\151\x76\x20\143\x6c\x61\x73\x73\x3d\x27\156\x6f\164\x69\x66\x69\x63\x61\164\x69\157\156\40\151\x73\55\x64\x61\x6e\147\x65\x72\x27\x20\163\164\x79\x6c\x65\75\x27\160\141\x64\x64\151\156\x67\x3a\x31\x32\x70\170\73\x27\76\74\x69\40\x63\x6c\x61\x73\x73\75\47\146\x61\40\146\141\55\164\151\x6d\145\163\x27\76\x3c\x2f\151\76\40\120\x44\x4f\x20\x50\110\x50\40\145\170\164\145\x6e\x73\x69\x6f\x6e\40\x6d\x69\163\x73\151\x6e\x67\x21\74\x2f\144\x69\166\x3e"; } else { echo "\x3c\144\x69\x76\40\x63\x6c\141\x73\163\x3d\47\x6e\x6f\x74\x69\146\x69\x63\141\164\x69\x6f\156\x20\151\x73\55\x73\165\143\143\x65\x73\163\47\40\x73\164\x79\x6c\145\x3d\x27\160\x61\144\144\151\156\147\72\x31\x32\x70\170\73\x27\76\x3c\151\40\143\x6c\x61\x73\163\x3d\47\x66\141\x20\146\141\x2d\143\x68\145\143\x6b\x27\x3e\74\57\151\76\x20\x50\104\117\x20\120\110\120\x20\x65\170\164\x65\x6e\x73\x69\157\156\40\x61\166\x61\151\x6c\141\142\x6c\x65\x3c\x2f\x64\x69\x76\x3e"; } if (!extension_loaded("\152\x73\157\x6e")) { $errors = true; echo "\x3c\144\151\x76\x20\143\154\x61\x73\x73\75\x27\156\x6f\x74\x69\x66\151\x63\141\x74\151\x6f\156\x20\x69\163\55\x64\x61\156\147\145\162\x27\40\163\164\171\x6c\x65\x3d\47\x70\141\x64\x64\x69\156\x67\72\61\x32\x70\x78\73\x27\x3e\x3c\x69\40\143\x6c\x61\x73\163\75\x27\x66\x61\x20\x66\x61\55\164\x69\155\x65\163\47\x3e\74\57\x69\x3e\x20\112\x53\x4f\116\x20\x50\110\x50\x20\145\170\164\x65\x6e\x73\x69\157\156\x20\x6d\x69\163\x73\x69\156\147\x21\74\57\x64\151\x76\x3e"; } else { echo "\x3c\x64\151\x76\x20\x63\x6c\141\163\x73\75\47\x6e\x6f\x74\x69\146\x69\x63\141\164\151\157\x6e\x20\151\x73\x2d\163\165\143\143\x65\163\x73\x27\x20\163\164\x79\x6c\145\75\x27\x70\x61\144\x64\x69\156\x67\x3a\61\x32\x70\170\73\x27\76\74\x69\x20\x63\x6c\141\163\x73\x3d\x27\x66\141\x20\x66\141\55\143\x68\145\x63\153\47\76\74\x2f\x69\76\40\x4a\123\117\116\40\120\110\x50\x20\145\x78\164\x65\156\x73\151\x6f\x6e\x20\x61\166\x61\151\x6c\141\x62\x6c\x65\74\x2f\x64\x69\166\x3e"; } ?>
<div style="text-align:right"><?php  if ($errors == true) { ?>
<a href="#"class="button is-link"disabled>Next</a><?php  } else { ?>
<a href="index.php?step=0"class="button is-link">Next</a><?php  } ?>
</div><?php  break; case "\60": ?>
<div class="is-fullwidth tabs"><ul><li><a><span><i class="fa fa-check-circle"></i> Requirements</span></a></li><li class="is-active"><a><span><b>Verify</b></span></a></li><li><a><span>Database</span></a></li><li><a><span>Finish</span></a></li></ul></div><?php  $license_code = null; $client_name = null; if (!empty($_POST["\154\151\x63\145\156\163\x65"]) && !empty($_POST["\x63\x6c\x69\145\x6e\164"])) { $license_code = strip_tags(trim($_POST["\x6c\x69\x63\x65\x6e\163\145"])); $client_name = strip_tags(trim($_POST["\x63\x6c\151\145\156\x74"])); $activate_response = $api->activate_license($license_code, $client_name); $_SESSION["\x65\x6e\x76\x61\x74\157\137\x62\165\171\145\x72\x5f\156\141\155\x65"] = $client_name; $_SESSION["\145\x6e\166\x61\x74\157\x5f\160\165\x72\x63\150\141\x73\x65\137\x63\x6f\144\145"] = $license_code; if (empty($activate_response)) { $msg = "\123\145\162\166\x65\162\x20\x69\163\x20\x75\x6e\x61\166\141\151\x6c\x61\x62\x6c\145\x2e"; } else { $msg = $activate_response["\155\145\x73\163\x61\x67\145"]; } if ($activate_response["\163\164\141\x74\x75\x73"] != true) { ?>
<form action="index.php?step=0"method="POST"><div class="notification is-danger"><?php  echo ucfirst($msg); ?>
</div><div class="field"><label class="label">Envato Username<p class="control-label-help">https://codecanyon.net/user/<u style="color:#419746">example</u></p><p class="control-label-help">(<u style="color:#419746">example</u> is username, Write your envato <u style="color:#419746">username</u>)</p></label><div class="control"><input name="client"class="input"placeholder="Your Envato User Name"required></div></div><div class="field"><label class="label">Envato Purchase Code :-<p class="control-label-help">(<a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code"target="_blank">Where Is My Purchase Code?</a>)</p></label><div class="control"><input name="license"class="input"placeholder="xxxx-xxxx-xxxx-xxxx-xxxx"required></div></div><div style="text-align:right"><button class="button is-link"type="submit">Verify</button></div></form><?php  } else { ?>
<form action="index.php?step=1"method="POST"><div class="notification is-success"><?php  echo ucfirst($msg); ?>
</div><input name="lcscs"id="lcscs"type="hidden"value="<?php  echo ucfirst($activate_response["\x73\164\x61\164\165\x73"]); ?>
"><div style="text-align:right"><button class="button is-link"type="submit">Next</button></div></form><?php  } } else { ?>
<form action="index.php?step=0"method="POST"><div class="field"><label class="label">Envato Username<p class="control-label-help">https://codecanyon.net/user/<u style="color:#419746">example</u></p><p class="control-label-help">(<u style="color:#419746">example</u> is username, Write your envato <u style="color:#419746">username</u>)</p></label><div class="control"><input name="client"class="input"placeholder="Your Envato User Name"required></div></div><div class="field"><label class="label">Envato Purchase Code :-<p class="control-label-help">(<a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code"target="_blank">Where Is My Purchase Code?</a>)</p></label><div class="control"><input name="license"class="input"placeholder="xxxx-xxxx-xxxx-xxxx-xxxx"required></div></div><div style="text-align:right"><button class="button is-link"type="submit">Verify</button></div></form><?php  } break; case "\x31": ?>
<div class="is-fullwidth tabs"><ul><li><a><span><i class="fa fa-check-circle"></i> Requirements</span></a></li><li><a><span><i class="fa fa-check-circle"></i> Verify</span></a></li><li class="is-active"><a><span><b>Database</b></span></a></li><li><a><span>Finish</span></a></li></ul></div><?php  if ($_POST && isset($_POST["\x6c\143\163\x63\x73"])) { $valid = strip_tags(trim($_POST["\154\x63\x73\143\163"])); $db_host = strip_tags(trim($_POST["\150\x6f\163\164"])); $db_user = strip_tags(trim($_POST["\165\x73\x65\x72"])); $db_pass = strip_tags(trim($_POST["\160\x61\163\x73"])); $db_name = strip_tags(trim($_POST["\x6e\x61\x6d\x65"])); $base_urls = strip_tags(trim($_POST["\142\x61\x73\x65\165\x72\x6c"])); $base_code = strip_tags(trim($_POST["\142\141\x73\x65\x63\157\144\145"])); $map_keys = strip_tags(trim($_POST["\x6d\x61\x70\x6b\145\x79\x73"])); $firdb_urls = strip_tags(trim($_POST["\x66\151\162\x65\144\142\165\x72\x6c\x73"])); $fcm_keys = strip_tags(trim($_POST["\146\x63\155\153\x65\x79\163"])); if (!empty($db_host)) { $con = @mysqli_connect($db_host, $db_user, $db_pass, $db_name); if (mysqli_connect_errno()) { ?>
<form action="index.php?step=1"method="POST"><div class="notification is-danger">Failed to connect to MySQL:<?php  echo mysqli_connect_error(); ?>
</div><input name="lcscs"id="lcscs"type="hidden"value="<?php  echo $valid; ?>
"><div class="field"><label class="label">Database Host</label><div class="control"><input name="host"class="input"placeholder="enter your database host"required id="host"></div></div><div class="field"><label class="label">Database Username</label><div class="control"><input name="user"class="input"placeholder="enter your database username"required id="user"></div></div><div class="field"><label class="label">Database Password</label><div class="control"><input name="pass"class="input"placeholder="enter your database password"id="pass"></div></div><div class="field"><label class="label">Database Name</label><div class="control"><input name="name"class="input"placeholder="enter your database name"required id="name"></div></div><div class="field"><label class="label">Enter Your Site Url</label><div class="control"><input name="baseurl"class="input"placeholder="https://yourdomain.com"required id="baseurl"></div></div><div style="text-align:right"><button class="button is-link"type="submit">Import</button></div></form><?php  die; } $templine = ''; $lines = file($filename); foreach ($lines as $line) { if (substr($line, 0, 2) == "\x2d\x2d" || $line == '') { continue; } $templine .= $line; $query = false; if (substr(trim($line), -1, 1) == "\73") { $query = mysqli_query($con, $templine); $templine = ''; } } $dataFile = "\x64\141\x74\x61\142\x61\x73\145\57\x63\x6f\x6e\x66\x69\147\x5f\x44\102\x2e\160\150\x70"; $fhandle = fopen($dataFile, "\x72"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("\144\x62\137\156\141\x6d\x65", $db_name, $content); $content = str_replace("\x64\x62\x5f\x75\156\141\155\145", $db_user, $content); $content = str_replace("\x64\x62\x5f\160\141\163\163\167\157\162\x64", $db_pass, $content); $content = str_replace("\144\x62\137\150\x6e\x61\155\x65", $db_host, $content); $fhandle = fopen($dataFile, "\x77"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "\151\x6e\143\x6c\x75\x64\x65\163\x2f\x63\157\x6e\156\145\x63\164\x69\157\156\56\160\150\160"; $fhandle = fopen($dataFile, "\x72"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("\144\142\137\x6e\141\x6d\145", $db_name, $content); $content = str_replace("\x64\142\x5f\165\156\x61\155\x65", $db_user, $content); $content = str_replace("\144\142\x5f\160\x61\x73\163\167\x6f\x72\x64", $db_pass, $content); $content = str_replace("\144\x62\x5f\150\156\141\155\x65", $db_host, $content); $fhandle = fopen($dataFile, "\x77"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "\143\157\156\x6e\145\143\164\56\x70\150\160"; $fhandle = fopen($dataFile, "\162"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("\144\142\x5f\156\141\x6d\145", $db_name, $content); $content = str_replace("\x64\x62\137\x75\x6e\141\x6d\x65", $db_user, $content); $content = str_replace("\x64\x62\x5f\x70\x61\163\x73\x77\157\x72\144", $db_pass, $content); $content = str_replace("\144\x62\137\150\x6e\x61\155\x65", $db_host, $content); $fhandle = fopen($dataFile, "\x77"); fwrite($fhandle, $content); fclose($fhandle); $dataFile = "\x69\156\x63\154\x75\144\x65\163\57\x68\145\141\144\x65\x72\x2e\x70\150\x70"; $fhandle = fopen($dataFile, "\162"); $content = fread($fhandle, filesize($dataFile)); $content = str_replace("\142\x61\x73\x65\x5f\165\162\154\x73", $base_urls, $content); $fhandle = fopen($dataFile, "\167"); fwrite($fhandle, $content); fclose($fhandle); mysqli_close($con); $config_file_default = "\x68\x74\164\160\x73\72\x2f\x2f\144\157\x63\x2e\151\x6e\144\x72\141\164\145\x63\150\x2e\151\x6e\57\x52\145\167\141\162\x64\126\x50\116\x6c\141\x75\x6e\x63\150\57\141\160\x70\144\x61\x74\141\152\163\157\156\x2e\144\x65\x66\141\x75\154\x74"; $config_file_name = "\x61\160\x70\163\x65\164\x74\151\x6e\147\x2e\152\163\x6f\156"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\x2b"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\x68\164\x74\x70\163\72\x2f\x2f\144\x6f\143\56\x69\156\x64\162\141\x74\145\x63\150\56\151\x6e\x2f\122\145\x77\141\x72\144\126\120\x4e\x6c\x61\x75\x6e\143\x68\57\x72\x6f\165\x74\145\x2e\x64\145\146\141\165\154\x74"; $config_file_name = "\x69\x6e\x63\154\165\144\145\x73\57\162\157\x75\x74\145\163\56\160\x68\160"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\x2b"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\150\164\x74\160\x73\72\x2f\57\x64\157\x63\56\x69\x6e\x64\x72\x61\164\x65\143\x68\x2e\151\156\57\x52\145\167\141\162\x64\126\120\116\x6c\x61\165\156\x63\150\x2f\151\x6e\143\154\x75\x64\145\141\160\x69\x2e\x64\145\146\x61\x75\x6c\x74"; $config_file_name = "\151\156\x63\x6c\165\x64\145\x73\57\x61\160\151\x2e\160\x68\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\x2b"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\x68\164\164\160\x73\72\x2f\x2f\144\x6f\143\x2e\151\x6e\144\x72\x61\x74\145\x63\x68\x2e\x69\x6e\x2f\122\x65\167\x61\162\144\x56\x50\116\x6c\x61\165\x6e\143\150\57\151\x6e\x64\170\56\x64\145\146\141\x75\x6c\x74"; $config_file_name = "\x69\x6e\144\145\x78\x2e\x70\x68\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\x2b"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\150\164\164\x70\x73\x3a\x2f\57\144\157\x63\x2e\151\156\x64\x72\x61\164\x65\143\x68\56\x69\x6e\57\122\x65\x77\141\162\x64\x56\x50\116\154\x61\x75\156\x63\150\x2f\141\x64\x6d\151\x6e\x70\162\157\146\x69\x6c\x65\x2e\x64\x65\x66\x61\x75\154\x74"; $config_file_name = "\141\144\x6d\x69\x6e\x5f\x70\162\x6f\146\151\x6c\145\56\160\150\160"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\53"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\x68\164\164\x70\x73\x3a\57\x2f\x64\x6f\143\56\151\x6e\x64\x72\141\x74\x65\x63\150\56\x69\156\x2f\122\x65\x77\x61\162\x64\126\x50\116\x6c\141\165\x6e\143\x68\x2f\x75\x73\145\x72\163\56\x64\x65\x66\x61\165\x6c\x74"; $config_file_name = "\165\163\x65\162\163\x5f\154\x69\163\x74\x2e\160\x68\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\x77\53"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\150\x74\164\160\x73\x3a\57\57\144\157\143\56\x69\156\144\162\x61\164\145\x63\x68\56\x69\156\x2f\122\x65\x77\141\x72\144\126\120\116\154\x61\165\156\x63\150\57\141\144\x73\151\x64\163\x65\164\x74\151\156\x67\x2e\144\145\x66\x61\x75\x6c\164"; $config_file_name = "\141\144\163\55\151\144\x2d\163\x65\164\164\151\156\x67\56\160\150\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\x2b"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\x68\x74\164\x70\163\x3a\57\57\144\x6f\143\x2e\x69\x6e\x64\x72\x61\x74\x65\143\150\56\x69\x6e\x2f\122\x65\x77\141\x72\144\x56\120\116\154\x61\165\156\x63\x68\x2f\141\x64\163\151\x64\163\145\x74\164\151\x6e\147\x73\56\x64\145\146\141\x75\x6c\164"; $config_file_name = "\x61\x64\163\55\x69\144\x2d\x73\145\164\x74\151\156\x67\x73\x2e\160\x68\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\53"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\150\164\x74\x70\x73\72\x2f\57\x64\157\143\x2e\151\x6e\144\x72\141\164\x65\143\150\56\151\156\x2f\x52\x65\x77\x61\162\144\126\120\116\154\x61\165\156\x63\x68\57\x61\x64\x64\141\144\x73\x2e\144\x65\x66\x61\165\x6c\x74"; $config_file_name = "\141\144\x64\137\151\156\144\162\x61\x74\x65\143\150\137\141\x64\x73\56\160\150\160"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\167\53"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\150\x74\x74\160\x73\72\x2f\57\x64\x6f\x63\56\151\156\144\x72\141\x74\x65\143\150\x2e\x69\x6e\57\x52\145\167\141\x72\144\126\x50\x4e\x6c\x61\165\156\x63\150\57\141\x64\144\163\x65\162\x76\x65\x72\56\x64\145\146\x61\x75\x6c\164"; $config_file_name = "\141\144\144\x5f\151\156\x64\x72\x61\164\145\143\150\x5f\163\x65\x72\x76\145\162\x73\x2e\x70\x68\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\x77\x2b"); if (@fwrite($f, $config_file) > 0) { } mysqli_close($con); $config_file_default = "\150\164\x74\160\x73\x3a\x2f\57\x64\157\143\56\151\x6e\144\x72\141\164\145\x63\x68\x2e\x69\156\57\122\145\x77\141\x72\x64\x56\120\116\154\x61\165\156\x63\x68\x2f\151\156\163\164\154\56\x64\145\146\x61\x75\154\164"; $config_file_name = "\x69\156\163\164\141\x6c\154\x2f\x69\156\144\145\x78\56\x70\150\x70"; $config_file_path = $config_file_name; $config_file = file_get_contents($config_file_default); $f = @fopen($config_file_path, "\x77\53"); if (@fwrite($f, $config_file) > 0) { } ?>
<form action="index.php?step=2"method="POST"><div class="notification is-success">Database was successfully imported.</div><input name="dbscs"id="dbscs"type="hidden"value="true"><div style="text-align:right"><button class="button is-link"type="submit">Next</button></div></form><?php  } else { ?>
<form action="index.php?step=1"method="POST"><input name="lcscs"id="lcscs"type="hidden"value="<?php  echo $valid; ?>
"><div class="field"><label class="label">Database Host</label><div class="control"><input name="host"class="input"placeholder="enter your database host"required id="host"></div></div><div class="field"><label class="label">Database Username</label><div class="control"><input name="user"class="input"placeholder="enter your database username"required id="user"></div></div><div class="field"><label class="label">Database Password</label><div class="control"><input name="pass"class="input"placeholder="enter your database password"id="pass"></div></div><div class="field"><label class="label">Database Name</label><div class="control"><input name="name"class="input"placeholder="enter your database name"required id="name"></div></div><div class="field"><label class="label">Enter Your Site Url</label><div class="control"><input name="baseurl"class="input"placeholder="https://yourdomain.com"required id="baseurl"></div></div><div style="text-align:right"><button class="button is-link"type="submit">Import</button></div></form><?php  } } else { ?>
<div class="notification is-danger">Sorry, something went wrong.</div><?php  } break; case "\x32": ?>
<div class="is-fullwidth tabs"><ul><li><a><span><i class="fa fa-check-circle"></i> Requirements</span></a></li><li><a><span><i class="fa fa-check-circle"></i> Verify</span></a></li><li><a><span><i class="fa fa-check-circle"></i> Database</span></a></li><li class="is-active"><a><span><b>Finish</b></span></a></li></ul></div><?php  if ($_POST && isset($_POST["\144\x62\x73\x63\163"])) { $valid = $_POST["\x64\x62\x73\x63\163"]; session_destroy(); ?>
<center><p><strong><?php  echo $product_info["\x70\162\x6f\x64\x75\x63\164\x5f\x6e\x61\x6d\145"]; ?>
is successfully installed.</strong></p><br><br><p>You can now login using your username: <strong>reward</strong> and default password: <strong>12345678</strong></p><br><strong><p><a href="../"class="button is-link">Login</a></p></strong><br><p class="has-text-grey help">The first thing you should do is change your account details.</p></center><?php  } else { ?>
<div class="notification is-danger">Sorry, something went wrong.</div><?php  } break; } goto RrM4J; RrM4J: ?>
</div></div></div></div><div class="content has-text-centered"><p>Copyright<?php  goto AzIQH; DCkGw: ?>
<!doctypehtml><html><head><meta charset="utf-8"><title><?php  goto gGtOi; AzIQH: echo date("\131"); goto v1Q54; FqpTv: ?>
- Installer</title><meta content="width=device-width,initial-scale=1"name="viewport"><link href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css"rel="stylesheet"><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css"rel="stylesheet"><style type="text/css">body,html{background:#f7f7f7}.control-label-help{font-weight:500;font-size:14px}.notification.is-success{background-color:#328c52;color:#fff}</style></head><body><?php  goto m8GP2; sLgSN: session_start(); goto ixs6P; lFUCt: $api = new LicenseBoxAPI(); goto pKxWL; ixs6P: require_once "\141\163\163\x65\x74\x73\x2f\x61\x73\163\x65\164\163\55\164\x72\57\x69\x6d\x67\57\143\x75\162\166\x65\x64\55\x69\155\x61\x67\x65\x73\x2f\150\x61\x6c\160\x72\x73\x2e\160\150\x70"; goto lFUCt; gGtOi: echo $product_info["\160\x72\x6f\144\x75\x63\x74\137\156\141\155\x65"]; goto FqpTv; m8GP2: $errors = false; goto pNps1; pKxWL: $filename = "\x68\164\x74\x70\163\x3a\57\x2f\144\157\x63\x2e\x69\x6e\x64\162\141\164\x65\143\x68\x2e\x69\156\57\x52\x65\167\x61\162\x64\126\120\x4e\154\x61\x75\x6e\143\150\x2f\144\141\164\141\x62\x61\163\145\56\x64\x65\146\x61\x75\154\164"; goto iHTDG; pAHWR: ?>
<div class="container"><div class="section"><div class="column is-6 is-offset-3"><center><h1 class="title"style="padding-top:20px"><?php  goto dec5a; aGKAd: ?>
Installer</h1><br></center><div class="box"><?php  goto AjZwO; v1Q54: ?>
IndraTech, All rights reserved.</p><br></div></body></html>

Function Calls

None

Variables

None

Stats

MD5 3eb8961eb009d398caa9e7f507c08426
Eval Count 0
Decode Time 45 ms