Тема: Кенто взломали & Кенто на JohnCMS
![]() | ![]() |
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";
include_once"../template/isset.php";
header('Cache-control: no-cache');
header('Content-type: text/html; charset=utf-8');
ini_set('user_agent',$_SERVER['HTTP_USER_AGENT']."\r\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1\r\nAccept-Charset: $_SERVER[HTTP_ACCEPT_CHARSET]\r\nAccept-Language: $_SERVER[HTTP_ACCEPT_LANGUAGE]");
if($_GET['query_string'])
{$_SERVER['QUERY_STRING'] = str_replace('query_string=',null,rawurldecode($_SERVER['QUERY_STRING']));}
else
{$_SERVER['QUERY_STRING'] = str_replace('&','&',rawurldecode(base64_decode($_SERVER['QUERY_STRING'])));}
if(substr($_SERVER['QUERY_STRING'],0,12) == 'download.php' || substr($_SERVER['QUERY_STRING'],0,13) == '/download.php'){
header('Location: http://mr.jambo.ru/'.$_SERVER['QUERY_STRING'],true,301);
exit;
}
$file = file_get_contents('http://mr.jambo.ru/'.$_SERVER['QUERY_STRING']);
$file = preg_replace('/<a href="http:\/\/wap(2*)\.1124\.ru(.*)<br\/>/iuU',null,$file);
$file = preg_replace('/href="(.*)"/iUe',"'href=\"?'.base64_encode('$1').'\"'",$file);
$file = explode('<div class="mainmenu">',$file);
$file = explode('</div>',$file[1]);
$file = str_replace('<br/><br/>','<br/>',$file[0]);
$file = str_replace('src="/img.php','src="img.php',$file);
if(substr_count($file,'type="submit"'))
{
$file = '<form action="?" method="get">
<div>
<input type="hidden" name="query_string" value="'.strtok($_SERVER['QUERY_STRING'],'?').'?"/>
'.$file.'
</div>';
}
print '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Граббер</title>
</head>
<body>
<div>
'.$file.'
</div>
</body>
</html>';
echo '<img src="../images/img/homepage.gif" alt=""> <a href="../index.php?'.SID.'">На главную</a>';
include_once"../themes/$config_themes/foot.php";
?>