Advertisement
Guest User

Untitled

a guest
Oct 19th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14.  
  15. class multitracker {
  16. function announce($url, $infohash, $mod = 'file_get_contents') {
  17. $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 );
  18. $sep = (preg_match( '/\?.{1,}?/i', $url ) ? '&' : '?');
  19. $requesturl = $url . $sep . http_build_query( $get_params );
  20. $opts = array( $scheme => array( 'method' => 'GET', 'header' => 'User-Agent: uTorrent/1820', 'timeout' => 2 ) );
  21.  
  22. if ($mod == 'file_get_contents') {
  23. $context = @stream_context_create( $opts );
  24. $result = @file_get_contents( $requesturl, false, $context );
  25. } else {
  26. if ($mod == 'fsockopen') {
  27. $urlInfo = @parse_url( $url );
  28. $http_host = $urlInfo['host'];
  29. $http_port = (isset( $urlInfo['port'] ) ? $urlInfo['port'] : 80);
  30. $http_path = $urlInfo['path'];
  31.  
  32. if ($fp = fsockopen( $http_host, $http_port, $errno, $errstr, 2 )) {
  33. $h = 'GET ' . $http_path . $sep . http_build_query( $get_params ) . ' HTTP/1.0
  34. ';
  35. $h .= ( ( '' . 'Host: ' . $http_host . '
  36. ' ) . '
  37. ' );
  38. $h .= 'Connection: close
  39. ';
  40. $h .= 'User-Agent: uTorrent/1820
  41.  
  42. ';
  43. fwrite( $fp, $h );
  44. $buff = '';
  45.  
  46. while (!feof( $fp )) {
  47. $buff .= fgets( $fp, 128 );
  48. }
  49.  
  50. fclose( $fp );
  51.  
  52. if ($buff) {
  53. $data = explode( '
  54.  
  55. ', $buff );
  56. $result = $data[1];
  57. }
  58. }
  59. } else {
  60. if ($mod == 'curl_init') {
  61.  
  62. if ($ch = @bihjjaafih( )) {
  63. $urlInfo = @parse_url( $url );
  64. $http_host = $urlInfo['host'];
  65. $http_path = $urlInfo['path'];
  66. @bcghihabhg( $ch, CURLOPT_URL, $requesturl );
  67. @bcghihabhg( $ch, CURLOPT_PORT, $http_port );
  68. @bcghihabhg( $ch, CURLOPT_HEADER, false );
  69. @bcghihabhg( $ch, CURLOPT_FOLLOWLOCATION, true );
  70. @bcghihabhg( $ch, CURLOPT_RETURNTRANSFER, true );
  71. @bcghihabhg( $ch, CURLOPT_CONNECTTIMEOUT, 2 );
  72. @bcghihabhg( $ch, CURLOPT_BUFFERSIZE, 1000 );
  73. @bcghihabhg( $ch, CURLOPT_USERAGENT, 'uTorrent/1820' );
  74. @bhdfgdhici( $ch );
  75. $result = $http_port = (isset( $urlInfo['port'] ) ? $urlInfo['port'] : 80);
  76. @iaicfdih( $ch );
  77. }
  78. }
  79. }
  80. }
  81.  
  82. $result = self::bdecode( $result );
  83. $result['peers'] = (is_array( $result['peers'] ) ? count( $result['peers'] ) : strlen( $result['peers'] ) / 6);
  84. unset( $result[interval] );
  85. unset( $result[dgbgbhjhac] );
  86. return $result;
  87. }
  88. .......................................................................
  89. ...........................
  90. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement