Advertisement
securehatz

;P<>;0\}19Xm*[K - c.php

Apr 2nd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. <?php
  2. $linktl = $_POST['url'];
  3. function baglanamca($site)
  4. {
  5. $ch = curl_init();
  6. $hc = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.0.11172 Safari/537.36";
  7. curl_setopt($ch, CURLOPT_REFERER, 'http://www.google.com');
  8. curl_setopt($ch, CURLOPT_URL, $site);
  9. curl_setopt($ch, CURLOPT_USERAGENT, $hc);
  10. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  11. $site = curl_exec($ch);
  12. curl_close($ch);
  13. preg_match_all('@href\|(.*?)\|@si',$site,$lolo);
  14. $linkid = $lolo[1][0];
  15.  
  16. $ch = curl_init();
  17. $hc = "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.0.11172 Safari/537.36";
  18. curl_setopt($ch, CURLOPT_REFERER, 'http://www.google.com');
  19. curl_setopt($ch, CURLOPT_URL, 'http://link.tl/fly/index4.php?lid='.$linkid);
  20. curl_setopt($ch, CURLOPT_USERAGENT, $hc);
  21. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  22. $site = curl_exec($ch);
  23. curl_close($ch);
  24. preg_match_all('@accept-charset="UTF-8"(.*?)target@si',$site,$lili);
  25. $linkim2 = $lili[1][0];
  26. preg_match_all('@<a href="(.*?)"@si',$linkim2,$lilili);
  27. echo $lilili[1][0];
  28. }
  29.  
  30. $coz = baglanamca($linktl);
  31. echo '<center>'.$coz.'</center>';
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement