Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.5.0
- * @ Author : DeZender
- * @ Release on : 09.06.2012
- * @ Official site : http://DeZender.Net
- *
- */
- class multitracker {
- function announce($url, $infohash, $mod = 'file_get_contents') {
- $get_params = array( 'info_hash' => pack( 'H*', $infohash ), 'peer_id' => '-UT1820-5dmPcUOYGnrx', 'port' => rand( 10000, 65535 ), 'uploaded' => 0, 'downloaded' => 0, 'left' => 1, 'numwant' => 9999, 'compact' => 1, 'no_peer_id' => 1 );
- $sep = (preg_match( '/\?.{1,}?/i', $url ) ? '&' : '?');
- $requesturl = $url . $sep . http_build_query( $get_params );
- $opts = array( $scheme => array( 'method' => 'GET', 'header' => 'User-Agent: uTorrent/1820', 'timeout' => 2 ) );
- if ($mod == 'file_get_contents') {
- $context = @stream_context_create( $opts );
- $result = @file_get_contents( $requesturl, false, $context );
- } else {
- if ($mod == 'fsockopen') {
- $urlInfo = @parse_url( $url );
- $http_host = $urlInfo['host'];
- $http_port = (isset( $urlInfo['port'] ) ? $urlInfo['port'] : 80);
- $http_path = $urlInfo['path'];
- if ($fp = fsockopen( $http_host, $http_port, $errno, $errstr, 2 )) {
- $h = 'GET ' . $http_path . $sep . http_build_query( $get_params ) . ' HTTP/1.0
- ';
- $h .= ( ( '' . 'Host: ' . $http_host . '
- ' ) . '
- ' );
- $h .= 'Connection: close
- ';
- $h .= 'User-Agent: uTorrent/1820
- ';
- fwrite( $fp, $h );
- $buff = '';
- while (!feof( $fp )) {
- $buff .= fgets( $fp, 128 );
- }
- fclose( $fp );
- if ($buff) {
- $data = explode( '
- ', $buff );
- $result = $data[1];
- }
- }
- } else {
- if ($mod == 'curl_init') {
- if ($ch = @bihjjaafih( )) {
- $urlInfo = @parse_url( $url );
- $http_host = $urlInfo['host'];
- $http_path = $urlInfo['path'];
- @bcghihabhg( $ch, CURLOPT_URL, $requesturl );
- @bcghihabhg( $ch, CURLOPT_PORT, $http_port );
- @bcghihabhg( $ch, CURLOPT_HEADER, false );
- @bcghihabhg( $ch, CURLOPT_FOLLOWLOCATION, true );
- @bcghihabhg( $ch, CURLOPT_RETURNTRANSFER, true );
- @bcghihabhg( $ch, CURLOPT_CONNECTTIMEOUT, 2 );
- @bcghihabhg( $ch, CURLOPT_BUFFERSIZE, 1000 );
- @bcghihabhg( $ch, CURLOPT_USERAGENT, 'uTorrent/1820' );
- @bhdfgdhici( $ch );
- $result = $http_port = (isset( $urlInfo['port'] ) ? $urlInfo['port'] : 80);
- @iaicfdih( $ch );
- }
- }
- }
- }
- $result = self::bdecode( $result );
- $result['peers'] = (is_array( $result['peers'] ) ? count( $result['peers'] ) : strlen( $result['peers'] ) / 6);
- unset( $result[interval] );
- unset( $result[dgbgbhjhac] );
- return $result;
- }
- .......................................................................
- ...........................
- ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement