Guest User

Untitled

a guest
Jul 3rd, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.20 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for SourceGuardian & phpSHIELD)
  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. function make_token() {
  15. return md5( 'c02c536681fc06cd2d809ad4e8a42432' . time( ) );
  16. }
  17.  
  18. function get_key() {
  19. $data = @file( 'key.php' );
  20.  
  21. if (!$data) {
  22. return false;
  23. }
  24.  
  25. $buffer = false;
  26. foreach ($data as $line) {
  27. $buffer .= $line;
  28. }
  29.  
  30.  
  31. if (!$buffer) {
  32. return false;
  33. }
  34.  
  35. $buffer = @str_replace( '<', '', $data );
  36. $buffer = @str_replace( '>', '', $buffer );
  37. $buffer = @str_replace( '?PHP', '', $buffer );
  38. $buffer = @str_replace( '?', '', $buffer );
  39. $buffer = @str_replace( '/*--', '', $buffer );
  40. $buffer = @str_replace( '--*/', '', $buffer );
  41. return @str_replace( '
  42. ', '', $buffer );
  43. }
  44.  
  45. function parse_local_key() {
  46. if (!@file_exists( 'key.php' )) {
  47. return false;
  48. }
  49.  
  50. $raw_data = @base64_decode( @get_key( ) );
  51. $raw_array = @explode( '|', $raw_data );
  52.  
  53. if (( @is_array( $raw_array ) && @count( $raw_array ) < 8 )) {
  54. return false;
  55. }
  56.  
  57. return $raw_array;
  58. }
  59.  
  60. function pa_wildcard($host_array) {
  61. if (!is_array( $host_array )) {
  62. return array( );
  63. }
  64.  
  65. foreach ($host_array as $access) {
  66. $first_dot = strpos( $_SERVER['HTTP_HOST'], '.' );
  67. $strlen = strlen( $_SERVER['HTTP_HOST'] );
  68. $target = substr( $_SERVER['HTTP_HOST'], $first_dot, $strlen );
  69.  
  70. if ($host = md5( 'c02c536681fc06cd2d809ad4e8a42432*' . $target ) == $access) {
  71. $host_array[] = $_SERVER['HTTP_HOST'];
  72. return ;
  73. }
  74. }
  75.  
  76. return $host_array;
  77. }
  78.  
  79. function validate_local_key($array) {
  80. $raw_array = parse_local_key( );
  81.  
  82. if (( !@is_array( $raw_array ) || $raw_array === false )) {
  83. return '<verify status=\'invalid_key\' message=\'Please contact support for a new license key.\' />';
  84. }
  85.  
  86.  
  87. if (( $raw_array[11] && strcmp( @md5( 'c02c536681fc06cd2d809ad4e8a42432' . $raw_array[11] ), $raw_array[12] ) != 0 )) {
  88. return '<verify status=\'invalid_key\' message=\'Please contact support for a new license key.\' />';
  89. }
  90.  
  91.  
  92. if (( $raw_array[9] && strcmp( @md5( 'c02c536681fc06cd2d809ad4e8a42432' . $raw_array[9] ), $raw_array[10] ) != 0 )) {
  93. return '<verify status=\'invalid_key\' message=\'Please contact support for a new license key.\' />';
  94. }
  95.  
  96.  
  97. if (strcmp( @md5( 'c02c536681fc06cd2d809ad4e8a42432' . $raw_array[1] ), $raw_array[2] ) != 0) {
  98. return '<verify status=\'invalid_key\' message=\'Please contact support for a new license key.\' ' . $raw_array[9] . ( '' . ' ' . 'addon_array' . '=\'' . $raw_array[11] . '\' />' );
  99. }
  100.  
  101.  
  102. if (( $raw_array[1] < time( ) && $raw_array[1] != 'never' )) {
  103. return '<verify status=\'invalid_key\' message=\'Please contact support for a new license key.\' ' . $raw_array[9] . ( '' . ' ' . 'addon_array' . '=\'' . $raw_array[11] . '\' />' );
  104. }
  105.  
  106.  
  107. if ($array['per_server']) {
  108. $server = phpaudit_get_mac_address( );
  109. $mac_array = @explode( ',', $raw_array[6] );
  110.  
  111. if (!in_array( @md5( 'c02c536681fc06cd2d809ad4e8a42432' . $server[0] ), $mac_array )) {
  112. return '<verify status=\'invalid_key\' message=\'Please contact support for a new license key.\' ' . $raw_array[9] . ( '' . ' ' . 'addon_array' . '=\'' . $raw_array[11] . '\' />' );
  113. }
  114.  
  115. $host_array = @explode( ',', $raw_array[4] );
  116.  
  117. if (!in_array( md5( 'c02c536681fc06cd2d809ad4e8a42432' . gethostbyaddr( @gethostbyname( $server[1] ) ) ), $host_array )) {
  118. return '<verify status=\'invalid_key\' message=\'Please contact support for a new license key.\' ' . $raw_array[9] . ( '' . ' ' . 'addon_array' . '=\'' . $raw_array[11] . '\' />' );
  119. }
  120. } else {
  121. if (( $array['per_install'] || $array['per_site'] )) {
  122. if ($array['per_install']) {
  123. $directory_array = @explode( ',', $raw_array[3] );
  124. $valid_dir = path_translated( );
  125. $valid_dir = @md5( 'c02c536681fc06cd2d809ad4e8a42432' . $valid_dir );
  126.  
  127. if (!@in_array( $valid_dir, $directory_array )) {
  128. return '<verify status=\'invalid_key\' message=\'Please contact support for a new license key.\' ' . $raw_array[9] . ( '' . ' ' . 'addon_array' . '=\'' . $raw_array[11] . '\' />' );
  129. }
  130. }
  131.  
  132. $host_array = @explode( ',', $raw_array[4] );
  133. $host_array = pa_wildcard( $host_array );
  134.  
  135. if (!in_array( @md5( 'c02c536681fc06cd2d809ad4e8a42432' . $_SERVER['HTTP_HOST'] ), $host_array )) {
  136. return '<verify status=\'invalid_key\' message=\'Please contact support for a new license key.\' ' . $raw_array[9] . ( '' . ' ' . 'addon_array' . '=\'' . $raw_array[11] . '\' />' );
  137. }
  138.  
  139. $ip_array = @explode( ',', $raw_array[5] );
  140.  
  141. if (!in_array( @md5( 'c02c536681fc06cd2d809ad4e8a42432' . @server_addr( ) ), $ip_array )) {
  142. return '<verify status=\'invalid_key\' message=\'Please contact support for a new license key.\' ' . $raw_array[9] . ( '' . ' ' . 'addon_array' . '=\'' . $raw_array[11] . '\' />' );
  143. }
  144. }
  145. }
  146.  
  147. return '<verify status=\'active\' message=\'The license key is valid.\' ' . $raw_array[9] . ( '' . ' ' . 'addon_array' . '=\'' . $raw_array[11] . '\' />' );
  148. }
  149. ..........................................
  150. .......................
  151. ........
Add Comment
Please, Sign In to add comment