Файл: 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>Файл с браузерами недоступен или пуст!</b><br/>n";
}
if ( $error == "proxys" )
{
echo "<b>Файл с прокси адресами недоступен или пуст!</b><br/>n";
}
echo "Количество:<br/>n";
if ( $error == "kol" )
{
echo "<small><u>Мин:1 Макс:10000</u></small><br/>n";
}
echo "<input type="text" name="kol{$rand}" value="100000" format="*N" maxlength="4" size="4"/><br/><center>rnАдрес(domain name):</center>n";
if ( $error == "link" )
{
echo "<small><u>Не корректно!</u></small><br/>n";
}
echo "<center><input type="text" name="link{$rand}" value="http://c.waplog.net/ru/.cnt" maxlength="50"/></center>rnМакс. время соединений:n";
if ( $error == "time" )
{
echo "<small><u>Мин:1 Макс:30</u></small><br/>n";
}
echo "<input type="text" name="time{$rand}" value="1" format="*N" maxlength="1" size="3"/><center>rnМетод передачи:</center>n";
if ( $error == "method" )
{
echo "<small><u>HTTP или 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Протокол передачи:<br/>n";
if ( $error == "protokol" )
{
echo "<small><u>HTTP/1.0 или 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Соединение:<br/>n";
if ( $error == "connection" )
{
echo "<small><u>auto by black-energy by Close или 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Выбор телефона:<br/>n";
if ( $error == "agent" )
{
echo "<small><u>случайно или по порядку</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Выбор прокси(kol proxy=35064527):<br/>n";
if ( $error == "proxy" )
{
echo "<small><u>случайно или по порядку</u></small><br/>n";
}
echo "<select name="proxy{$rand}">rn<option value="1">случайно</option>rn<option value="2">по порядку</option>rn<option value="2">ANONIMYS</option>rn</select><!--$proxy=1,$2,$2=anonimys--><br/>rn<anchor>Крутить(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>©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 );
}
?>