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 DFsPC; t1ao6: if (session_status() == PHP_SESSION_NONE) { session_start(); } g..
Decoded Output download
<?php
goto DFsPC; t1ao6: if (session_status() == PHP_SESSION_NONE) { session_start(); } goto WwJ5X; DFsPC: defined("BASEPATH") or die("No direct script access allowed"); goto t1ao6; WwJ5X: class Install extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library("InstallLibrary"); $this->load->helper("url"); } public function index() { $_SESSION["base_url"] = str_replace("/install", '', (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] === "on" ? "https" : "http") . "://{$_SERVER["HTTP_HOST"]}{$_SERVER["REQUEST_URI"]}"); $_SESSION["install"] = 0; setcookie("language", '', time() - 3600); $data = array("settings" => $this->config->config, "step" => 1, "database" => false); if (!empty($this->db->database) && !empty($this->db->password) && !empty($this->db->username) && !empty($this->db->database)) { if ($this->db->conn_id != NULL) { $data["database"] = true; } } $this->load->view("install/_elem/header", $data); $this->load->view("install/step1", $data); $this->load->view("install/_elem/footer", $data); } public function step2() { $data = array("settings" => $this->config->config, "step" => 2); $post = $this->input->post(NULL, TRUE); if (!empty($post["code"])) { $postdata = array("purchase_code" => $_POST["code"], "ip" => $_SERVER["SERVER_ADDR"]); $surl = "https://api.proxibolt.com/verify/droppy/install_verify.php"; $res = $this->installlibrary->post_to_url($surl, $postdata); if ($res == "1") { $_SESSION["install"] = 1; $_SESSION["purchase_code"] = $post["code"]; header("Location: " . $_SESSION["base_url"] . "/install/step3"); die; } elseif ($res == "2") { $data["error"] = "Purchase code incorrect"; } elseif ($res == "3") { } } $this->load->view("install/_elem/header", $data); $this->load->view("install/step2", $data); $this->load->view("install/_elem/footer", $data); } public function step3() { $data = array("settings" => $this->config->config, "step" => 3); if ($_SESSION["install"] != 1) { header("Location: " . $_SESSION["base_url"] . "/install/step2?auth=no"); die; } if ($this->load->database("default", true) === false) { $this->load->view("install/_elem/header", $data); $this->load->view("install/step3", $data); $this->load->view("install/_elem/footer", $data); } else { $this->load->helper("sql"); if ($this->db->table_exists("droppy_settings")) { run_sql_file(APPPATH . "install/updatev2.sql", $this->db); } else { $surl = "https://api.proxibolt.com/droppy/install_query"; $res = (array) json_decode($this->installlibrary->post_to_url($surl, array("purchase_code" => $_SESSION["purchase_code"]))); if ($res["type"] == "success") { $this->db->query($res["response"]); run_sql_file(APPPATH . "install/droppy.sql", $this->db); } } $this->db->query("UPDATE droppy_settings SET site_url = '" . $_SESSION["base_url"] . "/', purchase_code = '" . $_SESSION["purchase_code"] . "' LIMIT 1;"); header("Location: " . $_SESSION["base_url"] . "/install/step4"); die; } } public function step4() { if ($_SESSION["install"] != 1) { header("Location: " . $_SESSION["base_url"] . "/install/step2?auth=no"); } $data = array("settings" => $this->config->config, "step" => 4); $post = $this->input->post(NULL, TRUE); if ($post) { $this->load->model("accounts"); $data = array("email" => $post["email"], "password" => password_hash($post["password"], PASSWORD_DEFAULT), "ip" => ''); if ($this->accounts->add($data)) { header("Location: " . $_SESSION["base_url"] . "/install/step5"); } } $this->load->view("install/_elem/header", $data); $this->load->view("install/step4", $data); $this->load->view("install/_elem/footer", $data); } public function step5() { session_destroy(); $data = array("settings" => $this->config->config, "step" => 5); $this->load->view("install/_elem/header", $data); $this->load->view("install/step5", $data); $this->load->view("install/_elem/footer", $data); } } ?>
Did this file decode correctly?
Original Code
<?php
goto DFsPC; t1ao6: if (session_status() == PHP_SESSION_NONE) { session_start(); } goto WwJ5X; DFsPC: defined("\x42\101\x53\105\x50\101\124\x48") or die("\116\x6f\x20\144\151\162\x65\x63\164\x20\x73\143\x72\x69\160\164\40\x61\143\x63\145\x73\x73\x20\141\x6c\154\x6f\x77\145\144"); goto t1ao6; WwJ5X: class Install extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library("\111\x6e\x73\x74\x61\x6c\x6c\114\151\x62\x72\x61\x72\x79"); $this->load->helper("\165\x72\x6c"); } public function index() { $_SESSION["\x62\141\163\145\x5f\165\162\154"] = str_replace("\57\151\x6e\163\164\141\x6c\154", '', (isset($_SERVER["\110\x54\124\120\x53"]) && $_SERVER["\110\124\x54\120\123"] === "\x6f\x6e" ? "\x68\164\x74\160\163" : "\x68\164\164\x70") . "\x3a\x2f\x2f{$_SERVER["\110\124\x54\x50\137\110\x4f\123\124"]}{$_SERVER["\x52\105\x51\x55\105\x53\x54\x5f\125\122\x49"]}"); $_SESSION["\151\x6e\163\164\x61\154\154"] = 0; setcookie("\154\x61\156\x67\x75\x61\x67\145", '', time() - 3600); $data = array("\163\145\164\x74\x69\156\x67\x73" => $this->config->config, "\163\x74\x65\160" => 1, "\144\141\x74\141\x62\x61\163\x65" => false); if (!empty($this->db->database) && !empty($this->db->password) && !empty($this->db->username) && !empty($this->db->database)) { if ($this->db->conn_id != NULL) { $data["\x64\141\164\x61\142\141\163\x65"] = true; } } $this->load->view("\x69\x6e\x73\x74\x61\154\154\x2f\137\x65\154\x65\x6d\57\x68\x65\141\x64\145\162", $data); $this->load->view("\x69\x6e\163\164\141\154\154\x2f\163\164\x65\x70\x31", $data); $this->load->view("\x69\x6e\x73\x74\141\154\x6c\57\x5f\x65\154\x65\x6d\57\x66\x6f\157\164\145\162", $data); } public function step2() { $data = array("\163\145\x74\164\x69\x6e\147\163" => $this->config->config, "\163\164\145\160" => 2); $post = $this->input->post(NULL, TRUE); if (!empty($post["\x63\x6f\144\x65"])) { $postdata = array("\x70\165\162\x63\x68\141\x73\145\137\143\157\x64\x65" => $_POST["\x63\x6f\144\145"], "\151\160" => $_SERVER["\123\105\122\126\x45\122\x5f\x41\x44\x44\x52"]); $surl = "\150\x74\164\x70\x73\72\57\x2f\x61\160\151\x2e\x70\x72\157\170\151\x62\157\154\x74\56\x63\157\155\x2f\166\145\162\151\146\x79\57\144\x72\x6f\160\x70\x79\57\x69\156\x73\164\x61\x6c\x6c\x5f\166\x65\162\151\146\171\x2e\x70\x68\x70"; $res = $this->installlibrary->post_to_url($surl, $postdata); if ($res == "\61") { $_SESSION["\151\156\163\x74\x61\154\x6c"] = 1; $_SESSION["\160\165\x72\143\x68\x61\x73\x65\x5f\143\157\x64\x65"] = $post["\x63\x6f\144\145"]; header("\114\x6f\143\x61\164\151\157\x6e\72\x20" . $_SESSION["\142\141\x73\145\x5f\165\x72\x6c"] . "\57\x69\x6e\x73\164\141\x6c\x6c\x2f\x73\164\x65\x70\63"); die; } elseif ($res == "\62") { $data["\x65\x72\162\x6f\x72"] = "\x50\x75\x72\143\x68\x61\163\145\40\143\157\x64\145\40\x69\x6e\x63\x6f\162\x72\145\143\x74"; } elseif ($res == "\63") { } } $this->load->view("\151\156\x73\x74\141\x6c\154\57\137\145\154\x65\155\x2f\150\145\x61\144\x65\162", $data); $this->load->view("\x69\156\163\164\141\x6c\x6c\57\163\164\x65\160\62", $data); $this->load->view("\x69\156\x73\164\x61\x6c\x6c\x2f\137\x65\154\145\155\x2f\146\x6f\x6f\164\x65\162", $data); } public function step3() { $data = array("\x73\x65\x74\164\151\156\147\x73" => $this->config->config, "\163\164\145\160" => 3); if ($_SESSION["\x69\156\163\x74\141\154\154"] != 1) { header("\114\x6f\143\x61\164\x69\x6f\156\x3a\x20" . $_SESSION["\142\x61\163\x65\x5f\165\162\x6c"] . "\x2f\x69\156\163\x74\141\x6c\154\57\163\x74\x65\x70\62\x3f\x61\165\x74\150\x3d\156\157"); die; } if ($this->load->database("\x64\x65\146\141\x75\x6c\164", true) === false) { $this->load->view("\x69\156\163\164\141\154\x6c\57\x5f\x65\154\x65\x6d\x2f\150\x65\x61\x64\145\162", $data); $this->load->view("\151\x6e\163\x74\x61\x6c\154\x2f\163\x74\x65\x70\x33", $data); $this->load->view("\x69\x6e\163\164\141\154\154\x2f\x5f\145\154\145\x6d\x2f\146\157\x6f\164\145\162", $data); } else { $this->load->helper("\x73\x71\154"); if ($this->db->table_exists("\x64\162\x6f\x70\x70\x79\x5f\163\x65\164\x74\151\156\147\163")) { run_sql_file(APPPATH . "\151\156\x73\x74\141\x6c\x6c\57\x75\160\x64\141\x74\145\x76\x32\x2e\163\161\154", $this->db); } else { $surl = "\x68\164\164\x70\163\x3a\x2f\x2f\141\x70\x69\x2e\x70\162\x6f\170\x69\x62\157\154\164\x2e\x63\157\155\x2f\144\x72\157\160\160\x79\x2f\x69\156\163\164\x61\154\x6c\137\x71\165\x65\162\x79"; $res = (array) json_decode($this->installlibrary->post_to_url($surl, array("\160\165\162\x63\150\x61\x73\x65\137\x63\x6f\144\x65" => $_SESSION["\x70\x75\x72\x63\x68\141\x73\145\137\143\157\x64\145"]))); if ($res["\164\x79\160\x65"] == "\163\x75\x63\x63\145\163\x73") { $this->db->query($res["\x72\x65\x73\160\x6f\156\163\x65"]); run_sql_file(APPPATH . "\151\x6e\163\164\x61\154\154\57\x64\x72\157\160\160\x79\56\x73\x71\154", $this->db); } } $this->db->query("\x55\120\104\x41\124\x45\40\x64\x72\157\160\x70\x79\137\163\145\164\164\x69\156\147\163\x20\123\105\x54\x20\x73\x69\164\x65\137\165\162\154\x20\x3d\40\x27" . $_SESSION["\x62\141\x73\145\137\x75\162\154"] . "\x2f\47\x2c\x20\x70\x75\162\143\x68\x61\163\145\x5f\x63\157\x64\x65\x20\75\x20\47" . $_SESSION["\160\x75\162\x63\x68\141\163\x65\137\x63\157\144\145"] . "\x27\40\x4c\111\115\111\x54\x20\x31\73"); header("\x4c\157\143\x61\x74\x69\157\x6e\72\40" . $_SESSION["\x62\141\x73\145\x5f\165\162\154"] . "\x2f\151\x6e\163\x74\141\x6c\x6c\57\163\164\145\x70\64"); die; } } public function step4() { if ($_SESSION["\151\156\163\x74\141\x6c\x6c"] != 1) { header("\x4c\157\143\141\164\151\x6f\x6e\72\40" . $_SESSION["\142\141\163\x65\137\165\162\x6c"] . "\x2f\151\x6e\163\164\x61\x6c\154\57\x73\164\145\160\x32\77\141\x75\x74\x68\75\156\157"); } $data = array("\163\x65\x74\x74\151\x6e\147\163" => $this->config->config, "\x73\x74\145\160" => 4); $post = $this->input->post(NULL, TRUE); if ($post) { $this->load->model("\141\x63\x63\x6f\165\156\164\163"); $data = array("\145\155\141\151\154" => $post["\145\155\x61\151\x6c"], "\x70\x61\x73\163\167\157\162\144" => password_hash($post["\x70\x61\x73\163\167\x6f\162\144"], PASSWORD_DEFAULT), "\x69\160" => ''); if ($this->accounts->add($data)) { header("\114\x6f\x63\x61\x74\151\x6f\x6e\x3a\40" . $_SESSION["\142\141\x73\145\137\165\x72\154"] . "\57\151\x6e\163\164\141\154\x6c\x2f\x73\x74\145\160\x35"); } } $this->load->view("\x69\x6e\x73\x74\x61\x6c\154\x2f\137\145\154\145\x6d\57\x68\145\x61\144\x65\162", $data); $this->load->view("\x69\x6e\x73\164\141\154\154\x2f\163\164\145\160\x34", $data); $this->load->view("\151\x6e\x73\x74\x61\x6c\x6c\x2f\137\x65\x6c\x65\x6d\x2f\x66\157\x6f\x74\145\x72", $data); } public function step5() { session_destroy(); $data = array("\163\145\x74\x74\x69\x6e\147\163" => $this->config->config, "\x73\x74\145\x70" => 5); $this->load->view("\x69\x6e\163\x74\141\154\154\x2f\x5f\145\154\145\x6d\57\150\145\141\x64\x65\162", $data); $this->load->view("\151\x6e\163\x74\x61\x6c\154\57\163\x74\145\x70\65", $data); $this->load->view("\151\x6e\x73\x74\141\x6c\154\57\x5f\x65\x6c\145\155\x2f\146\x6f\x6f\164\145\x72", $data); } }
Function Calls
None |
Stats
MD5 | a602d8bd09bd3085de943c02128846bc |
Eval Count | 0 |
Decode Time | 67 ms |