PHP / Skip adf.ly, sh.st and more... https://redirect.hakase.app/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.php 3.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <form action="/" method="get">
  2. URL: <input type="text" name="url" max="50">
  3. <input type="submit" value="Submit">
  4. </form>
  5. <?php
  6. /**
  7. * Redirect Bypass PHP
  8. * any.gs and sh.st source by https://github.com/starbuck93/handy-link-skipper/blob/master/index.php
  9. * adf.ly source by http://skizzerz.net/scripts/adfly.php
  10. * Other source by Hakase ( contact@hakase.kr / https://hakase.kr/ )
  11. */
  12. include_once '_function.php';
  13. $aa = new Redirect();
  14. $url = $_GET['url'];
  15. if($url)
  16. {
  17. $urls = parse_url($url);
  18. switch($urls['host'])
  19. {
  20. case 'goo.gl':
  21. case 'me2.do':
  22. case 'tinyurl.com':
  23. case 'bit.ly':
  24. $data = $aa->splits($aa->WEBParsing($url), 'Location: ', PHP_EOL);
  25. break;
  26. case 'durl.kr':
  27. $data = $aa->splits($aa->WEBParsing($url), '<h2><a href="', '" id="titleArea"');
  28. break;
  29. //any.gs and sh.st source by https://github.com/starbuck93/handy-link-skipper/blob/master/index.php
  30. case 'www.any.gs':
  31. case 'any.gs':
  32. $data = substr($url, strpos($url,"url/")+4);
  33. break;
  34. case 'sh.st':
  35. $data = $aa->WEBParsing($url);
  36. $data = $aa->splits($data, '<title>Redirecting to ', '</title>');
  37. break;
  38. // adf.ly source by http://skizzerz.net/scripts/adfly.php
  39. case 'adf.ly':
  40. $data = $aa->WEBParsing($url);
  41. if ( preg_match( "#var ysmm = '([a-zA-Z0-9+/=]+)'#", $data, $matches ) )
  42. $data = $final = $url = $aa->decode_adfly( $matches[1] );
  43. break;
  44. case 'adfoc.us':
  45. $data = $aa->WEBParsing($url, NULL, NULL, array('Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'));
  46. $data = $aa->splits($data, 'var click_url = "', '";');
  47. break;
  48. case 'bc.vc':
  49. $data = $aa->WEBParsing($url);
  50. $aid = $aa->splits($data, '{aid:', ',');
  51. $lid = $aa->splits($data, ',lid:', ',');
  52. if(!$aid || !$lid) { unset($data); break; }
  53. $data = $aa->WEBParsing('http://bc.vc/fly/ajax.fly.php', NULL, 'opt=check_log&args%5Baid%5D='.$aid.'&args%5Blid%5D='.$lid, array('Referer: http://bc.vc/', 'X-Requested-With: XMLHttpRequest'));
  54. $cookie1 = $aa->splits($data, 'Set-Cookie: SITE_view_', PHP_EOL, 1);
  55. $cookie2 = $aa->splits($data, 'Set-Cookie: SITE_view_', PHP_EOL, 2);
  56. if(!$cookie1 || !$cookie2) { unset($data); break; }
  57. $cookie = 'SITE_view_'.$cookie1.';SITE_view_'.$cookie2.';';
  58. $data = $aa->WEBParsing('http://bc.vc/fly/ajax.fly.php', $cookie, 'opt=checks_log&args%5Baid%5D='.$aid.'&args%5Blid%5D='.$lid, array('Referer: http://bc.vc/', 'X-Requested-With: XMLHttpRequest'));
  59. $cookie = $cookie . 'PHPSESSID=' . $aa->splits($data, 'Set-Cookie: PHPSESSID=', ';') . ';';
  60. $data = $aa->WEBParsing('http://bc.vc/fly/ajax.fly.php', $cookie, 'opt=check_log&args%5Baid%5D='.$aid.'&args%5Blid%5D='.$lid, array('Referer: http://bc.vc/', 'X-Requested-With: XMLHttpRequest'));
  61. sleep(5); // server check time
  62. $data = $aa->WEBParsing('http://bc.vc/fly/ajax.fly.php', $cookie, 'opt=make_log&args%5Baid%5D='.$aid.'&args%5Blid%5D='.$lid, array('Referer: http://bc.vc/', 'X-Requested-With: XMLHttpRequest'));
  63. $data = json_decode('{'.$aa->splits($data, '{"error":false,"message":{', '}}').'}',true)['url'];
  64. break;
  65. default:
  66. echo 'Not supported. (E-mail: contact@hakase.kr)';
  67. break;
  68. }
  69. if($data)
  70. echo $data;
  71. else
  72. echo 'Error';
  73. exit;
  74. }
  75. ?>
  76. <p>For example: <br>
  77. <a href='?url=<?php echo urlencode('http://me2.do/G4AB9cJL');?>'>http://me2.do/G4AB9cJL</a><br>
  78. <a href='?url=<?php echo urlencode('https://goo.gl/AIScrC');?>'>https://goo.gl/AIScrC</a><br>
  79. <a href='?url=<?php echo urlencode('http://bit.ly/29O1WJt');?>'>http://bit.ly/29O1WJt</a><br>
  80. <a href='?url=<?php echo urlencode('http://durl.kr/cpubjn');?>'>http://durl.kr/cpubjn</a><br>
  81. And the other...</p>
  82. <p>How to use? : ?url=URL<br>
  83. Supported URL : me2.do / goo.gl / tinyurl.com / me2.do / durl.kr / adf.ly / sh.st / adfoc.us / bc.vc (wait for 5 seconds)</p>